{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audivo-dev/json-schema/audivo-dev-data-deletion-receipt-schema.json",
  "title": "DataDeletionReceipt",
  "description": "Lists removed categories, retained legal/fraud records with expiry/reason, and shared public-cache objects not deleted because they are not account-owned.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audivo-dev-data-api-openapi.yml#/components/schemas/DataDeletionReceipt",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "removed_categories",
    "retained_records",
    "shared_cache_note"
  ],
  "properties": {
    "removed_categories": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 60
      }
    },
    "retained_records": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/RetainedRecord"
      }
    },
    "shared_cache_note": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    }
  },
  "$defs": {
    "NullableDateTime": {
      "description": "An ISO 8601 timestamp, or `null`.",
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "enum": [
            null
          ]
        }
      ]
    },
    "RetainedRecord": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "category",
        "reason"
      ],
      "properties": {
        "category": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        },
        "reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 300
        },
        "expires_at": {
          "$ref": "#/$defs/NullableDateTime"
        }
      }
    }
  }
}