{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recruitmcp-com/json-schema/recruitmcp-com-erasure-schema.json",
  "title": "Erasure",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recruitmcp-com-privacy-api-openapi.yml#/components/schemas/Erasure",
  "type": "object",
  "properties": {
    "subject": {
      "type": "string",
      "description": "Hash of the subject, for your records."
    },
    "erased": {
      "type": "object",
      "additionalProperties": {}
    },
    "suppressed": {
      "type": "boolean"
    },
    "cost": {
      "$ref": "#/$defs/Cost"
    }
  },
  "required": [
    "subject",
    "erased",
    "suppressed"
  ],
  "$defs": {
    "Cost": {
      "type": "object",
      "properties": {
        "credits": {
          "type": "integer",
          "description": "Credits charged by this call. Whole credits. 0 on an idempotent replay, where the body also has replayed: true and the header Idempotent-Replayed: true."
        },
        "cached_items": {
          "type": "integer",
          "description": "Items read from cache. On a replay, the value of the first response."
        },
        "live_items": {
          "type": "integer",
          "description": "Items fetched live by this call. 0 on a replay."
        },
        "upstream_calls": {
          "type": "integer",
          "description": "Index calls made by this call. 0 on a replay."
        }
      },
      "required": [
        "credits"
      ]
    }
  }
}