{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "conversation_message kind support_ticket",
  "type": "object",
  "properties": {
    "account_id": {
      "description": "Account identifier",
      "type": "string"
    },
    "author_id": {
      "description": "ID of the user who posted the message",
      "type": "string"
    },
    "author_name": {
      "description": "Name of the user who posted the message",
      "type": "string"
    },
    "author_type": {
      "description": "Type of user who posted the message",
      "type": "string"
    },
    "survey_title": {
      "description": "Title of the survey the message belongs to.",
      "type": "string"
    },
    "rating": {
      "description": "A rating or score the user added to the survey response.",
      "type": "number",
      "minimum": 0,
      "maximum": 10
    },
    "solved": {
      "description": "If the transaction solved the users problem or not.",
      "type": "boolean"
    },
    "survey_type": {
      "description": "The type of survey. Used to define how to aggregate the rating.",
      "type": "string",
      "enum": [
        "csat",
        "nps"
      ]
    }
  }
}
