{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/easy2257-com/json-schema/easy2257-com-crl-response-schema.json",
  "title": "CrlResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/easy2257-com-productions-api-openapi.yml#/components/schemas/CrlResponse",
  "type": "object",
  "properties": {
    "retrievedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Server time at which this response was built. This is the watermark: pass it as `since` on your next sync. There is no top-level `revokedAt`, and the per-item `revokedAt` values belong to individual certificates, so advancing a watermark off one of those will make your sync stall or skip."
    },
    "revocations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "productionId": {
            "type": "string"
          },
          "revokedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When this certificate was revoked."
          },
          "reason": {
            "type": "string",
            "description": "Free-form string, not a fixed enum. `removal_request:<id>` means an admin actioned a removal request, so pull the content. Match that one on the `removal_request:` prefix, since the id varies. `unspecified` means no reason was recorded. `annual_renewal` appears only on entries recorded before renewals were split out of this feed; the content stays up for those."
          },
          "type": {
            "type": "string",
            "enum": [
              "revocation",
              "supersession"
            ],
            "description": "What the entry is. `revocation` means the certified record was pulled: take the content down. `supersession` means an annual renewal replaced the certificate and the content stays up; it appears only on entries recorded before renewals stopped being written to this feed. New renewals never enter the list — they arrive as `production.certificate_renewed` webhooks and in `GET /api/v1/productions/{productionId}/certificates`."
          }
        },
        "required": [
          "productionId",
          "revokedAt",
          "reason",
          "type"
        ]
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque page cursor derived from the certificate record's `jwtId`. Pass it back verbatim as `cursor`. It is not a `productionId`, and ordering is stable on (revokedAt, jwtId) so pages never skip or repeat. null on the last page."
    }
  },
  "required": [
    "retrievedAt",
    "revocations",
    "nextCursor"
  ]
}