couchbase 4.2.9 → 4.2.11-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/deps/couchbase-cxx-client/CMakeLists.txt +4 -0
  2. package/deps/couchbase-cxx-client/cmake/CompilerWarnings.cmake +7 -3
  3. package/deps/couchbase-cxx-client/cmake/OpenSSL.cmake +1 -0
  4. package/deps/couchbase-cxx-client/core/bucket.cxx +67 -2
  5. package/deps/couchbase-cxx-client/core/bucket.hxx +2 -1
  6. package/deps/couchbase-cxx-client/core/cluster.cxx +65 -1
  7. package/deps/couchbase-cxx-client/core/impl/bucket.cxx +24 -0
  8. package/deps/couchbase-cxx-client/core/impl/cluster.cxx +73 -0
  9. package/deps/couchbase-cxx-client/core/impl/collection.cxx +2 -2
  10. package/deps/couchbase-cxx-client/core/impl/diagnostics.cxx +294 -0
  11. package/deps/couchbase-cxx-client/core/impl/diagnostics.hxx +39 -0
  12. package/deps/couchbase-cxx-client/core/impl/query_index_manager.cxx +6 -6
  13. package/deps/couchbase-cxx-client/core/impl/scope.cxx +19 -4
  14. package/deps/couchbase-cxx-client/core/impl/search.cxx +75 -2
  15. package/deps/couchbase-cxx-client/core/impl/search.hxx +8 -0
  16. package/deps/couchbase-cxx-client/core/impl/search_index_manager.cxx +261 -18
  17. package/deps/couchbase-cxx-client/core/impl/search_request.cxx +139 -0
  18. package/deps/couchbase-cxx-client/core/impl/vector_query.cxx +42 -0
  19. package/deps/couchbase-cxx-client/core/impl/vector_search.cxx +40 -0
  20. package/deps/couchbase-cxx-client/core/io/http_session.hxx +6 -3
  21. package/deps/couchbase-cxx-client/core/io/http_session_manager.hxx +7 -1
  22. package/deps/couchbase-cxx-client/core/io/mcbp_command.hxx +10 -0
  23. package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +48 -33
  24. package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +2 -0
  25. package/deps/couchbase-cxx-client/core/logger/logger.cxx +1 -1
  26. package/deps/couchbase-cxx-client/core/management/design_document.hxx +1 -1
  27. package/deps/couchbase-cxx-client/core/meta/features.hxx +26 -1
  28. package/deps/couchbase-cxx-client/core/operations/document_lookup_in_all_replicas.hxx +1 -1
  29. package/deps/couchbase-cxx-client/core/operations/document_lookup_in_any_replica.hxx +1 -1
  30. package/deps/couchbase-cxx-client/core/operations/document_query.cxx +8 -3
  31. package/deps/couchbase-cxx-client/core/operations/document_search.cxx +37 -1
  32. package/deps/couchbase-cxx-client/core/operations/document_search.hxx +11 -0
  33. package/deps/couchbase-cxx-client/core/operations/document_view.cxx +3 -0
  34. package/deps/couchbase-cxx-client/core/operations/document_view.hxx +1 -0
  35. package/deps/couchbase-cxx-client/core/operations/management/collection_create.cxx +7 -6
  36. package/deps/couchbase-cxx-client/core/operations/management/collection_create.hxx +1 -1
  37. package/deps/couchbase-cxx-client/core/operations/management/collection_update.cxx +7 -8
  38. package/deps/couchbase-cxx-client/core/operations/management/collection_update.hxx +1 -1
  39. package/deps/couchbase-cxx-client/core/operations/management/error_utils.cxx +3 -0
  40. package/deps/couchbase-cxx-client/core/operations/management/query_index_create.cxx +24 -13
  41. package/deps/couchbase-cxx-client/core/operations/management/query_index_create.hxx +1 -1
  42. package/deps/couchbase-cxx-client/core/operations/management/search_index_analyze_document.cxx +17 -1
  43. package/deps/couchbase-cxx-client/core/operations/management/search_index_analyze_document.hxx +3 -0
  44. package/deps/couchbase-cxx-client/core/operations/management/search_index_control_ingest.cxx +21 -1
  45. package/deps/couchbase-cxx-client/core/operations/management/search_index_control_ingest.hxx +3 -0
  46. package/deps/couchbase-cxx-client/core/operations/management/search_index_control_plan_freeze.cxx +21 -1
  47. package/deps/couchbase-cxx-client/core/operations/management/search_index_control_plan_freeze.hxx +3 -0
  48. package/deps/couchbase-cxx-client/core/operations/management/search_index_control_query.cxx +21 -1
  49. package/deps/couchbase-cxx-client/core/operations/management/search_index_control_query.hxx +3 -0
  50. package/deps/couchbase-cxx-client/core/operations/management/search_index_drop.cxx +17 -1
  51. package/deps/couchbase-cxx-client/core/operations/management/search_index_drop.hxx +3 -0
  52. package/deps/couchbase-cxx-client/core/operations/management/search_index_get.cxx +17 -1
  53. package/deps/couchbase-cxx-client/core/operations/management/search_index_get.hxx +2 -0
  54. package/deps/couchbase-cxx-client/core/operations/management/search_index_get_all.cxx +39 -22
  55. package/deps/couchbase-cxx-client/core/operations/management/search_index_get_all.hxx +3 -0
  56. package/deps/couchbase-cxx-client/core/operations/management/search_index_get_documents_count.cxx +18 -1
  57. package/deps/couchbase-cxx-client/core/operations/management/search_index_get_documents_count.hxx +3 -0
  58. package/deps/couchbase-cxx-client/core/operations/management/search_index_upsert.cxx +17 -1
  59. package/deps/couchbase-cxx-client/core/operations/management/search_index_upsert.hxx +3 -0
  60. package/deps/couchbase-cxx-client/core/origin.cxx +14 -0
  61. package/deps/couchbase-cxx-client/core/origin.hxx +6 -0
  62. package/deps/couchbase-cxx-client/core/protocol/status.cxx +2 -0
  63. package/deps/couchbase-cxx-client/core/protocol/status.hxx +1 -0
  64. package/deps/couchbase-cxx-client/core/topology/capabilities.hxx +70 -1
  65. package/deps/couchbase-cxx-client/core/topology/capabilities_fmt.hxx +30 -2
  66. package/deps/couchbase-cxx-client/core/topology/collections_manifest.hxx +1 -1
  67. package/deps/couchbase-cxx-client/core/topology/collections_manifest_json.hxx +1 -1
  68. package/deps/couchbase-cxx-client/core/topology/configuration.hxx +1 -34
  69. package/deps/couchbase-cxx-client/core/topology/configuration_fmt.hxx +2 -2
  70. package/deps/couchbase-cxx-client/core/topology/configuration_json.hxx +43 -20
  71. package/deps/couchbase-cxx-client/core/transactions/internal/exceptions_internal.hxx +5 -0
  72. package/deps/couchbase-cxx-client/core/transactions/internal/utils.hxx +4 -0
  73. package/deps/couchbase-cxx-client/core/vector_query_combination.hxx +23 -0
  74. package/deps/couchbase-cxx-client/couchbase/bucket.hxx +29 -0
  75. package/deps/couchbase-cxx-client/couchbase/cluster.hxx +110 -0
  76. package/deps/couchbase-cxx-client/couchbase/codec/json_transcoder.hxx +1 -1
  77. package/deps/couchbase-cxx-client/couchbase/codec/raw_binary_transcoder.hxx +2 -1
  78. package/deps/couchbase-cxx-client/couchbase/codec/raw_json_transcoder.hxx +78 -0
  79. package/deps/couchbase-cxx-client/couchbase/codec/raw_string_transcoder.hxx +72 -0
  80. package/deps/couchbase-cxx-client/couchbase/collection_query_index_manager.hxx +80 -11
  81. package/deps/couchbase-cxx-client/couchbase/create_collection_options.hxx +29 -1
  82. package/deps/couchbase-cxx-client/couchbase/diagnostics_options.hxx +75 -0
  83. package/deps/couchbase-cxx-client/couchbase/diagnostics_result.hxx +124 -0
  84. package/deps/couchbase-cxx-client/couchbase/endpoint_diagnostics.hxx +206 -0
  85. package/deps/couchbase-cxx-client/couchbase/endpoint_ping_report.hxx +205 -0
  86. package/deps/couchbase-cxx-client/couchbase/fmt/key_value_status_code.hxx +3 -1
  87. package/deps/couchbase-cxx-client/couchbase/get_options.hxx +1 -6
  88. package/deps/couchbase-cxx-client/couchbase/key_value_status_code.hxx +1 -0
  89. package/deps/couchbase-cxx-client/couchbase/management/collection_spec.hxx +1 -1
  90. package/deps/couchbase-cxx-client/couchbase/ping_options.hxx +93 -0
  91. package/deps/couchbase-cxx-client/couchbase/ping_result.hxx +118 -0
  92. package/deps/couchbase-cxx-client/couchbase/query_index_manager.hxx +6 -8
  93. package/deps/couchbase-cxx-client/couchbase/scope.hxx +24 -8
  94. package/deps/couchbase-cxx-client/couchbase/scope_search_index_manager.hxx +291 -0
  95. package/deps/couchbase-cxx-client/couchbase/search_request.hxx +120 -0
  96. package/deps/couchbase-cxx-client/couchbase/service_type.hxx +58 -0
  97. package/deps/couchbase-cxx-client/couchbase/update_collection_options.hxx +32 -3
  98. package/deps/couchbase-cxx-client/couchbase/vector_query.hxx +99 -0
  99. package/deps/couchbase-cxx-client/couchbase/vector_search.hxx +85 -0
  100. package/deps/couchbase-cxx-client/couchbase/vector_search_options.hxx +76 -0
  101. package/dist/binding.d.ts +33 -2
  102. package/dist/binding.js +4 -1
  103. package/dist/bindingutilities.d.ts +16 -3
  104. package/dist/bindingutilities.js +47 -7
  105. package/dist/cluster.d.ts +12 -1
  106. package/dist/cluster.js +22 -0
  107. package/dist/couchbase.d.ts +2 -0
  108. package/dist/couchbase.js +2 -0
  109. package/dist/queryindexmanager.d.ts +4 -4
  110. package/dist/queryindexmanager.js +7 -7
  111. package/dist/scope.d.ts +21 -0
  112. package/dist/scope.js +34 -0
  113. package/dist/scopesearchindexmanager.d.ts +116 -0
  114. package/dist/scopesearchindexmanager.js +406 -0
  115. package/dist/sdspecs.js +10 -9
  116. package/dist/sdutils.d.ts +1 -0
  117. package/dist/sdutils.js +4 -0
  118. package/dist/searchexecutor.d.ts +5 -3
  119. package/dist/searchexecutor.js +27 -4
  120. package/dist/searchindexmanager.d.ts +58 -3
  121. package/dist/searchindexmanager.js +188 -104
  122. package/dist/searchtypes.d.ts +46 -0
  123. package/dist/searchtypes.js +81 -1
  124. package/dist/vectorsearch.d.ts +99 -0
  125. package/dist/vectorsearch.js +132 -0
  126. package/dist/viewexecutor.js +13 -9
  127. package/dist/viewindexmanager.d.ts +70 -7
  128. package/dist/viewindexmanager.js +236 -103
  129. package/dist/viewtypes.d.ts +26 -0
  130. package/dist/viewtypes.js +17 -1
  131. package/package.json +7 -7
  132. package/src/constants.cpp +12 -0
  133. package/src/jstocbpp_autogen.hpp +113 -13
  134. package/tools/gen-bindings-json.py +2 -0
