// Copyright (c) 2026 Beijing Volcano Engine Technology Co., Ltd.
// SPDX-License-Identifier: Apache-2.0
#pragma once

#include <vector>
#include <string>
#include <cstdint>

namespace vectordb {

struct AddDataRequest {
  uint64_t label = 0;
  std::vector<float> vector;
  std::vector<std::string> sparse_raw_terms;
  std::vector<float> sparse_values;

  std::string fields_str;
  std::string old_fields_str;
};

struct DeleteDataRequest {
  uint64_t label = 0;
  std::string old_fields_str;
};

struct SearchRequest {
  std::vector<float> query;
  std::vector<std::string> sparse_raw_terms;
  std::vector<float> sparse_values;
  uint32_t topk = 0;
  std::string dsl;
};

struct SearchResult {
  uint32_t result_num = 0;
  std::vector<uint64_t> labels;
  std::vector<float> scores;
  std::string extra_json;
};

struct StateResult {
  uint64_t update_timestamp = 0;
  uint64_t element_count = 0;
};

}  // namespace vectordb
