{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lumail-io/json-schema/lumail-io-campaign-list-response-schema.json",
  "title": "CampaignListResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lumail-io-openapi.json#/components/schemas/CampaignListResponse",
  "type": "object",
  "required": [
    "success",
    "campaigns",
    "total",
    "page",
    "limit",
    "pageCount"
  ],
  "properties": {
    "success": {
      "type": "boolean",
      "const": true
    },
    "campaigns": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Campaign"
      }
    },
    "total": {
      "type": "integer",
      "minimum": 0
    },
    "page": {
      "type": "integer",
      "minimum": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1
    },
    "pageCount": {
      "type": "integer",
      "minimum": 0
    }
  },
  "$defs": {
    "Campaign": {
      "type": "object",
      "required": [
        "id",
        "name",
        "subject",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "campaignId": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "preview": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "contentType": {
          "type": "string",
          "enum": [
            "MARKDOWN",
            "HTML",
            "TIPTAP"
          ]
        },
        "content": {},
        "scheduledAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "sendAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": true
    }
  }
}