@@ -411,7 +411,7 @@ struct js_to_cbpp_t<couchbase::core::management::views::design_document> {
411
411
  {
412
412
  auto jsObj = jsVal.ToObject();
413
413
  couchbase::core::management::views::design_document cppObj;
414
- js_to_cbpp<std::string>(cppObj.rev, jsObj.Get("rev"));
414
+ js_to_cbpp<std::optional<std::string>>(cppObj.rev, jsObj.Get("rev"));
415
415
  js_to_cbpp<std::string>(cppObj.name, jsObj.Get("name"));
416
416
  js_to_cbpp<couchbase::core::design_document_namespace>(cppObj.ns,
417
417
  jsObj.Get("ns"));
@@ -425,7 +425,8 @@ struct js_to_cbpp_t<couchbase::core::management::views::design_document> {
425
425
  const couchbase::core::management::views::design_document &cppObj)
426
426
  {
427
427
  auto resObj = Napi::Object::New(env);
428
- resObj.Set("rev", cbpp_to_js<std::string>(env, cppObj.rev));
428
+ resObj.Set("rev",
429
+ cbpp_to_js<std::optional<std::string>>(env, cppObj.rev));
429
430
  resObj.Set("name", cbpp_to_js<std::string>(env, cppObj.name));
430
431
  resObj.Set("ns", cbpp_to_js<couchbase::core::design_document_namespace>(
431
432
  env, cppObj.ns));
@@ -1364,7 +1365,7 @@ struct js_to_cbpp_t<
1364
1365
  couchbase::core::topology::collections_manifest::collection cppObj;
1365
1366
  js_to_cbpp<std::uint64_t>(cppObj.uid, jsObj.Get("uid"));
1366
1367
  js_to_cbpp<std::string>(cppObj.name, jsObj.Get("name"));
1367
- js_to_cbpp<std::uint32_t>(cppObj.max_expiry, jsObj.Get("max_expiry"));
1368
+ js_to_cbpp<std::int32_t>(cppObj.max_expiry, jsObj.Get("max_expiry"));
1368
1369
  js_to_cbpp<std::optional<bool>>(cppObj.history, jsObj.Get("history"));
1369
1370
  return cppObj;
1370
1371
  }
@@ -1377,7 +1378,7 @@ struct js_to_cbpp_t<
1377
1378
  resObj.Set("uid", cbpp_to_js<std::uint64_t>(env, cppObj.uid));
1378
1379
  resObj.Set("name", cbpp_to_js<std::string>(env, cppObj.name));
1379
1380
  resObj.Set("max_expiry",
1380
- cbpp_to_js<std::uint32_t>(env, cppObj.max_expiry));
1381
+ cbpp_to_js<std::int32_t>(env, cppObj.max_expiry));
1381
1382
  resObj.Set("history",
1382
1383
  cbpp_to_js<std::optional<bool>>(env, cppObj.history));
1383
1384
  return resObj;
@@ -3874,6 +3875,17 @@ struct js_to_cbpp_t<couchbase::core::operations::search_request> {
3874
3875
  js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
3875
3876
  js_to_cbpp<couchbase::core::json_string>(cppObj.query,
3876
3877
  jsObj.Get("query"));
3878
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
3879
+ jsObj.Get("bucket_name"));
3880
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
3881
+ jsObj.Get("scope_name"));
3882
+ js_to_cbpp<std::optional<bool>>(cppObj.show_request,
3883
+ jsObj.Get("show_request"));
3884
+ js_to_cbpp<std::optional<couchbase::core::json_string>>(
3885
+ cppObj.vector_search, jsObj.Get("vector_search"));
3886
+ js_to_cbpp<std::optional<couchbase::core::vector_query_combination>>(
3887
+ cppObj.vector_query_combination,
3888
+ jsObj.Get("vector_query_combination"));
3877
3889
  js_to_cbpp<std::optional<std::uint32_t>>(cppObj.limit,
3878
3890
  jsObj.Get("limit"));
