{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ThreadTurnsListParams",
  "type": "object",
  "required": [
    "threadId"
  ],
  "properties": {
    "cursor": {
      "description": "Opaque cursor to pass to the next call to continue after the last turn.",
      "type": [
        "string",
        "null"
      ]
    },
    "limit": {
      "description": "Optional turn page size.",
      "type": [
        "integer",
        "null"
      ],
      "format": "uint32",
      "minimum": 0.0
    },
    "sortDirection": {
      "description": "Optional turn pagination direction; defaults to descending.",
      "anyOf": [
        {
          "$ref": "#/definitions/SortDirection"
        },
        {
          "type": "null"
        }
      ]
    },
    "threadId": {
      "type": "string"
    }
  },
  "definitions": {
    "SortDirection": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ]
    }
  }
}