{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alto-vebra/json-schema/alto-vebra-document-paged-results-schema.json",
  "title": "DocumentPagedResults",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alto-vebra-documents-api-openapi.yml#/components/schemas/DocumentPagedResults",
  "type": "object",
  "properties": {
    "meta": {
      "allOf": [
        {
          "$ref": "#/$defs/Meta"
        }
      ]
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Document"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Document": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique identifier of the document"
        },
        "type": {
          "type": [
            "string",
            "null"
          ],
          "description": "The type of the document e.g. Property, Tenancy, Contact or Work Order"
        },
        "fileName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The file name of the document"
        },
        "fileType": {
          "type": [
            "string",
            "null"
          ],
          "description": "The file type of the document"
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "description": "The URL for the document, if applicable"
        },
        "caption": {
          "type": [
            "string",
            "null"
          ],
          "description": "The caption of the document"
        },
        "createdDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "The date the document was created",
          "format": "date-time"
        },
        "modifiedDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "The date the document was modified",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "Meta": {
      "type": "object",
      "properties": {
        "nextToken": {
          "type": [
            "string",
            "null"
          ]
        },
        "previousToken": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}