3879
3891
  js_to_cbpp<std::optional<std::uint32_t>>(cppObj.skip,
@@ -3918,6 +3930,20 @@ struct js_to_cbpp_t<couchbase::core::operations::search_request> {
3918
3930
  cbpp_to_js<std::string>(env, cppObj.index_name));
3919
3931
  resObj.Set("query",
3920
3932
  cbpp_to_js<couchbase::core::json_string>(env, cppObj.query));
3933
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
3934
+ env, cppObj.bucket_name));
3935
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
3936
+ env, cppObj.scope_name));
3937
+ resObj.Set("show_request",
3938
+ cbpp_to_js<std::optional<bool>>(env, cppObj.show_request));
3939
+ resObj.Set("vector_search",
3940
+ cbpp_to_js<std::optional<couchbase::core::json_string>>(
3941
+ env, cppObj.vector_search));
3942
+ resObj.Set(
3943
+ "vector_query_combination",
3944
+ cbpp_to_js<
3945
+ std::optional<couchbase::core::vector_query_combination>>(
3946
+ env, cppObj.vector_query_combination));
3921
3947
  resObj.Set("limit",
3922
3948
  cbpp_to_js<std::optional<std::uint32_t>>(env, cppObj.limit));
3923
3949
  resObj.Set("skip",
@@ -4298,6 +4324,7 @@ struct js_to_cbpp_t<couchbase::core::operations::document_view_request> {
4298
4324
  js_to_cbpp<bool>(cppObj.debug, jsObj.Get("debug"));
4299
4325
  js_to_cbpp<std::map<std::string, std::string>>(cppObj.raw,
4300
4326
  jsObj.Get("raw"));
4327
+ js_to_cbpp<std::optional<bool>>(cppObj.full_set, jsObj.Get("full_set"));
4301
4328
  js_to_cbpp<std::optional<couchbase::core::view_sort_order>>(
4302
4329
  cppObj.order, jsObj.Get("order"));
4303
4330
  js_to_cbpp<std::optional<couchbase::core::view_on_error>>(
@@ -4354,6 +4381,8 @@ struct js_to_cbpp_t<couchbase::core::operations::document_view_request> {
4354
4381
  resObj.Set("debug", cbpp_to_js<bool>(env, cppObj.debug));
4355
4382
  resObj.Set("raw", cbpp_to_js<std::map<std::string, std::string>>(
4356
4383
  env, cppObj.raw));
4384
+ resObj.Set("full_set",
4385
+ cbpp_to_js<std::optional<bool>>(env, cppObj.full_set));
4357
4386
  resObj.Set("order",
4358
4387
  cbpp_to_js<std::optional<couchbase::core::view_sort_order>>(
4359
4388
  env, cppObj.order));
@@ -5252,7 +5281,7 @@ struct js_to_cbpp_t<
5252
5281
  js_to_cbpp<std::string>(cppObj.scope_name, jsObj.Get("scope_name"));
5253
5282
  js_to_cbpp<std::string>(cppObj.collection_name,
5254
5283
  jsObj.Get("collection_name"));
5255
- js_to_cbpp<std::uint32_t>(cppObj.max_expiry, jsObj.Get("max_expiry"));
5284
+ js_to_cbpp<std::int32_t>(cppObj.max_expiry, jsObj.Get("max_expiry"));
5256
5285
  js_to_cbpp<std::optional<bool>>(cppObj.history, jsObj.Get("history"));
5257
5286
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
5258
5287
  jsObj.Get("client_context_id"));
@@ -5273,7 +5302,7 @@ struct js_to_cbpp_t<
5273
5302
  resObj.Set("collection_name",
5274
5303
  cbpp_to_js<std::string>(env, cppObj.collection_name));
5275
5304
  resObj.Set("max_expiry",
5276
- cbpp_to_js<std::uint32_t>(env, cppObj.max_expiry));
5305
+ cbpp_to_js<std::int32_t>(env, cppObj.max_expiry));
5277
5306
  resObj.Set("history",
5278
5307
  cbpp_to_js<std::optional<bool>>(env, cppObj.history));
5279
5308
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
@@ -5790,6 +5819,10 @@ struct js_to_cbpp_t<
5790
5819
  auto jsObj = jsVal.ToObject();
5791
5820
  couchbase::core::operations::management::search_index_get_all_request
5792
5821
  cppObj;
5822
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
5823
+ jsObj.Get("bucket_name"));
5824
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
5825
+ jsObj.Get("scope_name"));
5793
5826
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
5794
5827
  jsObj.Get("client_context_id"));
