{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zelto/json-schema/zelto-review-schema.json",
  "title": "Review",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zelto-reviews-api-openapi.yml#/components/schemas/Review",
  "type": "object",
  "required": [
    "id",
    "entityType",
    "entityId",
    "status",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "entityType": {
      "type": "string",
      "enum": [
        "call",
        "agent"
      ],
      "description": "Reviewed entity type."
    },
    "entityId": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "reviewed",
        "flagged"
      ]
    },
    "reviewerId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "aiModel": {
      "type": [
        "string",
        "null"
      ]
    },
    "aiGeneratedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}