{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nerdit-ai/json-schema/nerdit-ai-account-deletion-view-schema.json",
  "title": "AccountDeletionView",
  "description": "Everything a deletion ended, counted per kind.\n\nCounts rather than a bare acknowledgement because they are the only\nconfirmation the person will ever get: the session this answered on is\nalready dead, so there is no page left to come back and check.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nerdit-ai-openapi.json#/components/schemas/AccountDeletionView",
  "properties": {
    "revoked_grants": {
      "type": "integer",
      "title": "Revoked Grants"
    },
    "revoked_families": {
      "type": "integer",
      "title": "Revoked Families"
    },
    "revoked_proxy_sessions": {
      "type": "integer",
      "title": "Revoked Proxy Sessions"
    },
    "closed_streams": {
      "type": "integer",
      "title": "Closed Streams"
    },
    "web_sessions_revoked": {
      "type": "integer",
      "title": "Web Sessions Revoked"
    },
    "billing_cancellation": {
      "type": "string",
      "enum": [
        "none",
        "pending",
        "canceled"
      ],
      "title": "Billing Cancellation",
      "default": "none"
    },
    "github_uninstalls_failed": {
      "type": "integer",
      "title": "Github Uninstalls Failed",
      "default": 0
    },
    "nodes_revoked": {
      "type": "integer",
      "title": "Nodes Revoked",
      "default": 0
    },
    "identity_erasure": {
      "type": "string",
      "enum": [
        "not_applicable",
        "pending",
        "erased"
      ],
      "title": "Identity Erasure",
      "default": "not_applicable"
    },
    "marketing_contact": {
      "type": "string",
      "enum": [
        "not_applicable",
        "pending",
        "forgotten"
      ],
      "title": "Marketing Contact",
      "default": "not_applicable"
    },
    "managed_machine": {
      "type": "string",
      "enum": [
        "none",
        "pending"
      ],
      "title": "Managed Machine",
      "default": "none"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "revoked_grants",
    "revoked_families",
    "revoked_proxy_sessions",
    "closed_streams",
    "web_sessions_revoked"
  ]
}