5795
5828
  js_to_cbpp<std::optional<std::chrono::milliseconds>>(
@@ -5801,6 +5834,10 @@ struct js_to_cbpp_t<
5801
5834
  search_index_get_all_request &cppObj)
5802
5835
  {
5803
5836
  auto resObj = Napi::Object::New(env);
5837
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
5838
+ env, cppObj.bucket_name));
5839
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
5840
+ env, cppObj.scope_name));
5804
5841
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
5805
5842
  env, cppObj.client_context_id));
5806
5843
  resObj.Set("timeout",
@@ -5852,6 +5889,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
5852
5889
  js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
5853
5890
  js_to_cbpp<std::string>(cppObj.encoded_document,
5854
5891
  jsObj.Get("encoded_document"));
5892
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
5893
+ jsObj.Get("bucket_name"));
5894
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
5895
+ jsObj.Get("scope_name"));
5855
5896
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
5856
5897
  jsObj.Get("client_context_id"));
5857
5898
  js_to_cbpp<std::optional<std::chrono::milliseconds>>(
@@ -5867,6 +5908,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
5867
5908
  cbpp_to_js<std::string>(env, cppObj.index_name));
5868
5909
  resObj.Set("encoded_document",
5869
5910
  cbpp_to_js<std::string>(env, cppObj.encoded_document));
