{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-rekyc-started-schema.json",
  "title": "RekycStarted",
  "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/RekycStarted",
  "type": "object",
  "required": [
    "id",
    "parentSubmissionId",
    "entityType",
    "entityName",
    "riskTier",
    "status",
    "metadata",
    "submission",
    "_links"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The NEW submission id."
    },
    "parentSubmissionId": {
      "type": "string"
    },
    "entityType": {
      "type": "string"
    },
    "entityName": {
      "type": "string"
    },
    "riskTier": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true,
      "description": "Merged metadata including parentSubmissionId, reKycTriggeredAt, reKycReason, requestedRiskTier."
    },
    "submission": {
      "type": "object",
      "additionalProperties": true,
      "description": "The created KycSubmission row (metadata is a JSON string).",
      "properties": {
        "id": {
          "type": "string"
        },
        "apiKeyId": {
          "type": "string"
        },
        "entityType": {
          "type": "string"
        },
        "riskTier": {
          "type": "string"
        },
        "entityName": {
          "type": "string"
        },
        "metadata": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "_links": {
      "type": "object",
      "properties": {
        "run": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "documents": {
          "type": "string"
        }
      }
    }
  }
}