{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/screenpipe/main/json-schema/screenpipe-retention-status-response-schema.json",
  "title": "RetentionStatusResponse",
  "x-generated": "2026-09-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/screenpipe-data-retention-api-openapi.yml#/components/schemas/RetentionStatusResponse",
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "retention_days": {
      "type": "integer"
    },
    "last_cleanup": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "total_deleted": {
      "type": "integer"
    }
  },
  "required": [
    "enabled",
    "retention_days",
    "last_cleanup",
    "last_error",
    "total_deleted"
  ]
}