5911
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
5912
+ env, cppObj.bucket_name));
5913
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
5914
+ env, cppObj.scope_name));
5870
5915
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
5871
5916
  env, cppObj.client_context_id));
5872
5917
  resObj.Set("timeout",
@@ -6275,8 +6320,7 @@ struct js_to_cbpp_t<
6275
6320
  js_to_cbpp<std::string>(cppObj.collection_name,
6276
6321
  jsObj.Get("collection_name"));
6277
6322
  js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
6278
- js_to_cbpp<std::vector<std::string>>(cppObj.fields,
6279
- jsObj.Get("fields"));
6323
+ js_to_cbpp<std::vector<std::string>>(cppObj.keys, jsObj.Get("keys"));
6280
6324
  js_to_cbpp<couchbase::core::query_context>(cppObj.query_ctx,
6281
6325
  jsObj.Get("query_ctx"));
6282
6326
  js_to_cbpp<bool>(cppObj.is_primary, jsObj.Get("is_primary"));
@@ -6306,8 +6350,8 @@ struct js_to_cbpp_t<
6306
6350
  cbpp_to_js<std::string>(env, cppObj.collection_name));
6307
6351
  resObj.Set("index_name",
6308
6352
  cbpp_to_js<std::string>(env, cppObj.index_name));
