{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evictionsapi-com/json-schema/evictionsapi-com-pms-pull-schema.json",
  "title": "PmsPull",
  "description": "One lease read from the property-management system as suggested answers for a new case (each `{ value, source }`, the source being the system), the lease PDF when the system holds one, and the system's balance to check the ledger rows against. Nothing of it is stored: the person checks every answer.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/evictionsapi-com-openapi-openapi.json#/components/schemas/PmsPull",
  "type": "object",
  "required": [
    "suggestions"
  ],
  "properties": {
    "suggestions": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "required": [
          "value",
          "source"
        ],
        "properties": {
          "value": {},
          "source": {
            "enum": [
              "buildium",
              "doorloop"
            ]
          }
        }
      }
    },
    "leaseFile": {
      "type": "object",
      "required": [
        "filename",
        "contentBase64",
        "contentType"
      ],
      "properties": {
        "filename": {
          "type": "string"
        },
        "contentBase64": {
          "type": "string",
          "contentEncoding": "base64"
        },
        "contentType": {
          "const": "application/pdf"
        }
      }
    },
    "balanceCents": {
      "type": "integer"
    },
    "skippedRows": {
      "type": "integer",
      "description": "How many ledger rows were left out because their transaction type is not one we map. Absent when none."
    }
  }
}