{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/selfbadge-com/json-schema/selfbadge-com-revocation-result-schema.json",
  "title": "RevocationResult",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/selfbadge-com-openapi.yml#/components/schemas/RevocationResult",
  "type": "object",
  "required": [
    "result",
    "scope",
    "order_id",
    "pro_ended",
    "profile"
  ],
  "properties": {
    "result": {
      "type": "string",
      "enum": [
        "revoked",
        "already_revoked"
      ]
    },
    "scope": {
      "type": "string",
      "enum": [
        "profile",
        "order"
      ]
    },
    "pro_until": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Scope order: the end of this client's remaining Pro for the person, or null when none remains."
    },
    "order_id": {
      "type": "string"
    },
    "pro_ended": {
      "type": "integer"
    },
    "profile": {
      "type": "string",
      "enum": [
        "removed",
        "unclaimed",
        "detached",
        "none"
      ],
      "description": "What this call did to the profile. removed: this client created it and it now answers 410 Gone. unclaimed: it came from public sources and is public again without an owner, not 410. detached: the claim was merged into the person's own profile, which stays; only this client's facts and link went. none: this call changed no profile. Scope order always answers none. With result already_revoked, none means no profile of this client stands for the order; with result revoked and scope profile, none means none was found, so check it."
    },
    "test": {
      "type": "boolean"
    }
  }
}