{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/easy2257-com/json-schema/easy2257-com-certificates-response-schema.json",
  "title": "CertificatesResponse",
  "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/CertificatesResponse",
  "type": "object",
  "properties": {
    "productionId": {
      "type": "string"
    },
    "retrievedAt": {
      "type": "string",
      "format": "date-time"
    },
    "certificates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "jwtId": {
            "type": "string",
            "description": "The certificate's `jti` claim — its stable identifier across this API."
          },
          "kid": {
            "type": "string",
            "description": "Signing key id, resolvable against the public JWKS."
          },
          "issuedAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "CURRENT",
              "SUPERSEDED",
              "REVOKED"
            ],
            "description": "Lifecycle state. `CURRENT` is the one live certificate. `SUPERSEDED` means an annual renewal replaced it; the content stays up. `REVOKED` means the certified record was pulled; take the content down."
          },
          "revokedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Set on revoked certificates. Also present on certificates recorded as superseded before supersession was split out of revocation; `status` is the field to branch on."
          },
          "supersededAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Set when an annual renewal replaced this certificate. Null on records that predate the supersession split; `status` is the field to branch on."
          },
          "supersededByJwtId": {
            "type": [
              "string",
              "null"
            ],
            "description": "`jwtId` of the replacing certificate, when superseded."
          },
          "jwt": {
            "type": [
              "string",
              "null"
            ],
            "description": "The signed certificate itself. `null` on certificates issued before certificates were stored; those were delivered once in their webhook and arrive again with the next annual renewal."
          }
        },
        "required": [
          "jwtId",
          "kid",
          "issuedAt",
          "expiresAt",
          "status",
          "revokedAt",
          "supersededAt",
          "supersededByJwtId",
          "jwt"
        ]
      },
      "description": "Every certificate minted for the production, newest first."
    }
  },
  "required": [
    "productionId",
    "retrievedAt",
    "certificates"
  ]
}