{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eztexting-com/json-schema/eztexting-com-page-response-message-schema.json",
  "title": "PageResponseMessage",
  "description": "Page",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eztexting-com-conversations-api-openapi.yml#/components/schemas/PageResponseMessage",
  "type": "object",
  "properties": {
    "content": {
      "type": "array",
      "description": "The paged collection of elements",
      "items": {
        "$ref": "#/$defs/Message"
      }
    },
    "number": {
      "type": "integer",
      "format": "int32",
      "description": "The requested page number"
    },
    "size": {
      "type": "integer",
      "format": "int32",
      "description": "The requested page size"
    },
    "totalElements": {
      "type": "integer",
      "format": "int64",
      "description": "The total number of elements available"
    },
    "totalPages": {
      "type": "integer",
      "format": "int32",
      "description": "The total number of pages available"
    },
    "numberOfElements": {
      "type": "integer",
      "format": "int32",
      "description": "The number of elements in the current page"
    }
  },
  "$defs": {
    "Message": {
      "type": "object",
      "description": "Message",
      "properties": {
        "id": {
          "type": "string",
          "description": "Message id"
        },
        "userNumber": {
          "type": "string",
          "description": "User sending number"
        },
        "contactNumber": {
          "type": "string",
          "description": "Contact phone number"
        },
        "inbound": {
          "type": "boolean",
          "description": "Inbound message flag"
        },
        "message": {
          "type": "string",
          "description": "Message text"
        },
        "mediaUrl": {
          "type": "string",
          "description": "Media url"
        },
        "sentAt": {
          "type": "string",
          "format": "date-time",
          "description": "Sent at timestamp"
        },
        "optIn": {
          "type": "boolean",
          "description": "Opt-in flag"
        },
        "optOut": {
          "type": "boolean",
          "description": "Op-out flag"
        },
        "status": {
          "type": "string",
          "description": "Message status: READ, UNREAD, DELETED",
          "enum": [
            "READ",
            "UNREAD",
            "PENDING",
            "DELETED"
          ]
        },
        "type": {
          "type": "string",
          "description": "Message type: SMS or MMS",
          "enum": [
            "SMS",
            "MMS"
          ]
        },
        "group": {
          "type": "boolean",
          "description": "Group message flag"
        },
        "messageGroupId": {
          "type": "string",
          "description": "Message group id"
        }
      }
    }
  }
}