{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-rekyc-review-schedule-list-item-schema.json",
  "title": "RekycReviewScheduleListItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-periodic-review-api-openapi.yml#/components/schemas/RekycReviewScheduleListItem",
  "allOf": [
    {
      "$ref": "#/$defs/RekycReviewSchedule"
    },
    {
      "type": "object",
      "properties": {
        "daysUntilReview": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Rounded days until nextReviewDate; negative when overdue."
        }
      }
    }
  ],
  "$defs": {
    "RekycReviewSchedule": {
      "type": "object",
      "required": [
        "id",
        "submissionId",
        "apiKeyId",
        "riskTier",
        "reviewFrequencyDays",
        "nextReviewDate",
        "status",
        "createdAt"
      ],
      "description": "Periodic-review schedule for a submission (one row per submission).",
      "properties": {
        "id": {
          "type": "string"
        },
        "submissionId": {
          "type": "string"
        },
        "apiKeyId": {
          "type": "string"
        },
        "riskTier": {
          "type": "string",
          "description": "Submission risk tier at scheduling time (default low)."
        },
        "reviewFrequencyDays": {
          "type": "integer",
          "description": "Review interval derived from the tier: low 365, medium 180, high 90, critical 30 (unknown tiers 365)."
        },
        "nextReviewDate": {
          "type": "string",
          "format": "date-time"
        },
        "lastReviewDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "status": {
          "type": "string",
          "description": "scheduled | completed | superseded."
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}