{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TurnRequest",
  "type": "object",
  "properties": {
    "actionId": {
      "type": "string"
    },
    "branchId": {
      "type": "string"
    },
    "expectedNodeId": {
      "type": "string"
    },
    "input": {
      "type": "string"
    },
    "intent": {
      "$ref": "#/$defs/TurnIntent"
    },
    "storyId": {
      "type": "string"
    }
  },
  "required": [
    "storyId",
    "branchId",
    "expectedNodeId",
    "actionId",
    "intent",
    "input"
  ],
  "$defs": {
    "TurnIntent": {
      "type": "string",
      "enum": [
        "speak_or_act",
        "continue",
        "regenerate",
        "push_check"
      ]
    }
  }
}