6309
- resObj.Set("fields",
6310
- cbpp_to_js<std::vector<std::string>>(env, cppObj.fields));
6353
+ resObj.Set("keys",
6354
+ cbpp_to_js<std::vector<std::string>>(env, cppObj.keys));
6311
6355
  resObj.Set("query_ctx", cbpp_to_js<couchbase::core::query_context>(
6312
6356
  env, cppObj.query_ctx));
6313
6357
  resObj.Set("is_primary", cbpp_to_js<bool>(env, cppObj.is_primary));
@@ -6371,6 +6415,10 @@ struct js_to_cbpp_t<
6371
6415
  cppObj;
6372
6416
  js_to_cbpp<couchbase::core::management::search::index>(
6373
6417
  cppObj.index, jsObj.Get("index"));
6418
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
6419
+ jsObj.Get("bucket_name"));
6420
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
6421
+ jsObj.Get("scope_name"));
6374
6422
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
6375
6423
  jsObj.Get("client_context_id"));
6376
6424
  js_to_cbpp<std::optional<std::chrono::milliseconds>>(
@@ -6385,6 +6433,10 @@ struct js_to_cbpp_t<
6385
6433
  resObj.Set("index",
6386
6434
  cbpp_to_js<couchbase::core::management::search::index>(
6387
6435
  env, cppObj.index));
6436
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
6437
+ env, cppObj.bucket_name));
6438
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
6439
+ env, cppObj.scope_name));
6388
6440
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
6389
6441
  env, cppObj.client_context_id));
