{
  "openapi": "3.0.4",
  "info": {
    "title": "AiChatBot.Api",
    "version": "1.0"
  },
  "paths": {
    "/api/admin/bots/health": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminRunBotHealthChecks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChatClientHealthCheckResult"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBots",
        "parameters": [
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetBotsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": ["AdminBot"],
        "operationId": "AdminCreateBot",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateBotRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateBotRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateBotRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCreateBotResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBot",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetBotResponseDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": ["AdminBot"],
        "operationId": "AdminUpdateBot",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": ["AdminBot"],
        "operationId": "AdminDeleteBot",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/bots/{botId}/facts": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBotFacts",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetBotFactsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": ["AdminBot"],
        "operationId": "AdminCreateBotFact",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateBotFactRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateBotFactRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateBotFactRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCreateBotFactResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}/facts/{botFactId}": {
      "put": {
        "tags": ["AdminBot"],
        "operationId": "AdminUpdateBotFact",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "botFactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotFactRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotFactRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotFactRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": ["AdminBot"],
        "operationId": "AdminDeleteBotFact",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "botFactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/bots/startbots": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetStartBots",
        "parameters": [
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetBotsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{startBotId}/bots": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetStartBotBots",
        "parameters": [
          {
            "name": "startBotId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetStartBotBotsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{startBotId}/unassignedbots": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetStartBotUnassignedBots",
        "parameters": [
          {
            "name": "startBotId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetUnassignedBotsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{startBotId}/bots/{botId}": {
      "post": {
        "tags": ["AdminBot"],
        "operationId": "AdminCreateStartBotBot",
        "parameters": [
          {
            "name": "startBotId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateStartBotBotRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateStartBotBotRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCreateStartBotBotRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": ["AdminBot"],
        "operationId": "AdminUpdateStartBotBot",
        "parameters": [
          {
            "name": "startBotId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateStartBotBotRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateStartBotBotRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateStartBotBotRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": ["AdminBot"],
        "operationId": "AdminDeleteStartBotBot",
        "parameters": [
          {
            "name": "startBotId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/bots/{botId}/feedback": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBotFeedback",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FilterByVote",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ShowFeedbacksWithoutStatus",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ShowFeedbacksWithStatus",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "FilterByStatus",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetBotFeedbackResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}/feedback/{feedbackId}": {
      "put": {
        "tags": ["AdminBot"],
        "operationId": "AdminUpdateBotFeedback",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "feedbackId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotFeedbackRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotFeedbackRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotFeedbackRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/bots/{botId}/embedding": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBotEmbedding",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetBotEmbeddingDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/stop/{isStopAllBots}": {
      "put": {
        "tags": ["AdminBot"],
        "operationId": "AdminStopAllBots",
        "parameters": [
          {
            "name": "isStopAllBots",
            "in": "path",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/bots/implementationTypes": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBotImplementationTypes",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}/configuration": {
      "put": {
        "tags": ["AdminBot"],
        "operationId": "AdminUpdateBotConfiguration",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotConfigurationRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotConfigurationRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUpdateBotConfigurationRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBotConfiguration",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetBotConfigurationResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}/configurations": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBotConfigurations",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminGetBotConfigurationResponseDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}/embeddings/download/ticket": {
      "post": {
        "tags": ["AdminBot"],
        "operationId": "AdminCreateDownloadBotEmbeddingTicket",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}/feedback/download/ticket": {
      "post": {
        "tags": ["AdminBot"],
        "operationId": "AdminCreateDownloadBotFeedbackTicket",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}/chats/download/ticket": {
      "post": {
        "tags": ["AdminBot"],
        "operationId": "AdminCreateDownloadBotChatsTicket",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}/chats": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBotChats",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ToDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetBotChatsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/bots/{botId}/chats/{chatId}": {
      "get": {
        "tags": ["AdminBot"],
        "operationId": "AdminGetBotChat",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminGetBotChatResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/bots/{botId}/search": {
      "post": {
        "tags": ["Bot"],
        "operationId": "SearchBotByStartBot",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchBotByStartBotRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchBotByStartBotRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchBotByStartBotRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/bots": {
      "get": {
        "tags": ["Bot"],
        "operationId": "GetBots",
        "parameters": [
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetBotsResponseItemDtoPagingResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBotsResponseItemDtoPagingResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBotsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/bots/bystartbot/{startBotId}": {
      "get": {
        "tags": ["Bot"],
        "operationId": "GetBotsByStartBot",
        "parameters": [
          {
            "name": "startBotId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetBotsResponseItemDtoPagingResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBotsResponseItemDtoPagingResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBotsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/bots/startbots": {
      "get": {
        "tags": ["Bot"],
        "operationId": "GetStartBots",
        "parameters": [
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetBotsResponseItemDtoPagingResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBotsResponseItemDtoPagingResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBotsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/bots/botimage/{botId}": {
      "get": {
        "tags": ["Bot"],
        "operationId": "GetBotImage",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bots/stop": {
      "get": {
        "tags": ["Bot"],
        "operationId": "IsStopAllBots",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/botRouting": {
      "post": {
        "tags": ["BotRouting"],
        "operationId": "ProcessBotRouting",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {}
            },
            "text/json": {
              "schema": {}
            },
            "application/*+json": {
              "schema": {}
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {}
              },
              "application/json": {
                "schema": {}
              },
              "text/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/cache": {
      "delete": {
        "tags": ["Cache"],
        "operationId": "DeleteCacheAsync",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/chats": {
      "post": {
        "tags": ["Chat"],
        "operationId": "CreateChat",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCreateRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCreateRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCreateRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCreateResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCreateResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCreateResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/chats/create/bybotcode": {
      "post": {
        "tags": ["Chat"],
        "operationId": "CreateChatByBotCode",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCreateByBotCodeRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCreateByBotCodeRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCreateByBotCodeRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCreateResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCreateResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCreateResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/chats/{chatId}/completions": {
      "post": {
        "tags": ["Chat"],
        "operationId": "ChatCompletion",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletionRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletionRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletionRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCompletionResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCompletionResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCompletionResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/chats/{chatId}": {
      "get": {
        "tags": ["Chat"],
        "operationId": "GetChat",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatResponseDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["Chat"],
        "operationId": "DeleteChat",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/chats/{chatId}/feedback": {
      "post": {
        "tags": ["Chat"],
        "operationId": "BotFeedback",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BotFeedbackRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BotFeedbackRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BotFeedbackRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BotFeedbackResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BotFeedbackResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BotFeedbackResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/chats/OpenChatBotId": {
      "get": {
        "tags": ["Chat"],
        "operationId": "GetOpenChatBotId",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetOpenChatBotIdResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOpenChatBotIdResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOpenChatBotIdResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/chats/{chatId}/displayName": {
      "put": {
        "tags": ["Chat"],
        "operationId": "UpdateChatDisplayName",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChatDisplayNameRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChatDisplayNameRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChatDisplayNameRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/chats/{chatId}/userSystemMessage": {
      "put": {
        "tags": ["Chat"],
        "operationId": "UpdateChatUserSystemMessage",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChatUserSystemMessageRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChatUserSystemMessageRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChatUserSystemMessageRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": ["Chat"],
        "operationId": "DeleteChatUserSystemMessage",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/chats/{chatId}/tickets": {
      "post": {
        "tags": ["Chat"],
        "operationId": "CreateChatOneTimeticket",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/chats/{chatId}/downloads/{path}": {
      "get": {
        "tags": ["Chat"],
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ticket",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/chats/{chatId}/labels": {
      "get": {
        "tags": ["Chat"],
        "operationId": "GetChatLabels",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetLabelResponseDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetLabelResponseDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetLabelResponseDto"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["Chat"],
        "operationId": "RemoveChatLabels",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/chats/{chatId}/labels/{labelId}": {
      "put": {
        "tags": ["Chat"],
        "operationId": "AddChatLabel",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "labelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": ["Chat"],
        "operationId": "RemoveChatLabel",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "labelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/chats/{chatId}/labelIds": {
      "get": {
        "tags": ["Chat"],
        "operationId": "GetChatLabelIds",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/chats/withLabels": {
      "get": {
        "tags": ["Chat"],
        "operationId": "GetChatsWithLabels",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetChatsWithLabelsResponseItemDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetChatsWithLabelsResponseItemDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetChatsWithLabelsResponseItemDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/chats/{chatId}/completions2": {
      "post": {
        "tags": ["Chat"],
        "operationId": "ChatCompletion2",
        "parameters": [
          {
            "name": "chatId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletion2RequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletion2RequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletion2RequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCompletion2ResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCompletion2ResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCompletion2ResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/chatSessions": {
      "post": {
        "tags": ["ChatSession"],
        "operationId": "CreateChatSession",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChatSessionRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChatSessionRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChatSessionRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateChatSessionResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateChatSessionResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateChatSessionResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/chatSessions/{chatSessionId}": {
      "get": {
        "tags": ["ChatSession"],
        "operationId": "GetChatSession",
        "parameters": [
          {
            "name": "chatSessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatSessionResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatSessionResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatSessionResponseDto"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["ChatSession"],
        "operationId": "DeleteChatSession",
        "parameters": [
          {
            "name": "chatSessionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/labels/CreateLabel": {
      "post": {
        "tags": ["Label"],
        "operationId": "CreateLabel",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLabelRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLabelRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLabelRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/labels/UpdateLabel/{labelId}": {
      "put": {
        "tags": ["Label"],
        "operationId": "UpdateLabel",
        "parameters": [
          {
            "name": "labelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLabelRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLabelRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLabelRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/labels/DeleteLabel/{labelId}": {
      "delete": {
        "tags": ["Label"],
        "operationId": "DeleteLabel",
        "parameters": [
          {
            "name": "labelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/labels/GetLabels": {
      "get": {
        "tags": ["Label"],
        "operationId": "GetLabels",
        "parameters": [
          {
            "name": "filterBotId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetLabelResponseDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetLabelResponseDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetLabelResponseDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/labels/GetLabel/{labelId}": {
      "get": {
        "tags": ["Label"],
        "operationId": "GetLabel",
        "parameters": [
          {
            "name": "labelId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetLabelResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetLabelResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetLabelResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/statistic": {
      "put": {
        "tags": ["Statistic"],
        "operationId": "UpdateStatistic",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/statistic/tokenUsageStatistic": {
      "get": {
        "tags": ["Statistic"],
        "operationId": "GetTokenUsageStatistic",
        "parameters": [
          {
            "name": "BotId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TokenUsageTypeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "FromRequestDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ToRequestDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTokenUsageStatisticResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/status/current": {
      "get": {
        "tags": ["System"],
        "operationId": "GetCurrentSystemStatus",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SystemMessageDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": ["System"],
        "operationId": "SetCurrentSystemStatus",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SystemMessageDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SystemMessageDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SystemMessageDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/System/chatTitleLlmConfiguration/current": {
      "get": {
        "tags": ["System"],
        "operationId": "GetCurrentChatTitleLlmConfiguration",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatTitleLlmConfigurationDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": ["System"],
        "operationId": "SetCurrentChatTitleLlmConfiguration",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatTitleLlmConfigurationDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatTitleLlmConfigurationDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChatTitleLlmConfigurationDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/System/publicInstance": {
      "get": {
        "tags": ["System"],
        "operationId": "IsPublicInstance",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/System/additionalCorsOrigins": {
      "get": {
        "tags": ["System"],
        "operationId": "GetAdditionalCorsOrigins",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringResultDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": ["System"],
        "operationId": "SetAdditionalCorsOrigins",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StringRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/StringRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/StringRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/test/remoteBot/chatCompletions": {
      "post": {
        "tags": ["TestRemoteBot"],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoteBotChatCompletionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoteBotChatCompletionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoteBotChatCompletionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/test/remoteBot/health": {
      "get": {
        "tags": ["TestRemoteBot"],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current": {
      "get": {
        "tags": ["User"],
        "operationId": "GetCurrentUser",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CurrentUserDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": ["User"],
        "operationId": "UpdateCurrentUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current/acceptTerms": {
      "put": {
        "tags": ["User"],
        "operationId": "AcceptTerms",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current/chats/all/{keepfavorites}": {
      "delete": {
        "tags": ["User"],
        "operationId": "DeleteCurrentUserChats",
        "parameters": [
          {
            "name": "keepfavorites",
            "in": "path",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current/chats/byid/{chatid}": {
      "delete": {
        "tags": ["User"],
        "operationId": "DeleteCurrentUserChatById",
        "parameters": [
          {
            "name": "chatid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current/chats/{chatid}/completion/{completionid}": {
      "delete": {
        "tags": ["User"],
        "operationId": "DeleteCurrentUserChatCompletionById",
        "parameters": [
          {
            "name": "chatid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "completionid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current/chats/bybot/{botid}/{keepfavorites}": {
      "delete": {
        "tags": ["User"],
        "operationId": "DeleteCurrentUserChatsByBotId",
        "parameters": [
          {
            "name": "botid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keepfavorites",
            "in": "path",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current/chats/bybot/{botid}/{systemmessageid}/{keepfavorites}": {
      "delete": {
        "tags": ["User"],
        "operationId": "DeleteCurrentUserChatsByBotIdAndSystemMessageId",
        "parameters": [
          {
            "name": "botid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "systemmessageid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keepfavorites",
            "in": "path",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current/chats/{botid}": {
      "get": {
        "tags": ["User"],
        "operationId": "GetCurrentUserChatsByBot",
        "parameters": [
          {
            "name": "botid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OnlyFavorites",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/users/current/chats/{botid}/{usersystempromptid}": {
      "get": {
        "tags": ["User"],
        "operationId": "GetCurrentUserChatsByBotAndSystemprompt",
        "parameters": [
          {
            "name": "botid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "usersystempromptid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OnlyFavorites",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/users/current/chats": {
      "get": {
        "tags": ["User"],
        "operationId": "GetCurrentUserChats",
        "parameters": [
          {
            "name": "OnlyFavorites",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/users/current/chats/{chatid}/isfavorite": {
      "put": {
        "tags": ["User"],
        "operationId": "UpdateChatIsFavorite",
        "parameters": [
          {
            "name": "chatid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatUpdateIsFavoriteRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatUpdateIsFavoriteRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChatUpdateIsFavoriteRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current/userSystemMessage": {
      "get": {
        "tags": ["User"],
        "operationId": "GetUserSystemMessages",
        "parameters": [
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUserSystemMessagesResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": ["User"],
        "operationId": "CreateUserSystemMessage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserSystemMessageRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserSystemMessageRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserSystemMessageRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/users/current/userSystemMessage/{userSystemMessageId}": {
      "get": {
        "tags": ["User"],
        "operationId": "GetUserSystemMessage",
        "parameters": [
          {
            "name": "userSystemMessageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUserSystemMessageResponseDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": ["User"],
        "operationId": "UpdateUserSystemMessage",
        "parameters": [
          {
            "name": "userSystemMessageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserSystemMessageRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserSystemMessageRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserSystemMessageRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": ["User"],
        "operationId": "DeleteUserSystemMessage",
        "parameters": [
          {
            "name": "userSystemMessageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/users/current/userSystemMessageCount": {
      "get": {
        "tags": ["User"],
        "operationId": "GetUserSystemMessageCount",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUserSystemMessageCountResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/users/current/oneTimeTicket": {
      "post": {
        "tags": ["User"],
        "operationId": "CreateCurrentUserOneTimeTicket",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/users/current/adGroups/byBot/{botId}": {
      "get": {
        "tags": ["User"],
        "operationId": "GetCurrentUserAdGroupsByBot",
        "parameters": [
          {
            "name": "botId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCurrentUserAdGroupsByBotResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/users/current/chatSessions": {
      "get": {
        "tags": ["User"],
        "operationId": "GetCurrentUserChatSessions",
        "parameters": [
          {
            "name": "SearchFor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OrderBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetChatSessionsResponseItemDtoPagingResult"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AdminCreateBotFactRequestDto": {
        "required": ["factText"],
        "type": "object",
        "properties": {
          "isActive": {
            "type": "boolean"
          },
          "factText": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminCreateBotFactResponseDto": {
        "required": ["botFactId"],
        "type": "object",
        "properties": {
          "botFactId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminCreateBotRequestDto": {
        "required": ["code", "displayNameTv"],
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "displayNameTv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "displayMessageTv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "descriptionTv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "isActive": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "userLogins": {
            "type": "string",
            "nullable": true
          },
          "userGroups": {
            "type": "string",
            "nullable": true
          },
          "userDomains": {
            "type": "string",
            "nullable": true
          },
          "adminLogins": {
            "type": "string",
            "nullable": true
          },
          "contributorLogins": {
            "type": "string",
            "nullable": true
          },
          "statisticsLogins": {
            "type": "string",
            "nullable": true
          },
          "sampleQuestion1Tv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "sampleQuestion2Tv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "implementationType": {
            "type": "string",
            "nullable": true
          },
          "isStartBot": {
            "type": "boolean",
            "nullable": true,
            "deprecated": true
          }
        },
        "additionalProperties": false
      },
      "AdminCreateBotResponseDto": {
        "required": ["botId"],
        "type": "object",
        "properties": {
          "botId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminCreateStartBotBotRequestDto": {
        "required": ["keywords"],
        "type": "object",
        "properties": {
          "isDefaultBot": {
            "type": "boolean"
          },
          "keywords": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotChatResponseCompletionDto": {
        "type": "object",
        "properties": {
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "userMessage": {
            "type": "string",
            "nullable": true
          },
          "assistantMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotChatResponseDto": {
        "type": "object",
        "properties": {
          "completions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminGetBotChatResponseCompletionDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotChatsResponseItemDto": {
        "type": "object",
        "properties": {
          "chatId": {
            "type": "string"
          },
          "chatTitle": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastAccessedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "firstUserMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotChatsResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminGetBotChatsResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotConfigurationResponseDto": {
        "type": "object",
        "properties": {
          "versionId": {
            "type": "integer",
            "format": "int32"
          },
          "configurationRaw": {
            "type": "string",
            "nullable": true
          },
          "commitMessage": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdByUserName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotEmbeddingDto": {
        "required": ["botId"],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "botId": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "embedding": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotEmbeddingDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminGetBotEmbeddingDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotFactsResponseItemDto": {
        "required": ["botFactId", "factText"],
        "type": "object",
        "properties": {
          "botFactId": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "factText": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotFactsResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminGetBotFactsResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotFeedbackResponseItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "botId": {
            "type": "string",
            "nullable": true
          },
          "userMessage": {
            "type": "string",
            "nullable": true
          },
          "assistantMessage": {
            "type": "string",
            "nullable": true
          },
          "userComment": {
            "type": "string",
            "nullable": true
          },
          "messageCreatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "voteId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "adminComment": {
            "type": "string",
            "nullable": true
          },
          "adminUpdatedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotFeedbackResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminGetBotFeedbackResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotResponseDto": {
        "required": [
          "botId",
          "code",
          "createdUtc",
          "displayNameTv",
          "implementationType",
          "updatedUtc"
        ],
        "type": "object",
        "properties": {
          "botId": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "implementationType": {
            "type": "string",
            "nullable": true
          },
          "displayNameTv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "displayMessageTv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "descriptionTv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "sampleQuestion1Tv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "sampleQuestion2Tv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "isActive": {
            "type": "boolean"
          },
          "isStartBot": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "userLogins": {
            "type": "string",
            "nullable": true
          },
          "userGroups": {
            "type": "string",
            "nullable": true
          },
          "userDomains": {
            "type": "string",
            "nullable": true
          },
          "adminLogins": {
            "type": "string",
            "nullable": true
          },
          "contributorLogins": {
            "type": "string",
            "nullable": true
          },
          "statisticsLogins": {
            "type": "string",
            "nullable": true
          },
          "isBotAdmin": {
            "type": "boolean"
          },
          "isBotContributor": {
            "type": "boolean"
          },
          "isBotStatistics": {
            "type": "boolean"
          },
          "announcementMessageId": {
            "type": "string",
            "nullable": true
          },
          "announcementMessageText": {
            "type": "string",
            "nullable": true
          },
          "announcementMessageFromUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "announcementMessageUntilUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotsResponseItemDto": {
        "required": [
          "botId",
          "code",
          "createdUtc",
          "implementationType",
          "updatedUtc"
        ],
        "type": "object",
        "properties": {
          "botId": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "implementationType": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "displayMessage": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isStartBot": {
            "type": "boolean"
          },
          "isFactBot": {
            "type": "boolean"
          },
          "isOpenBot": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "isEditingSupported": {
            "type": "boolean"
          },
          "isBotAdmin": {
            "type": "boolean"
          },
          "isBotContributor": {
            "type": "boolean"
          },
          "isBotStatistics": {
            "type": "boolean"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "configUpdatedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetBotsResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminGetBotsResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetStartBotBotsResponseItemDto": {
        "required": ["botCode", "botId", "keywords"],
        "type": "object",
        "properties": {
          "botId": {
            "type": "string",
            "nullable": true
          },
          "botCode": {
            "type": "string",
            "nullable": true
          },
          "botDisplayName": {
            "type": "string",
            "nullable": true
          },
          "botDisplayMessage": {
            "type": "string",
            "nullable": true
          },
          "botDescription": {
            "type": "string",
            "nullable": true
          },
          "isDefaultBot": {
            "type": "boolean"
          },
          "isStartBot": {
            "type": "boolean"
          },
          "keywords": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetStartBotBotsResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminGetStartBotBotsResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetUnassignedBotsResponseItemDto": {
        "type": "object",
        "properties": {
          "botId": {
            "type": "string",
            "nullable": true
          },
          "botDisplayName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminGetUnassignedBotsResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminGetUnassignedBotsResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminUpdateBotConfigurationRequestDto": {
        "type": "object",
        "properties": {
          "configurationRaw": {
            "type": "string",
            "nullable": true
          },
          "commitMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminUpdateBotFactRequestDto": {
        "required": ["factText"],
        "type": "object",
        "properties": {
          "isActive": {
            "type": "boolean"
          },
          "factText": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminUpdateBotFeedbackRequestDto": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "adminComment": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminUpdateBotRequestDto": {
        "required": ["code", "displayNameTv"],
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "displayNameTv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "displayMessageTv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "descriptionTv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "isActive": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "userLogins": {
            "type": "string",
            "nullable": true
          },
          "userGroups": {
            "type": "string",
            "nullable": true
          },
          "userDomains": {
            "type": "string",
            "nullable": true
          },
          "adminLogins": {
            "type": "string",
            "nullable": true
          },
          "contributorLogins": {
            "type": "string",
            "nullable": true
          },
          "statisticsLogins": {
            "type": "string",
            "nullable": true
          },
          "sampleQuestion1Tv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "sampleQuestion2Tv": {
            "$ref": "#/components/schemas/TermValueDto"
          },
          "announcementMessageText": {
            "type": "string",
            "nullable": true
          },
          "announcementMessageFromUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "announcementMessageUntilUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminUpdateStartBotBotRequestDto": {
        "required": ["keywords"],
        "type": "object",
        "properties": {
          "isDefaultBot": {
            "type": "boolean"
          },
          "keywords": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BotFeedbackRequestDto": {
        "type": "object",
        "properties": {
          "chatId": {
            "type": "string",
            "nullable": true
          },
          "userMessage": {
            "type": "string",
            "nullable": true
          },
          "assistantMessage": {
            "type": "string",
            "nullable": true
          },
          "messageCreatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "userComment": {
            "type": "string",
            "nullable": true
          },
          "voteId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BotFeedbackResponseDto": {
        "type": "object",
        "properties": {
          "feedbackId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BotStatusMessageDto": {
        "required": ["message", "message_Type", "timestamp"],
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "message_Type": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatClientHealthCheckResult": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "botId": {
            "type": "string"
          },
          "isHealthy": {
            "type": "boolean"
          },
          "healthCheckLog": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatCompletion2RequestDto": {
        "required": ["userMessage"],
        "type": "object",
        "properties": {
          "stream": {
            "type": "boolean"
          },
          "userMessage": {
            "type": "string",
            "nullable": true
          },
          "isTraceLogEnabled": {
            "type": "boolean"
          },
          "options": {
            "type": "object",
            "additionalProperties": {},
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatCompletion2ResponseDto": {
        "type": "object",
        "properties": {
          "assistantMessage": {
            "type": "string",
            "nullable": true
          },
          "chatId": {
            "type": "string"
          },
          "completionId": {
            "type": "string"
          },
          "chatDisplayName": {
            "type": "string",
            "nullable": true
          },
          "promptTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "completionTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "totalTokens": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/ChatCompletionMetaData"
          },
          "traceLog": {
            "type": "string",
            "nullable": true
          },
          "error": {
            "nullable": true
          },
          "botStatusMessages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BotStatusMessageDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatCompletionMetaData": {
        "type": "object",
        "properties": {
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InformationSource"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatCompletionRequestDto": {
        "required": ["userMessage"],
        "type": "object",
        "properties": {
          "userMessage": {
            "type": "string",
            "nullable": true
          },
          "ignoreChatHistory": {
            "type": "boolean"
          },
          "isAdminChat": {
            "type": "boolean"
          },
          "isTraceLogEnabled": {
            "type": "boolean"
          },
          "options": {
            "type": "object",
            "additionalProperties": {},
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatCompletionResponseDto": {
        "required": [
          "assistantMessage",
          "botDisplayName",
          "botId",
          "chatId",
          "completionId",
          "completionTokens",
          "promptTokens",
          "totalTokens",
          "userMessage"
        ],
        "type": "object",
        "properties": {
          "completionId": {
            "type": "string",
            "nullable": true
          },
          "chatId": {
            "type": "string",
            "nullable": true
          },
          "userMessage": {
            "type": "string",
            "nullable": true
          },
          "assistantMessage": {
            "type": "string",
            "nullable": true
          },
          "promptTokens": {
            "type": "integer",
            "format": "int32"
          },
          "completionTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int32"
          },
          "botId": {
            "type": "string",
            "nullable": true
          },
          "botDisplayName": {
            "type": "string",
            "nullable": true
          },
          "botDisplayMessage": {
            "type": "string",
            "nullable": true
          },
          "botDescription": {
            "type": "string",
            "nullable": true
          },
          "chatDisplayName": {
            "type": "string",
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/ChatCompletionMetaData"
          },
          "traceLog": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatCreateByBotCodeRequestDto": {
        "required": ["botCode"],
        "type": "object",
        "properties": {
          "botCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatCreateRequestDto": {
        "type": "object",
        "properties": {
          "chatSessionId": {
            "type": "string"
          },
          "botId": {
            "type": "string"
          },
          "noChatHistory": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ChatCreateResponseDto": {
        "required": [
          "botDescription",
          "botDisplayMessage",
          "botDisplayName",
          "botId",
          "botSampleQuestion1",
          "botSampleQuestion2",
          "chatId"
        ],
        "type": "object",
        "properties": {
          "chatSessionId": {
            "type": "string"
          },
          "chatId": {
            "type": "string"
          },
          "botId": {
            "type": "string"
          },
          "botDisplayName": {
            "type": "string",
            "nullable": true
          },
          "botDisplayMessage": {
            "type": "string",
            "nullable": true
          },
          "botDescription": {
            "type": "string",
            "nullable": true
          },
          "botSampleQuestion1": {
            "type": "string",
            "nullable": true
          },
          "botSampleQuestion2": {
            "type": "string",
            "nullable": true
          },
          "isUserSystemMessageSupported": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ChatTitleLlmConfigurationDto": {
        "required": [
          "chatTitleLlmApiKeyEncrypted",
          "chatTitleLlmEndpoint",
          "chatTitleLlmModelName"
        ],
        "type": "object",
        "properties": {
          "chatTitleLlmEndpoint": {
            "type": "string",
            "nullable": true
          },
          "chatTitleLlmApiKeyEncrypted": {
            "type": "string",
            "nullable": true
          },
          "chatTitleLlmModelName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatUpdateIsFavoriteRequestDto": {
        "type": "object",
        "properties": {
          "isFavorite": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ColorDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "backgroundColor": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateChatSessionRequestDto": {
        "type": "object",
        "properties": {
          "noChatHistory": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateChatSessionResponseDto": {
        "type": "object",
        "properties": {
          "chatSessionId": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "CreateLabelRequestDto": {
        "type": "object",
        "properties": {
          "botId": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "$ref": "#/components/schemas/ColorDto"
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CurrentUserDto": {
        "required": [
          "id",
          "isKeepChatHistory",
          "isKeepFavoritesForever",
          "isTermsAccepted",
          "keepChatHistoryForDays",
          "login",
          "roles"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "login": {
            "type": "string",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isTermsAccepted": {
            "type": "boolean"
          },
          "isKeepChatHistory": {
            "type": "boolean"
          },
          "keepChatHistoryForDays": {
            "type": "integer",
            "format": "int32"
          },
          "isKeepFavoritesForever": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "EmptyDto": {
        "type": "object",
        "additionalProperties": false
      },
      "GetBotsResponseItemDto": {
        "required": ["botId", "code", "createdUtc", "isStartBot", "updatedUtc"],
        "type": "object",
        "properties": {
          "botId": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "displayMessage": {
            "type": "string",
            "nullable": true
          },
          "sampleQuestion1": {
            "type": "string",
            "nullable": true
          },
          "sampleQuestion2": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "modelName": {
            "type": "string",
            "nullable": true
          },
          "isStartBot": {
            "type": "boolean"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "announcementMessageId": {
            "type": "string",
            "nullable": true
          },
          "announcementMessageText": {
            "type": "string",
            "nullable": true
          },
          "announcementMessageFromUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "announcementMessageUntilUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetBotsResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetBotsResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetChatResponseCompletionDto": {
        "required": [
          "assistantMessage",
          "completionId",
          "createdUtc",
          "userMessage"
        ],
        "type": "object",
        "properties": {
          "completionId": {
            "type": "string",
            "nullable": true
          },
          "userMessage": {
            "type": "string",
            "nullable": true
          },
          "assistantMessage": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "metaData": {
            "$ref": "#/components/schemas/ChatCompletionMetaData"
          }
        },
        "additionalProperties": false
      },
      "GetChatResponseDto": {
        "required": [
          "botDescription",
          "botDisplayMessage",
          "botDisplayName",
          "botId",
          "botSampleQuestion1",
          "botSampleQuestion2",
          "chatId",
          "completions",
          "createdUtc",
          "displayName",
          "isFavorite",
          "lastAccessedUtc"
        ],
        "type": "object",
        "properties": {
          "chatId": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastAccessedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "botId": {
            "type": "string",
            "nullable": true
          },
          "botDisplayName": {
            "type": "string",
            "nullable": true
          },
          "botDisplayMessage": {
            "type": "string",
            "nullable": true
          },
          "botDescription": {
            "type": "string",
            "nullable": true
          },
          "botSampleQuestion1": {
            "type": "string",
            "nullable": true
          },
          "botSampleQuestion2": {
            "type": "string",
            "nullable": true
          },
          "completions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetChatResponseCompletionDto"
            },
            "nullable": true
          },
          "isFavorite": {
            "type": "boolean"
          },
          "isUserSystemMessageSupported": {
            "type": "boolean"
          },
          "userSystemMessageId": {
            "type": "string",
            "nullable": true
          },
          "userSystemMessageDisplayName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetChatSessionResponseDto": {
        "required": ["chats", "createdUtc", "displayName", "lastAccessedUtc"],
        "type": "object",
        "properties": {
          "chatSessionId": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastAccessedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "chats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetChatResponseDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetChatSessionsResponseItemDto": {
        "required": [
          "chatCount",
          "chatSessionId",
          "createdUtc",
          "displayName",
          "lastAccessedUtc"
        ],
        "type": "object",
        "properties": {
          "chatSessionId": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastAccessedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "chatCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "GetChatSessionsResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetChatSessionsResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetChatsResponseItemDto": {
        "required": [
          "botDisplayName",
          "botId",
          "chatId",
          "displayName",
          "isFavorite",
          "lastAccessedUtc"
        ],
        "type": "object",
        "properties": {
          "chatId": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "lastAccessedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "botId": {
            "type": "string",
            "nullable": true
          },
          "botDisplayName": {
            "type": "string",
            "nullable": true
          },
          "userSystemMessageId": {
            "type": "string",
            "nullable": true
          },
          "userSystemMessageDisplayName": {
            "type": "string",
            "nullable": true
          },
          "isFavorite": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetChatsResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetChatsResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetChatsWithLabelsResponseItemDto": {
        "type": "object",
        "properties": {
          "botId": {
            "type": "string"
          },
          "chatId": {
            "type": "string"
          },
          "labelId": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetCurrentUserAdGroupsByBotResponseDto": {
        "type": "object",
        "properties": {
          "adGroups": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetLabelResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "botId": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "$ref": "#/components/schemas/ColorDto"
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetOpenChatBotIdResponseDto": {
        "type": "object",
        "properties": {
          "openChatBotId": {
            "type": "string",
            "nullable": true
          },
          "isPublic": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetTokenUsageStatisticResponseItemDto": {
        "type": "object",
        "properties": {
          "requestDate": {
            "type": "string",
            "format": "date"
          },
          "botId": {
            "type": "string"
          },
          "botDisplayName": {
            "type": "string",
            "nullable": true
          },
          "tokenUsageTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "userCount": {
            "type": "integer",
            "format": "int32"
          },
          "requestCount": {
            "type": "integer",
            "format": "int32"
          },
          "promptTokens": {
            "type": "integer",
            "format": "int32"
          },
          "completionTokens": {
            "type": "integer",
            "format": "int32"
          },
          "totalTokens": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "GetTokenUsageStatisticResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetTokenUsageStatisticResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetUserSystemMessageCountResponseDto": {
        "type": "object",
        "properties": {
          "systemMessageCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "GetUserSystemMessageResponseDto": {
        "type": "object",
        "properties": {
          "userSystemMessageId": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "systemMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetUserSystemMessagesResponseItemDto": {
        "type": "object",
        "properties": {
          "userSystemMessageId": {
            "type": "string"
          },
          "displayName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetUserSystemMessagesResponseItemDtoPagingResult": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalPageCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "hasPrevious": {
            "type": "boolean"
          },
          "hasNext": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetUserSystemMessagesResponseItemDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InformationSource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "createTicketUrl": {
            "type": "string",
            "nullable": true
          },
          "fields": {
            "type": "object",
            "additionalProperties": {},
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RemoteBotChatCompletionRequest": {
        "required": [
          "botId",
          "botStates",
          "chatId",
          "userLogin",
          "userMessage"
        ],
        "type": "object",
        "properties": {
          "stream": {
            "type": "boolean"
          },
          "chatId": {
            "type": "string",
            "nullable": true
          },
          "chatDisplayName": {
            "type": "string",
            "nullable": true
          },
          "botId": {
            "type": "string",
            "nullable": true
          },
          "userLogin": {
            "type": "string",
            "nullable": true
          },
          "userDisplayName": {
            "type": "string",
            "nullable": true
          },
          "userAdGroups": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "userMessage": {
            "type": "string",
            "nullable": true
          },
          "configuration": {
            "nullable": true
          },
          "botStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemoteChatBotState"
            },
            "nullable": true
          },
          "options": {
            "type": "object",
            "additionalProperties": {},
            "nullable": true
          },
          "isTraceLogEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "RemoteChatBotState": {
        "required": ["botId", "chatId", "lastMessageUtc"],
        "type": "object",
        "properties": {
          "chatId": {
            "type": "string",
            "nullable": true
          },
          "botId": {
            "type": "string",
            "nullable": true
          },
          "lastMessageUtc": {
            "type": "string",
            "format": "date-time"
          },
          "botState": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchBotByStartBotRequestDto": {
        "required": ["userMessage"],
        "type": "object",
        "properties": {
          "userMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StringRequestDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StringResultDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SystemMessageDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TermValueDto": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          },
          "valueDe": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateChatDisplayNameRequestDto": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateChatUserSystemMessageRequestDto": {
        "type": "object",
        "properties": {
          "userSystemMessageId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateLabelRequestDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "$ref": "#/components/schemas/ColorDto"
          }
        },
        "additionalProperties": false
      },
      "UpdateUserRequestDto": {
        "type": "object",
        "properties": {
          "isKeepChatHistory": {
            "type": "boolean"
          },
          "keepChatHistoryForDays": {
            "type": "integer",
            "format": "int32"
          },
          "isKeepFavoritesForever": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateUserSystemMessageRequestDto": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "systemMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  },
  "tags": [
    {
      "name": "AdminBot"
    },
    {
      "name": "Bot"
    },
    {
      "name": "BotRouting"
    },
    {
      "name": "Cache"
    },
    {
      "name": "Chat"
    },
    {
      "name": "ChatSession"
    },
    {
      "name": "Label"
    },
    {
      "name": "Statistic"
    },
    {
      "name": "System"
    },
    {
      "name": "TestRemoteBot"
    },
    {
      "name": "User"
    }
  ]
}
