{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ada/main/json-schema/ada-delete-subject-request-schema.json",
  "title": "DeleteSubjectRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ada-deletechatterdata-api-openapi.yml#/components/schemas/DeleteSubjectRequest",
  "type": "object",
  "properties": {
    "type": {
      "$ref": "#/$defs/TokenType"
    },
    "email": {
      "$ref": "#/$defs/EmailType"
    },
    "identifiers": {
      "$ref": "#/$defs/IdentifiersType"
    }
  },
  "required": [
    "type"
  ],
  "$defs": {
    "EmailType": {
      "type": "string",
      "description": "Email of the chatter whose data you wish to delete from Ada's systems.",
      "title": "EmailType"
    },
    "IdentifiersType": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IdentifiersTypeItems"
      },
      "description": "List containing extra identifiers sent with the data subject request.",
      "title": "IdentifiersType"
    },
    "IdentifiersTypeItems": {
      "type": "object",
      "properties": {
        "type": {
          "$ref": "#/$defs/IdentifiersTypeItemsType"
        },
        "value": {
          "type": "string"
        }
      },
      "title": "IdentifiersTypeItems"
    },
    "IdentifiersTypeItemsType": {
      "type": "string",
      "enum": [
        "email",
        "chatter_id"
      ],
      "title": "IdentifiersTypeItemsType"
    },
    "TokenType": {
      "type": "string",
      "enum": [
        "ERASURE"
      ],
      "description": "Type of data subject request. Must be set to ERASURE.",
      "title": "TokenType"
    }
  }
}