6390
6442
  resObj.Set("timeout",
@@ -7102,8 +7154,8 @@ struct js_to_cbpp_t<
7102
7154
  js_to_cbpp<std::string>(cppObj.scope_name, jsObj.Get("scope_name"));
7103
7155
  js_to_cbpp<std::string>(cppObj.collection_name,
7104
7156
  jsObj.Get("collection_name"));
7105
- js_to_cbpp<std::optional<std::uint32_t>>(cppObj.max_expiry,
7106
- jsObj.Get("max_expiry"));
7157
+ js_to_cbpp<std::optional<std::int32_t>>(cppObj.max_expiry,
7158
+ jsObj.Get("max_expiry"));
7107
7159
  js_to_cbpp<std::optional<bool>>(cppObj.history, jsObj.Get("history"));
7108
7160
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
7109
7161
  jsObj.Get("client_context_id"));
@@ -7123,7 +7175,7 @@ struct js_to_cbpp_t<
7123
7175
  cbpp_to_js<std::string>(env, cppObj.scope_name));
7124
7176
  resObj.Set("collection_name",
7125
7177
  cbpp_to_js<std::string>(env, cppObj.collection_name));
7126
- resObj.Set("max_expiry", cbpp_to_js<std::optional<std::uint32_t>>(
7178
+ resObj.Set("max_expiry", cbpp_to_js<std::optional<std::int32_t>>(
7127
7179
  env, cppObj.max_expiry));
7128
7180
  resObj.Set("history",
7129
7181
  cbpp_to_js<std::optional<bool>>(env, cppObj.history));
@@ -8601,6 +8653,10 @@ struct js_to_cbpp_t<
8601
8653
  couchbase::core::operations::management::search_index_drop_request
8602
8654
  cppObj;
8603
8655
  js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
8656
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
8657
+ jsObj.Get("bucket_name"));
8658
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
8659
+ jsObj.Get("scope_name"));
8604
8660
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
8605
8661
  jsObj.Get("client_context_id"));
8606
8662
  js_to_cbpp<std::optional<std::chrono::milliseconds>>(
@@ -8615,6 +8671,10 @@ struct js_to_cbpp_t<
8615
8671
  auto resObj = Napi::Object::New(env);
8616
8672
  resObj.Set("index_name",
8617
8673
  cbpp_to_js<std::string>(env, cppObj.index_name));
8674
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
8675
+ env, cppObj.bucket_name));
8676
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
8677
+ env, cppObj.scope_name));
8618
8678
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
8619
8679
  env, cppObj.client_context_id));
8620
8680
  resObj.Set("timeout",
@@ -8663,6 +8723,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
8663
8723
  search_index_control_plan_freeze_request cppObj;
8664
8724
  js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
8665
8725
  js_to_cbpp<bool>(cppObj.freeze, jsObj.Get("freeze"));
8726
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
8727
+ jsObj.Get("bucket_name"));
8728
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
8729
+ jsObj.Get("scope_name"));
8666
8730
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
8667
8731
  jsObj.Get("client_context_id"));
8668
8732
  js_to_cbpp<std::optional<std::chrono::milliseconds>>(
@@ -8677,6 +8741,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
8677
8741
  resObj.Set("index_name",
8678
8742
  cbpp_to_js<std::string>(env, cppObj.index_name));
8679
8743
  resObj.Set("freeze", cbpp_to_js<bool>(env, cppObj.freeze));
8744
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
8745
+ env, cppObj.bucket_name));
8746
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
8747
+ env, cppObj.scope_name));
8680
8748
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
8681
8749
  env, cppObj.client_context_id));
8682
8750
  resObj.Set("timeout",
@@ -8911,6 +8979,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
8911
8979
  search_index_control_query_request cppObj;
8912
8980
  js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
8913
8981
  js_to_cbpp<bool>(cppObj.allow, jsObj.Get("allow"));
8982
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
8983
+ jsObj.Get("bucket_name"));
8984
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
8985
+ jsObj.Get("scope_name"));
8914
8986
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
8915
8987
  jsObj.Get("client_context_id"));
