|
@@ -11,6 +11,7 @@
|
|
|
#include <atomic>
|
|
#include <atomic>
|
|
|
#include <chrono>
|
|
#include <chrono>
|
|
|
#include <cstdlib>
|
|
#include <cstdlib>
|
|
|
|
|
+#include <cstring>
|
|
|
#include <fstream>
|
|
#include <fstream>
|
|
|
#include <mutex>
|
|
#include <mutex>
|
|
|
#include <sstream>
|
|
#include <sstream>
|
|
@@ -180,6 +181,30 @@ struct FailureSink {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+// The JSON a read hands back: the stored fields plus the read metadata, and
|
|
|
|
|
+// (v2.13.0) "_vector" when the server sent the stored vector, which it does
|
|
|
|
|
+// only when the caller asked. The bytes are float32 little-endian.
|
|
|
|
|
+nlohmann::json documentToJson(const smartbotic::databasepb::Document& doc) {
|
|
|
|
|
+ auto json = nlohmann::json::parse(doc.data());
|
|
|
|
|
+ json["_id"] = doc.id();
|
|
|
|
|
+ json["_version"] = doc.version();
|
|
|
|
|
+ json["_created_at"] = doc.created_at();
|
|
|
|
|
+ json["_updated_at"] = doc.updated_at();
|
|
|
|
|
+ json["_created_by"] = doc.created_by();
|
|
|
|
|
+ json["_updated_by"] = doc.updated_by();
|
|
|
|
|
+ if (!doc.vector().empty()) {
|
|
|
|
|
+ if (doc.vector().size() % sizeof(float) != 0) {
|
|
|
|
|
+ throw DetailedError(Client::ErrorCode::DataLoss,
|
|
|
|
|
+ "stored vector is not a whole number of float32 values",
|
|
|
|
|
+ makeDetail(Client::ErrorCode::DataLoss, "bad vector bytes", {}));
|
|
|
|
|
+ }
|
|
|
|
|
+ std::vector<float> v(doc.vector().size() / sizeof(float));
|
|
|
|
|
+ std::memcpy(v.data(), doc.vector().data(), doc.vector().size());
|
|
|
|
|
+ json["_vector"] = v;
|
|
|
|
|
+ }
|
|
|
|
|
+ return json;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// v1.7.0 T11 — transient transport errors that are safe to retry for idempotent
|
|
// v1.7.0 T11 — transient transport errors that are safe to retry for idempotent
|
|
|
// writes (insert with explicit ID, updateIfVersion, upsert, remove, patch).
|
|
// writes (insert with explicit ID, updateIfVersion, upsert, remove, patch).
|
|
|
// All other codes (INVALID_ARGUMENT, FAILED_PRECONDITION, NOT_FOUND, ...) are
|
|
// All other codes (INVALID_ARGUMENT, FAILED_PRECONDITION, NOT_FOUND, ...) are
|
|
@@ -438,10 +463,12 @@ public:
|
|
|
return response.id();
|
|
return response.id();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- std::optional<nlohmann::json> get(const std::string& collection, const std::string& id) {
|
|
|
|
|
|
|
+ std::optional<nlohmann::json> get(const std::string& collection, const std::string& id,
|
|
|
|
|
+ bool includeVector = false) {
|
|
|
smartbotic::databasepb::GetRequest request;
|
|
smartbotic::databasepb::GetRequest request;
|
|
|
request.set_collection(qualify(collection));
|
|
request.set_collection(qualify(collection));
|
|
|
request.set_id(id);
|
|
request.set_id(id);
|
|
|
|
|
+ request.set_include_vector(includeVector); // v2.13.0
|
|
|
|
|
|
|
|
smartbotic::databasepb::GetResponse response;
|
|
smartbotic::databasepb::GetResponse response;
|
|
|
grpc::ClientContext context;
|
|
grpc::ClientContext context;
|
|
@@ -465,15 +492,7 @@ public:
|
|
|
if (!response.found()) {
|
|
if (!response.found()) {
|
|
|
return std::nullopt;
|
|
return std::nullopt;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- auto json = nlohmann::json::parse(response.document().data());
|
|
|
|
|
- json["_id"] = response.document().id();
|
|
|
|
|
- json["_version"] = response.document().version();
|
|
|
|
|
- json["_created_at"] = response.document().created_at();
|
|
|
|
|
- json["_updated_at"] = response.document().updated_at();
|
|
|
|
|
- json["_created_by"] = response.document().created_by();
|
|
|
|
|
- json["_updated_by"] = response.document().updated_by();
|
|
|
|
|
- return json;
|
|
|
|
|
|
|
+ return documentToJson(response.document());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool update(const std::string& collection, const std::string& id, const nlohmann::json& data,
|
|
bool update(const std::string& collection, const std::string& id, const nlohmann::json& data,
|
|
@@ -839,7 +858,8 @@ public:
|
|
|
|
|
|
|
|
std::vector<nlohmann::json> find(const std::string& collection,
|
|
std::vector<nlohmann::json> find(const std::string& collection,
|
|
|
const Client::QueryOptions& options,
|
|
const Client::QueryOptions& options,
|
|
|
- const std::vector<std::string>& projection = {}) {
|
|
|
|
|
|
|
+ const std::vector<std::string>& projection = {},
|
|
|
|
|
+ bool includeVector = false) {
|
|
|
smartbotic::databasepb::FindRequest request;
|
|
smartbotic::databasepb::FindRequest request;
|
|
|
request.set_collection(qualify(collection));
|
|
request.set_collection(qualify(collection));
|
|
|
|
|
|
|
@@ -868,6 +888,7 @@ public:
|
|
|
for (const auto& f : projection) {
|
|
for (const auto& f : projection) {
|
|
|
request.add_projection(f);
|
|
request.add_projection(f);
|
|
|
}
|
|
}
|
|
|
|
|
+ request.set_include_vector(includeVector); // v2.13.0
|
|
|
|
|
|
|
|
smartbotic::databasepb::FindResponse response;
|
|
smartbotic::databasepb::FindResponse response;
|
|
|
grpc::ClientContext context;
|
|
grpc::ClientContext context;
|
|
@@ -898,14 +919,7 @@ public:
|
|
|
std::vector<nlohmann::json> results;
|
|
std::vector<nlohmann::json> results;
|
|
|
results.reserve(response.documents_size());
|
|
results.reserve(response.documents_size());
|
|
|
for (const auto& doc : response.documents()) {
|
|
for (const auto& doc : response.documents()) {
|
|
|
- auto json = nlohmann::json::parse(doc.data());
|
|
|
|
|
- json["_id"] = doc.id();
|
|
|
|
|
- json["_version"] = doc.version();
|
|
|
|
|
- json["_created_at"] = doc.created_at();
|
|
|
|
|
- json["_updated_at"] = doc.updated_at();
|
|
|
|
|
- json["_created_by"] = doc.created_by();
|
|
|
|
|
- json["_updated_by"] = doc.updated_by();
|
|
|
|
|
- results.push_back(json);
|
|
|
|
|
|
|
+ results.push_back(documentToJson(doc));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return results;
|
|
return results;
|
|
@@ -2122,6 +2136,11 @@ public:
|
|
|
auto readerThread = std::thread([reader = reader.get(), handler = std::move(handler)]() {
|
|
auto readerThread = std::thread([reader = reader.get(), handler = std::move(handler)]() {
|
|
|
smartbotic::databasepb::DatabaseEvent event;
|
|
smartbotic::databasepb::DatabaseEvent event;
|
|
|
while (reader->Read(&event)) {
|
|
while (reader->Read(&event)) {
|
|
|
|
|
+ // v2.13.0 - nothing may escape this thread: an exception leaving a
|
|
|
|
|
+ // std::thread calls std::terminate, so one throwing handler (or one
|
|
|
|
|
+ // event body that does not parse) used to take the whole consumer
|
|
|
|
|
+ // process down. The event is logged and dropped; the stream goes on.
|
|
|
|
|
+ try {
|
|
|
std::optional<nlohmann::json> data;
|
|
std::optional<nlohmann::json> data;
|
|
|
if (!event.data().empty()) {
|
|
if (!event.data().empty()) {
|
|
|
data = nlohmann::json::parse(event.data());
|
|
data = nlohmann::json::parse(event.data());
|
|
@@ -2147,6 +2166,15 @@ public:
|
|
|
out.timestamp = event.timestamp();
|
|
out.timestamp = event.timestamp();
|
|
|
out.nodeId = event.node_id();
|
|
out.nodeId = event.node_id();
|
|
|
handler(out);
|
|
handler(out);
|
|
|
|
|
+ } catch (const std::exception& e) {
|
|
|
|
|
+ spdlog::error("Client::subscribeEvents: event {}/{} dropped, the handler "
|
|
|
|
|
+ "or its parse threw: {}", event.collection(),
|
|
|
|
|
+ event.document_id(), e.what());
|
|
|
|
|
+ } catch (...) {
|
|
|
|
|
+ spdlog::error("Client::subscribeEvents: event {}/{} dropped, the handler "
|
|
|
|
|
+ "threw a non-std exception", event.collection(),
|
|
|
|
|
+ event.document_id());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -2157,6 +2185,126 @@ public:
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // ===== Export (v2.13.0) =====
|
|
|
|
|
+ //
|
|
|
|
|
+ // The server's contract is in the proto, above ExportRequest. What this
|
|
|
|
|
+ // side adds: a stream that ends without its trailer THROWS (it is not a
|
|
|
|
|
+ // complete export, whatever it delivered); an unrecognised vector dtype
|
|
|
|
|
+ // THROWS rather than being reinterpreted; and a handler returning false
|
|
|
|
|
+ // stops the export AFTER that row, which therefore counts as delivered
|
|
|
|
|
+ // (lastId names it, so a resume starts after it).
|
|
|
|
|
+
|
|
|
|
|
+ Client::ExportSummary exportCollection(
|
|
|
|
|
+ const std::string& collection, bool includeVectors, const std::string& afterId,
|
|
|
|
|
+ const std::function<void(const Client::ExportHeader&)>& onHeader,
|
|
|
|
|
+ const std::function<bool(Client::ExportRow&&)>& onRow,
|
|
|
|
|
+ uint32_t batchRows) {
|
|
|
|
|
+ smartbotic::databasepb::ExportRequest request;
|
|
|
|
|
+ request.set_collection(qualify(collection));
|
|
|
|
|
+ request.set_include_vectors(includeVectors);
|
|
|
|
|
+ request.set_after_id(afterId);
|
|
|
|
|
+ request.set_batch_rows(batchRows);
|
|
|
|
|
+
|
|
|
|
|
+ // Not the per-call timeout: an export is long by design. The server
|
|
|
|
|
+ // ends a stream at its own cap (header.max_stream_seconds, 600) with a
|
|
|
|
|
+ // resume cursor; this deadline is only the backstop for a server that
|
|
|
|
|
+ // stops answering.
|
|
|
|
|
+ grpc::ClientContext context;
|
|
|
|
|
+ context.set_deadline(std::chrono::system_clock::now() + std::chrono::seconds(900));
|
|
|
|
|
+ attachAuth(context);
|
|
|
|
|
+ auto reader = stub_->ExportCollection(&context, request);
|
|
|
|
|
+
|
|
|
|
|
+ auto abandon = [&]() {
|
|
|
|
|
+ context.TryCancel();
|
|
|
|
|
+ smartbotic::databasepb::ExportChunk drain;
|
|
|
|
|
+ while (reader->Read(&drain)) {}
|
|
|
|
|
+ (void)reader->Finish();
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ Client::ExportSummary summary;
|
|
|
|
|
+ bool sawHeader = false;
|
|
|
|
|
+ bool sawTrailer = false;
|
|
|
|
|
+ smartbotic::databasepb::ExportTrailer trailer;
|
|
|
|
|
+ smartbotic::databasepb::ExportChunk chunk;
|
|
|
|
|
+ while (reader->Read(&chunk)) {
|
|
|
|
|
+ if (chunk.has_header()) {
|
|
|
|
|
+ const auto& h = chunk.header();
|
|
|
|
|
+ if (h.vector_dtype() != "float32-le") {
|
|
|
|
|
+ abandon();
|
|
|
|
|
+ const std::string msg = "export: unrecognised vector dtype '" +
|
|
|
|
|
+ h.vector_dtype() + "'; refusing to reinterpret the bytes";
|
|
|
|
|
+ throw DetailedError(Client::ErrorCode::Unimplemented, msg,
|
|
|
|
|
+ makeDetail(Client::ErrorCode::Unimplemented, msg, {}));
|
|
|
|
|
+ }
|
|
|
|
|
+ sawHeader = true;
|
|
|
|
|
+ Client::ExportHeader out;
|
|
|
|
|
+ out.collection = unqualify(h.collection());
|
|
|
|
|
+ out.vectorDimension = h.vector_dimension();
|
|
|
|
|
+ out.vectorDtype = h.vector_dtype();
|
|
|
|
|
+ out.rowsAtSnapshot = h.rows_at_snapshot();
|
|
|
|
|
+ out.batchRowsEffective = h.batch_rows_effective();
|
|
|
|
|
+ out.maxStreamSeconds = h.max_stream_seconds();
|
|
|
|
|
+ if (onHeader) {
|
|
|
|
|
+ try { onHeader(out); } catch (...) { abandon(); throw; }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (chunk.has_rows()) {
|
|
|
|
|
+ for (auto& r : *chunk.mutable_rows()->mutable_rows()) {
|
|
|
|
|
+ Client::ExportRow row;
|
|
|
|
|
+ row.id = r.document().id();
|
|
|
|
|
+ row.vectorState = static_cast<Client::VectorState>(r.vector_state());
|
|
|
|
|
+ const std::string& bytes = r.document().vector();
|
|
|
|
|
+ if (!bytes.empty()) {
|
|
|
|
|
+ if (bytes.size() % sizeof(float) != 0) {
|
|
|
|
|
+ abandon();
|
|
|
|
|
+ const std::string msg = "export: vector of '" + row.id +
|
|
|
|
|
+ "' is not a whole number of float32 values";
|
|
|
|
|
+ throw DetailedError(Client::ErrorCode::DataLoss, msg,
|
|
|
|
|
+ makeDetail(Client::ErrorCode::DataLoss, msg, {}));
|
|
|
|
|
+ }
|
|
|
|
|
+ row.vector.resize(bytes.size() / sizeof(float));
|
|
|
|
|
+ std::memcpy(row.vector.data(), bytes.data(), bytes.size());
|
|
|
|
|
+ r.mutable_document()->clear_vector(); // the vector is row.vector, not "_vector"
|
|
|
|
|
+ }
|
|
|
|
|
+ row.document = documentToJson(r.document());
|
|
|
|
|
+ std::string id = row.id;
|
|
|
|
|
+ bool more = true;
|
|
|
|
|
+ try { more = onRow(std::move(row)); } catch (...) { abandon(); throw; }
|
|
|
|
|
+ ++summary.rowsSent;
|
|
|
|
|
+ summary.lastId = std::move(id);
|
|
|
|
|
+ if (!more) {
|
|
|
|
|
+ abandon();
|
|
|
|
|
+ summary.complete = false;
|
|
|
|
|
+ return summary;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (chunk.has_trailer()) {
|
|
|
|
|
+ sawTrailer = true;
|
|
|
|
|
+ trailer = chunk.trailer();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ auto status = reader->Finish();
|
|
|
|
|
+ if (!status.ok()) {
|
|
|
|
|
+ spdlog::error("Client::exportCollection failed: {}", status.error_message());
|
|
|
|
|
+ throwStatus(status, status.error_message(), trailerDetail(context));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!sawHeader || !sawTrailer) {
|
|
|
|
|
+ const std::string msg = "export of '" + collection + "' ended without its trailer "
|
|
|
|
|
+ "after " + std::to_string(summary.rowsSent) +
|
|
|
|
|
+ " rows; it did not complete";
|
|
|
|
|
+ throw DetailedError(Client::ErrorCode::Unavailable, msg,
|
|
|
|
|
+ makeDetail(Client::ErrorCode::Unavailable, msg, {}));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (trailer.rows_sent() != summary.rowsSent) {
|
|
|
|
|
+ const std::string msg = "export of '" + collection + "': server reports " +
|
|
|
|
|
+ std::to_string(trailer.rows_sent()) + " rows sent, " +
|
|
|
|
|
+ std::to_string(summary.rowsSent) + " arrived";
|
|
|
|
|
+ throw DetailedError(Client::ErrorCode::DataLoss, msg,
|
|
|
|
|
+ makeDetail(Client::ErrorCode::DataLoss, msg, {}));
|
|
|
|
|
+ }
|
|
|
|
|
+ summary.complete = trailer.complete();
|
|
|
|
|
+ return summary;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// ===== Version History =====
|
|
// ===== Version History =====
|
|
|
|
|
|
|
|
Client::VersionHistoryResult getVersionHistory(const std::string& collection,
|
|
Client::VersionHistoryResult getVersionHistory(const std::string& collection,
|
|
@@ -2564,7 +2712,11 @@ public:
|
|
|
return record;
|
|
return record;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- bool deleteFile(const std::string& id) {
|
|
|
|
|
|
|
+ // v2.13.0 - `failureOut` tells "no such file" (NotFound, answered in-band
|
|
|
|
|
+ // by the server) from a call that failed (the real code). The bool-only
|
|
|
|
|
+ // public form passes no sink and behaves exactly as before.
|
|
|
|
|
+ bool deleteFile(const std::string& id, FailureSink failureOut = {}) {
|
|
|
|
|
+ failureOut.reset();
|
|
|
smartbotic::databasepb::DeleteFileRequest request;
|
|
smartbotic::databasepb::DeleteFileRequest request;
|
|
|
request.set_id(id);
|
|
request.set_id(id);
|
|
|
request.set_project(config_.project);
|
|
request.set_project(config_.project);
|
|
@@ -2576,12 +2728,18 @@ public:
|
|
|
auto status = stub_->DeleteFile(&context, request, &response);
|
|
auto status = stub_->DeleteFile(&context, request, &response);
|
|
|
if (!status.ok()) {
|
|
if (!status.ok()) {
|
|
|
spdlog::error("Client::deleteFile failed: {}", status.error_message());
|
|
spdlog::error("Client::deleteFile failed: {}", status.error_message());
|
|
|
|
|
+ failureOut.record(status);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!response.deleted()) {
|
|
|
|
|
+ failureOut.record(Client::ErrorCode::NotFound, "no such file in this project");
|
|
|
|
|
+ }
|
|
|
return response.deleted();
|
|
return response.deleted();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- bool setFileTtl(const std::string& id, uint32_t ttlSeconds) {
|
|
|
|
|
|
|
+ // v2.13.0 - same contract as deleteFile above.
|
|
|
|
|
+ bool setFileTtl(const std::string& id, uint32_t ttlSeconds, FailureSink failureOut = {}) {
|
|
|
|
|
+ failureOut.reset();
|
|
|
smartbotic::databasepb::SetFileTtlRequest request;
|
|
smartbotic::databasepb::SetFileTtlRequest request;
|
|
|
request.set_id(id);
|
|
request.set_id(id);
|
|
|
request.set_project(config_.project);
|
|
request.set_project(config_.project);
|
|
@@ -2594,8 +2752,13 @@ public:
|
|
|
auto status = stub_->SetFileTtl(&context, request, &response);
|
|
auto status = stub_->SetFileTtl(&context, request, &response);
|
|
|
if (!status.ok()) {
|
|
if (!status.ok()) {
|
|
|
spdlog::error("Client::setFileTtl failed: {}", status.error_message());
|
|
spdlog::error("Client::setFileTtl failed: {}", status.error_message());
|
|
|
|
|
+ failureOut.record(status);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!response.updated()) {
|
|
|
|
|
+ failureOut.record(Client::ErrorCode::NotFound,
|
|
|
|
|
+ "no such file in this project, or it has already expired");
|
|
|
|
|
+ }
|
|
|
return response.updated();
|
|
return response.updated();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2872,6 +3035,24 @@ std::vector<nlohmann::json> Client::find(const std::string& collection,
|
|
|
return impl_->find(collection, options, projection);
|
|
return impl_->find(collection, options, projection);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+std::vector<nlohmann::json> Client::find(const std::string& collection,
|
|
|
|
|
+ const QueryOptions& options, WithVector) {
|
|
|
|
|
+ return impl_->find(collection, options, {}, /*includeVector=*/true);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+std::optional<nlohmann::json> Client::get(const std::string& collection,
|
|
|
|
|
+ const std::string& id, WithVector) {
|
|
|
|
|
+ return impl_->get(collection, id, /*includeVector=*/true);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+Client::ExportSummary Client::exportCollection(
|
|
|
|
|
+ const std::string& collection, bool includeVectors, const std::string& afterId,
|
|
|
|
|
+ const std::function<void(const ExportHeader&)>& onHeader,
|
|
|
|
|
+ const std::function<bool(ExportRow&&)>& onRow, uint32_t batchRows) {
|
|
|
|
|
+ return impl_->exportCollection(collection, includeVectors, afterId, onHeader, onRow,
|
|
|
|
|
+ batchRows);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
Client::FindResult Client::findWithMetrics(const std::string& collection,
|
|
Client::FindResult Client::findWithMetrics(const std::string& collection,
|
|
|
const QueryOptions& options) {
|
|
const QueryOptions& options) {
|
|
|
return impl_->findWithMetrics(collection, options);
|
|
return impl_->findWithMetrics(collection, options);
|
|
@@ -3139,6 +3320,22 @@ bool Client::setFileTtl(const std::string& id, uint32_t ttlSeconds) {
|
|
|
return impl_->setFileTtl(id, ttlSeconds);
|
|
return impl_->setFileTtl(id, ttlSeconds);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+bool Client::deleteFile(const std::string& id, Failure& failureOut) {
|
|
|
|
|
+ return impl_->deleteFile(id, &failureOut);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+bool Client::deleteFile(const std::string& id, FailureDetail& failureOut) {
|
|
|
|
|
+ return impl_->deleteFile(id, &failureOut);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+bool Client::setFileTtl(const std::string& id, uint32_t ttlSeconds, Failure& failureOut) {
|
|
|
|
|
+ return impl_->setFileTtl(id, ttlSeconds, &failureOut);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+bool Client::setFileTtl(const std::string& id, uint32_t ttlSeconds, FailureDetail& failureOut) {
|
|
|
|
|
+ return impl_->setFileTtl(id, ttlSeconds, &failureOut);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
Client::FileListResult Client::listFiles(const std::string& file_type,
|
|
Client::FileListResult Client::listFiles(const std::string& file_type,
|
|
|
const std::string& related_id,
|
|
const std::string& related_id,
|
|
|
uint32_t limit, uint32_t offset,
|
|
uint32_t limit, uint32_t offset,
|