{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comingup-today/json-schema/comingup-today-ok-envelope-event-retention-preview-schema.json",
  "title": "OkEnvelopeEventRetentionPreview",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comingup-today-internal-api-openapi.yml#/components/schemas/OkEnvelopeEventRetentionPreview",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "policyVersion": {
          "type": "string",
          "enum": [
            "event-history-proposed-v1"
          ]
        },
        "mode": {
          "type": "string",
          "enum": [
            "preview",
            "local_apply"
          ]
        },
        "examined": {
          "type": "integer"
        },
        "eligible": {
          "type": "integer"
        },
        "deleted": {
          "type": "integer"
        },
        "deletedInstances": {
          "type": "integer"
        },
        "deletedExceptions": {
          "type": "integer"
        },
        "deletedAttempts": {
          "type": "integer"
        },
        "deletedDeliveries": {
          "type": "integer"
        },
        "deletedContacts": {
          "type": "integer"
        },
        "deletedKioskAlerts": {
          "type": "integer"
        },
        "skipped": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          }
        },
        "failed": {
          "type": "integer"
        },
        "reconciledFailures": {
          "type": "integer"
        },
        "oldestEligibleEnd": {
          "type": [
            "string",
            "null"
          ]
        },
        "hasMore": {
          "type": "boolean"
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "backlogScope": {
          "type": "string",
          "enum": [
            "this_page_only"
          ]
        },
        "inventory": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "instances": {
                "type": "integer"
              },
              "exceptions": {
                "type": "integer"
              },
              "attempts": {
                "type": "integer"
              },
              "deliveries": {
                "type": "integer"
              },
              "contacts": {
                "type": "integer"
              },
              "kioskAlerts": {
                "type": "integer"
              },
              "reason": {
                "type": "string"
              },
              "effectiveEnd": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cutoff": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "instances",
              "exceptions",
              "attempts",
              "deliveries",
              "contacts",
              "kioskAlerts",
              "reason",
              "effectiveEnd",
              "cutoff"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "policyVersion",
        "mode",
        "examined",
        "eligible",
        "deleted",
        "deletedInstances",
        "deletedExceptions",
        "deletedAttempts",
        "deletedDeliveries",
        "deletedContacts",
        "deletedKioskAlerts",
        "skipped",
        "failed",
        "reconciledFailures",
        "oldestEligibleEnd",
        "hasMore",
        "nextCursor",
        "backlogScope",
        "inventory"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}