8916
8988
  js_to_cbpp<std::optional<std::chrono::milliseconds>>(
@@ -8925,6 +8997,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
8925
8997
  resObj.Set("index_name",
8926
8998
  cbpp_to_js<std::string>(env, cppObj.index_name));
8927
8999
  resObj.Set("allow", cbpp_to_js<bool>(env, cppObj.allow));
9000
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
9001
+ env, cppObj.bucket_name));
9002
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
9003
+ env, cppObj.scope_name));
8928
9004
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
8929
9005
  env, cppObj.client_context_id));
8930
9006
  resObj.Set("timeout",
@@ -9302,6 +9378,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
9302
9378
  search_index_control_ingest_request cppObj;
9303
9379
  js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
9304
9380
  js_to_cbpp<bool>(cppObj.pause, jsObj.Get("pause"));
9381
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
9382
+ jsObj.Get("bucket_name"));
9383
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
9384
+ jsObj.Get("scope_name"));
9305
9385
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
9306
9386
  jsObj.Get("client_context_id"));
9307
9387
  js_to_cbpp<std::optional<std::chrono::milliseconds>>(
@@ -9316,6 +9396,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
9316
9396
  resObj.Set("index_name",
9317
9397
  cbpp_to_js<std::string>(env, cppObj.index_name));
9318
9398
  resObj.Set("pause", cbpp_to_js<bool>(env, cppObj.pause));
9399
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
9400
+ env, cppObj.bucket_name));
9401
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
9402
+ env, cppObj.scope_name));
9319
9403
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
9320
9404
  env, cppObj.client_context_id));
9321
9405
  resObj.Set("timeout",
@@ -9749,6 +9833,10 @@ struct js_to_cbpp_t<
9749
9833
  couchbase::core::operations::management::search_index_get_request
9750
9834
  cppObj;
9751
9835
  js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
9836
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
9837
+ jsObj.Get("bucket_name"));
9838
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
9839
+ jsObj.Get("scope_name"));
9752
9840
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
9753
9841
  jsObj.Get("client_context_id"));
9754
9842
  js_to_cbpp<std::optional<std::chrono::milliseconds>>(
@@ -9763,6 +9851,10 @@ struct js_to_cbpp_t<
9763
9851
  auto resObj = Napi::Object::New(env);
9764
9852
  resObj.Set("index_name",
9765
9853
  cbpp_to_js<std::string>(env, cppObj.index_name));
9854
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
9855
+ env, cppObj.bucket_name));
9856
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
9857
+ env, cppObj.scope_name));
9766
9858
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
9767
9859
  env, cppObj.client_context_id));
9768
9860
  resObj.Set("timeout",
@@ -10056,6 +10148,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
10056
10148
  couchbase::core::operations::management::
10057
10149
  search_index_get_documents_count_request cppObj;
10058
10150
  js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
10151
+ js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
10152
+ jsObj.Get("bucket_name"));
10153
+ js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
10154
+ jsObj.Get("scope_name"));
10059
10155
  js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
10060
10156
  jsObj.Get("client_context_id"));
10061
10157
  js_to_cbpp<std::optional<std::chrono::milliseconds>>(
@@ -10069,6 +10165,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
10069
10165
  auto resObj = Napi::Object::New(env);
10070
10166
  resObj.Set("index_name",
10071
10167
  cbpp_to_js<std::string>(env, cppObj.index_name));
10168
+ resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
10169
+ env, cppObj.bucket_name));
10170
+ resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
10171
+ env, cppObj.scope_name));
10072
10172
  resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
10073
10173
  env, cppObj.client_context_id));
10074
10174
  resObj.Set("timeout",
@@ -72,6 +72,7 @@ fileList = [
72
72
  "core/scan_options.hxx",
73
73
  "core/range_scan_orchestrator_options.hxx",
74
74
  "core/query_context.hxx",
75
+ "core/vector_query_combination.hxx",
75
76
  ]
76
77
 
77
78
  typeList = [
@@ -165,6 +166,7 @@ typeList = [
165
166
  "couchbase::core::range_scan_continue_result",
166
167
  "couchbase::core::range_scan_cancel_result",
167
168
  "couchbase::core::query_context",
169
+ "couchbase::core::vector_query_combination",
168
170
  ]
169
171
 
170
172
  # end of configurable part