algoliasearch 5.0.0-alpha.11 → 5.0.0-alpha.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (938) hide show
  1. package/builds/browser.ts +14 -27
  2. package/builds/models.ts +12 -6
  3. package/builds/node.ts +62 -25
  4. package/dist/{builds → algoliasearch/builds}/browser.d.ts +98 -87
  5. package/dist/algoliasearch/builds/browser.d.ts.map +1 -0
  6. package/dist/{builds → algoliasearch/builds}/models.d.ts +31 -31
  7. package/dist/algoliasearch/builds/models.d.ts.map +1 -0
  8. package/dist/{builds → algoliasearch/builds}/node.d.ts +115 -87
  9. package/dist/algoliasearch/builds/node.d.ts.map +1 -0
  10. package/dist/{algoliasearch.cjs.js → algoliasearch.cjs} +3878 -3481
  11. package/dist/algoliasearch.esm.browser.js +4068 -3732
  12. package/dist/algoliasearch.esm.node.js +3879 -3480
  13. package/dist/algoliasearch.umd.js +2 -2
  14. package/dist/client-abtesting/model/aBTest.d.ts +51 -39
  15. package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
  16. package/dist/client-abtesting/model/aBTestResponse.d.ts +14 -14
  17. package/dist/client-abtesting/model/aBTestResponse.d.ts.map +1 -1
  18. package/dist/client-abtesting/model/abTestsVariant.d.ts +14 -14
  19. package/dist/client-abtesting/model/abTestsVariant.d.ts.map +1 -1
  20. package/dist/client-abtesting/model/abTestsVariantSearchParams.d.ts +3 -3
  21. package/dist/client-abtesting/model/abTestsVariantSearchParams.d.ts.map +1 -1
  22. package/dist/client-abtesting/model/addABTestsRequest.d.ts +15 -15
  23. package/dist/client-abtesting/model/addABTestsRequest.d.ts.map +1 -1
  24. package/dist/client-abtesting/model/addABTestsVariant.d.ts +3 -3
  25. package/dist/client-abtesting/model/addABTestsVariant.d.ts.map +1 -1
  26. package/dist/client-abtesting/model/clientMethodProps.d.ts +108 -100
  27. package/dist/client-abtesting/model/clientMethodProps.d.ts.map +1 -1
  28. package/dist/client-abtesting/model/currency.d.ts +19 -0
  29. package/dist/client-abtesting/model/currency.d.ts.map +1 -0
  30. package/dist/client-abtesting/model/customSearchParams.d.ts +6 -3
  31. package/dist/client-abtesting/model/customSearchParams.d.ts.map +1 -1
  32. package/dist/client-abtesting/model/errorBase.d.ts +6 -6
  33. package/dist/client-abtesting/model/errorBase.d.ts.map +1 -1
  34. package/dist/client-abtesting/model/filterEffects.d.ts +10 -0
  35. package/dist/client-abtesting/model/filterEffects.d.ts.map +1 -0
  36. package/dist/client-abtesting/model/filterEffectsEmptySearch.d.ts +14 -0
  37. package/dist/client-abtesting/model/filterEffectsEmptySearch.d.ts.map +1 -0
  38. package/dist/client-abtesting/model/filterEffectsOutliers.d.ts +14 -0
  39. package/dist/client-abtesting/model/filterEffectsOutliers.d.ts.map +1 -0
  40. package/dist/client-abtesting/model/index.d.ts +15 -11
  41. package/dist/client-abtesting/model/index.d.ts.map +1 -1
  42. package/dist/client-abtesting/model/listABTestsResponse.d.ts +15 -15
  43. package/dist/client-abtesting/model/listABTestsResponse.d.ts.map +1 -1
  44. package/dist/client-abtesting/model/variant.d.ts +81 -50
  45. package/dist/client-abtesting/model/variant.d.ts.map +1 -1
  46. package/dist/client-abtesting/src/abtestingClient.d.ts +128 -124
  47. package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
  48. package/dist/client-analytics/model/clickPositionsInner.d.ts +14 -0
  49. package/dist/client-analytics/model/clickPositionsInner.d.ts.map +1 -0
  50. package/dist/client-analytics/model/clientMethodProps.d.ts +578 -507
  51. package/dist/client-analytics/model/clientMethodProps.d.ts.map +1 -1
  52. package/dist/client-analytics/model/currenciesValue.d.ts +14 -0
  53. package/dist/client-analytics/model/currenciesValue.d.ts.map +1 -0
  54. package/dist/client-analytics/model/dailyAddToCartRates.d.ts +19 -0
  55. package/dist/client-analytics/model/dailyAddToCartRates.d.ts.map +1 -0
  56. package/dist/client-analytics/model/dailyAverageClicks.d.ts +15 -0
  57. package/dist/client-analytics/model/dailyAverageClicks.d.ts.map +1 -0
  58. package/dist/client-analytics/model/dailyClickThroughRates.d.ts +19 -0
  59. package/dist/client-analytics/model/dailyClickThroughRates.d.ts.map +1 -0
  60. package/dist/client-analytics/model/dailyConversionRates.d.ts +19 -0
  61. package/dist/client-analytics/model/dailyConversionRates.d.ts.map +1 -0
  62. package/dist/client-analytics/model/dailyNoClickRates.d.ts +19 -0
  63. package/dist/client-analytics/model/dailyNoClickRates.d.ts.map +1 -0
  64. package/dist/client-analytics/model/dailyNoResultsRates.d.ts +19 -0
  65. package/dist/client-analytics/model/dailyNoResultsRates.d.ts.map +1 -0
  66. package/dist/client-analytics/model/dailyPurchaseRates.d.ts +19 -0
  67. package/dist/client-analytics/model/dailyPurchaseRates.d.ts.map +1 -0
  68. package/dist/client-analytics/model/dailyRevenue.d.ts +12 -0
  69. package/dist/client-analytics/model/dailyRevenue.d.ts.map +1 -0
  70. package/dist/client-analytics/model/dailySearches.d.ts +11 -0
  71. package/dist/client-analytics/model/dailySearches.d.ts.map +1 -0
  72. package/dist/client-analytics/model/dailySearchesNoClicks.d.ts +15 -0
  73. package/dist/client-analytics/model/dailySearchesNoClicks.d.ts.map +1 -0
  74. package/dist/client-analytics/model/dailySearchesNoResults.d.ts +15 -0
  75. package/dist/client-analytics/model/dailySearchesNoResults.d.ts.map +1 -0
  76. package/dist/client-analytics/model/dailyUsers.d.ts +11 -0
  77. package/dist/client-analytics/model/dailyUsers.d.ts.map +1 -0
  78. package/dist/client-analytics/model/direction.d.ts +1 -1
  79. package/dist/client-analytics/model/direction.d.ts.map +1 -1
  80. package/dist/client-analytics/model/errorBase.d.ts +6 -6
  81. package/dist/client-analytics/model/errorBase.d.ts.map +1 -1
  82. package/dist/client-analytics/model/getAddToCartRateResponse.d.ts +20 -0
  83. package/dist/client-analytics/model/getAddToCartRateResponse.d.ts.map +1 -0
  84. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +15 -15
  85. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts.map +1 -1
  86. package/dist/client-analytics/model/getClickPositionsResponse.d.ts +7 -7
  87. package/dist/client-analytics/model/getClickPositionsResponse.d.ts.map +1 -1
  88. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +19 -19
  89. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts.map +1 -1
  90. package/dist/client-analytics/model/getConversionRateResponse.d.ts +20 -0
  91. package/dist/client-analytics/model/getConversionRateResponse.d.ts.map +1 -0
  92. package/dist/client-analytics/model/getNoClickRateResponse.d.ts +19 -19
  93. package/dist/client-analytics/model/getNoClickRateResponse.d.ts.map +1 -1
  94. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +19 -19
  95. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts.map +1 -1
  96. package/dist/client-analytics/model/getPurchaseRateResponse.d.ts +20 -0
  97. package/dist/client-analytics/model/getPurchaseRateResponse.d.ts.map +1 -0
  98. package/dist/client-analytics/model/getRevenue.d.ts +13 -0
  99. package/dist/client-analytics/model/getRevenue.d.ts.map +1 -0
  100. package/dist/client-analytics/model/getSearchesCountResponse.d.ts +11 -11
  101. package/dist/client-analytics/model/getSearchesCountResponse.d.ts.map +1 -1
  102. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +7 -7
  103. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts.map +1 -1
  104. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +7 -7
  105. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts.map +1 -1
  106. package/dist/client-analytics/model/getStatusResponse.d.ts +6 -6
  107. package/dist/client-analytics/model/getStatusResponse.d.ts.map +1 -1
  108. package/dist/client-analytics/model/getTopCountriesResponse.d.ts +7 -7
  109. package/dist/client-analytics/model/getTopCountriesResponse.d.ts.map +1 -1
  110. package/dist/client-analytics/model/getTopFilterAttribute.d.ts +10 -10
  111. package/dist/client-analytics/model/getTopFilterAttribute.d.ts.map +1 -1
  112. package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +7 -7
  113. package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts.map +1 -1
  114. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +16 -18
  115. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts.map +1 -1
  116. package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts +7 -7
  117. package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
  118. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +7 -7
  119. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
  120. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +12 -14
  121. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  122. package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts +11 -11
  123. package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
  124. package/dist/client-analytics/model/getTopHitsResponse.d.ts +4 -3
  125. package/dist/client-analytics/model/getTopHitsResponse.d.ts.map +1 -1
  126. package/dist/client-analytics/model/getTopSearchesResponse.d.ts +4 -3
  127. package/dist/client-analytics/model/getTopSearchesResponse.d.ts.map +1 -1
  128. package/dist/client-analytics/model/getUsersCountResponse.d.ts +11 -11
  129. package/dist/client-analytics/model/getUsersCountResponse.d.ts.map +1 -1
  130. package/dist/client-analytics/model/index.d.ts +56 -44
  131. package/dist/client-analytics/model/index.d.ts.map +1 -1
  132. package/dist/client-analytics/model/operator.d.ts +5 -0
  133. package/dist/client-analytics/model/operator.d.ts.map +1 -0
  134. package/dist/client-analytics/model/orderBy.d.ts +4 -1
  135. package/dist/client-analytics/model/orderBy.d.ts.map +1 -1
  136. package/dist/client-analytics/model/topCountry.d.ts +10 -10
  137. package/dist/client-analytics/model/topCountry.d.ts.map +1 -1
  138. package/dist/client-analytics/model/topHit.d.ts +10 -10
  139. package/dist/client-analytics/model/topHit.d.ts.map +1 -1
  140. package/dist/client-analytics/model/topHitWithAnalytics.d.ts +30 -30
  141. package/dist/client-analytics/model/topHitWithAnalytics.d.ts.map +1 -1
  142. package/dist/client-analytics/model/topHitWithRevenueAnalytics.d.ts +52 -0
  143. package/dist/client-analytics/model/topHitWithRevenueAnalytics.d.ts.map +1 -0
  144. package/dist/client-analytics/model/topHitsResponse.d.ts +7 -7
  145. package/dist/client-analytics/model/topHitsResponse.d.ts.map +1 -1
  146. package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +7 -7
  147. package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
  148. package/dist/client-analytics/model/topHitsResponseWithRevenueAnalytics.d.ts +8 -0
  149. package/dist/client-analytics/model/topHitsResponseWithRevenueAnalytics.d.ts.map +1 -0
  150. package/dist/client-analytics/model/topSearch.d.ts +14 -14
  151. package/dist/client-analytics/model/topSearch.d.ts.map +1 -1
  152. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +43 -38
  153. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
  154. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts +65 -0
  155. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts.map +1 -0
  156. package/dist/client-analytics/model/topSearchesResponse.d.ts +7 -7
  157. package/dist/client-analytics/model/topSearchesResponse.d.ts.map +1 -1
  158. package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  159. package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
  160. package/dist/client-analytics/model/topSearchesResponseWithRevenueAnalytics.d.ts +8 -0
  161. package/dist/client-analytics/model/topSearchesResponseWithRevenueAnalytics.d.ts.map +1 -0
  162. package/dist/client-analytics/src/analyticsClient.d.ts +391 -318
  163. package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
  164. package/dist/client-personalization/model/clientMethodProps.d.ts +78 -78
  165. package/dist/client-personalization/model/clientMethodProps.d.ts.map +1 -1
  166. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +10 -10
  167. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts.map +1 -1
  168. package/dist/client-personalization/model/errorBase.d.ts +6 -6
  169. package/dist/client-personalization/model/errorBase.d.ts.map +1 -1
  170. package/dist/client-personalization/model/eventScoring.d.ts +14 -14
  171. package/dist/client-personalization/model/eventScoring.d.ts.map +1 -1
  172. package/dist/client-personalization/model/facetScoring.d.ts +10 -10
  173. package/dist/client-personalization/model/facetScoring.d.ts.map +1 -1
  174. package/dist/client-personalization/model/getUserTokenResponse.d.ts +14 -14
  175. package/dist/client-personalization/model/getUserTokenResponse.d.ts.map +1 -1
  176. package/dist/client-personalization/model/index.d.ts +8 -8
  177. package/dist/client-personalization/model/personalizationStrategyParams.d.ts +16 -16
  178. package/dist/client-personalization/model/personalizationStrategyParams.d.ts.map +1 -1
  179. package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts +6 -6
  180. package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts.map +1 -1
  181. package/dist/client-personalization/src/personalizationClient.d.ts +112 -112
  182. package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
  183. package/dist/client-search/model/acl.d.ts +4 -4
  184. package/dist/client-search/model/acl.d.ts.map +1 -1
  185. package/dist/client-search/model/action.d.ts +4 -4
  186. package/dist/client-search/model/action.d.ts.map +1 -1
  187. package/dist/client-search/model/addApiKeyResponse.d.ts +10 -10
  188. package/dist/client-search/model/addApiKeyResponse.d.ts.map +1 -1
  189. package/dist/client-search/model/advancedSyntaxFeatures.d.ts +1 -1
  190. package/dist/client-search/model/advancedSyntaxFeatures.d.ts.map +1 -1
  191. package/dist/client-search/model/alternativesAsExact.d.ts +1 -1
  192. package/dist/client-search/model/alternativesAsExact.d.ts.map +1 -1
  193. package/dist/client-search/model/anchoring.d.ts +4 -4
  194. package/dist/client-search/model/anchoring.d.ts.map +1 -1
  195. package/dist/client-search/model/apiKey.d.ts +38 -38
  196. package/dist/client-search/model/apiKey.d.ts.map +1 -1
  197. package/dist/client-search/model/apiKeyOperation.d.ts +2 -0
  198. package/dist/client-search/model/apiKeyOperation.d.ts.map +1 -0
  199. package/dist/client-search/model/aroundPrecision.d.ts +6 -0
  200. package/dist/client-search/model/aroundPrecision.d.ts.map +1 -0
  201. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +14 -0
  202. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  203. package/dist/client-search/model/aroundRadius.d.ts +5 -5
  204. package/dist/client-search/model/aroundRadius.d.ts.map +1 -1
  205. package/dist/client-search/model/aroundRadiusAll.d.ts +4 -1
  206. package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
  207. package/dist/client-search/model/assignUserIdParams.d.ts +9 -9
  208. package/dist/client-search/model/assignUserIdParams.d.ts.map +1 -1
  209. package/dist/client-search/model/attributeToUpdate.d.ts +2 -2
  210. package/dist/client-search/model/attributeToUpdate.d.ts.map +1 -1
  211. package/dist/client-search/model/automaticFacetFilter.d.ts +17 -17
  212. package/dist/client-search/model/automaticFacetFilter.d.ts.map +1 -1
  213. package/dist/client-search/model/automaticFacetFilters.d.ts +5 -5
  214. package/dist/client-search/model/automaticFacetFilters.d.ts.map +1 -1
  215. package/dist/client-search/model/baseGetApiKeyResponse.d.ts +10 -10
  216. package/dist/client-search/model/baseGetApiKeyResponse.d.ts.map +1 -1
  217. package/dist/client-search/model/baseIndexSettings.d.ts +71 -58
  218. package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
  219. package/dist/client-search/model/baseSearchParams.d.ts +3 -3
  220. package/dist/client-search/model/baseSearchParams.d.ts.map +1 -1
  221. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +114 -122
  222. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  223. package/dist/client-search/model/baseSearchResponse.d.ts +109 -101
  224. package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
  225. package/dist/client-search/model/batchAssignUserIdsParams.d.ts +13 -13
  226. package/dist/client-search/model/batchAssignUserIdsParams.d.ts.map +1 -1
  227. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +14 -14
  228. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts.map +1 -1
  229. package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts +6 -6
  230. package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
  231. package/dist/client-search/model/batchParams.d.ts +7 -7
  232. package/dist/client-search/model/batchParams.d.ts.map +1 -1
  233. package/dist/client-search/model/batchRequest.d.ts +8 -8
  234. package/dist/client-search/model/batchRequest.d.ts.map +1 -1
  235. package/dist/client-search/model/batchResponse.d.ts +10 -10
  236. package/dist/client-search/model/batchResponse.d.ts.map +1 -1
  237. package/dist/client-search/model/batchWriteParams.d.ts +7 -7
  238. package/dist/client-search/model/batchWriteParams.d.ts.map +1 -1
  239. package/dist/client-search/model/browseParams.d.ts +3 -3
  240. package/dist/client-search/model/browseParams.d.ts.map +1 -1
  241. package/dist/client-search/model/browseParamsObject.d.ts +3 -3
  242. package/dist/client-search/model/browseParamsObject.d.ts.map +1 -1
  243. package/dist/client-search/model/browseResponse.d.ts +4 -4
  244. package/dist/client-search/model/browseResponse.d.ts.map +1 -1
  245. package/dist/client-search/model/builtInOperation.d.ts +11 -11
  246. package/dist/client-search/model/builtInOperation.d.ts.map +1 -1
  247. package/dist/client-search/model/builtInOperationType.d.ts +4 -4
  248. package/dist/client-search/model/builtInOperationType.d.ts.map +1 -1
  249. package/dist/client-search/model/clientMethodProps.d.ts +765 -714
  250. package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
  251. package/dist/client-search/model/condition.d.ts +20 -16
  252. package/dist/client-search/model/condition.d.ts.map +1 -1
  253. package/dist/client-search/model/consequence.d.ts +25 -25
  254. package/dist/client-search/model/consequence.d.ts.map +1 -1
  255. package/dist/client-search/model/consequenceHide.d.ts +9 -9
  256. package/dist/client-search/model/consequenceHide.d.ts.map +1 -1
  257. package/dist/client-search/model/consequenceParams.d.ts +4 -4
  258. package/dist/client-search/model/consequenceParams.d.ts.map +1 -1
  259. package/dist/client-search/model/consequenceQuery.d.ts +5 -5
  260. package/dist/client-search/model/consequenceQuery.d.ts.map +1 -1
  261. package/dist/client-search/model/consequenceQueryObject.d.ts +11 -11
  262. package/dist/client-search/model/consequenceQueryObject.d.ts.map +1 -1
  263. package/dist/client-search/model/createdAtResponse.d.ts +9 -9
  264. package/dist/client-search/model/createdAtResponse.d.ts.map +1 -1
  265. package/dist/client-search/model/cursor.d.ts +6 -6
  266. package/dist/client-search/model/cursor.d.ts.map +1 -1
  267. package/dist/client-search/model/deleteApiKeyResponse.d.ts +6 -6
  268. package/dist/client-search/model/deleteApiKeyResponse.d.ts.map +1 -1
  269. package/dist/client-search/model/deleteByParams.d.ts +27 -0
  270. package/dist/client-search/model/deleteByParams.d.ts.map +1 -0
  271. package/dist/client-search/model/deleteSourceResponse.d.ts +6 -6
  272. package/dist/client-search/model/deleteSourceResponse.d.ts.map +1 -1
  273. package/dist/client-search/model/deletedAtResponse.d.ts +13 -13
  274. package/dist/client-search/model/deletedAtResponse.d.ts.map +1 -1
  275. package/dist/client-search/model/dictionaryAction.d.ts +4 -4
  276. package/dist/client-search/model/dictionaryAction.d.ts.map +1 -1
  277. package/dist/client-search/model/dictionaryEntry.d.ts +25 -27
  278. package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
  279. package/dist/client-search/model/dictionaryEntryState.d.ts +4 -4
  280. package/dist/client-search/model/dictionaryEntryState.d.ts.map +1 -1
  281. package/dist/client-search/model/dictionaryLanguage.d.ts +9 -9
  282. package/dist/client-search/model/dictionaryLanguage.d.ts.map +1 -1
  283. package/dist/client-search/model/dictionarySettingsParams.d.ts +7 -7
  284. package/dist/client-search/model/dictionarySettingsParams.d.ts.map +1 -1
  285. package/dist/client-search/model/dictionaryType.d.ts +1 -1
  286. package/dist/client-search/model/dictionaryType.d.ts.map +1 -1
  287. package/dist/client-search/model/distinct.d.ts +4 -4
  288. package/dist/client-search/model/distinct.d.ts.map +1 -1
  289. package/dist/client-search/model/edit.d.ts +12 -12
  290. package/dist/client-search/model/edit.d.ts.map +1 -1
  291. package/dist/client-search/model/editType.d.ts +4 -4
  292. package/dist/client-search/model/editType.d.ts.map +1 -1
  293. package/dist/client-search/model/errorBase.d.ts +6 -6
  294. package/dist/client-search/model/errorBase.d.ts.map +1 -1
  295. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +4 -4
  296. package/dist/client-search/model/exactOnSingleWordQuery.d.ts.map +1 -1
  297. package/dist/client-search/model/exhaustive.d.ts +26 -0
  298. package/dist/client-search/model/exhaustive.d.ts.map +1 -0
  299. package/dist/client-search/model/facetFilters.d.ts +5 -5
  300. package/dist/client-search/model/facetFilters.d.ts.map +1 -1
  301. package/dist/client-search/model/facetHits.d.ts +14 -14
  302. package/dist/client-search/model/facetHits.d.ts.map +1 -1
  303. package/dist/client-search/model/facetOrdering.d.ts +12 -12
  304. package/dist/client-search/model/facetOrdering.d.ts.map +1 -1
  305. package/dist/client-search/model/facets.d.ts +9 -9
  306. package/dist/client-search/model/facets.d.ts.map +1 -1
  307. package/dist/client-search/model/facetsStats.d.ts +18 -18
  308. package/dist/client-search/model/facetsStats.d.ts.map +1 -1
  309. package/dist/client-search/model/fetchedIndex.d.ts +46 -46
  310. package/dist/client-search/model/fetchedIndex.d.ts.map +1 -1
  311. package/dist/client-search/model/getApiKeyResponse.d.ts +3 -3
  312. package/dist/client-search/model/getApiKeyResponse.d.ts.map +1 -1
  313. package/dist/client-search/model/getDictionarySettingsResponse.d.ts +4 -4
  314. package/dist/client-search/model/getDictionarySettingsResponse.d.ts.map +1 -1
  315. package/dist/client-search/model/getLogsResponse.d.ts +4 -4
  316. package/dist/client-search/model/getLogsResponse.d.ts.map +1 -1
  317. package/dist/client-search/model/getObjectsParams.d.ts +7 -7
  318. package/dist/client-search/model/getObjectsParams.d.ts.map +1 -1
  319. package/dist/client-search/model/getObjectsRequest.d.ts +17 -17
  320. package/dist/client-search/model/getObjectsRequest.d.ts.map +1 -1
  321. package/dist/client-search/model/getObjectsResponse.d.ts +6 -6
  322. package/dist/client-search/model/getObjectsResponse.d.ts.map +1 -1
  323. package/dist/client-search/model/getTaskResponse.d.ts +4 -4
  324. package/dist/client-search/model/getTaskResponse.d.ts.map +1 -1
  325. package/dist/client-search/model/getTopUserIdsResponse.d.ts +10 -10
  326. package/dist/client-search/model/getTopUserIdsResponse.d.ts.map +1 -1
  327. package/dist/client-search/model/hasPendingMappingsResponse.d.ts +10 -10
  328. package/dist/client-search/model/hasPendingMappingsResponse.d.ts.map +1 -1
  329. package/dist/client-search/model/highlightResult.d.ts +2 -2
  330. package/dist/client-search/model/highlightResult.d.ts.map +1 -1
  331. package/dist/client-search/model/highlightResultOption.d.ts +19 -19
  332. package/dist/client-search/model/highlightResultOption.d.ts.map +1 -1
  333. package/dist/client-search/model/hit.d.ts +22 -22
  334. package/dist/client-search/model/hit.d.ts.map +1 -1
  335. package/dist/client-search/model/ignorePlurals.d.ts +5 -4
  336. package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
  337. package/dist/client-search/model/index.d.ts +167 -154
  338. package/dist/client-search/model/index.d.ts.map +1 -1
  339. package/dist/client-search/model/indexSettings.d.ts +6 -6
  340. package/dist/client-search/model/indexSettings.d.ts.map +1 -1
  341. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +159 -160
  342. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  343. package/dist/client-search/model/languages.d.ts +9 -9
  344. package/dist/client-search/model/languages.d.ts.map +1 -1
  345. package/dist/client-search/model/listApiKeysResponse.d.ts +7 -7
  346. package/dist/client-search/model/listApiKeysResponse.d.ts.map +1 -1
  347. package/dist/client-search/model/listClustersResponse.d.ts +9 -9
  348. package/dist/client-search/model/listClustersResponse.d.ts.map +1 -1
  349. package/dist/client-search/model/listIndicesResponse.d.ts +11 -11
  350. package/dist/client-search/model/listIndicesResponse.d.ts.map +1 -1
  351. package/dist/client-search/model/listUserIdsResponse.d.ts +10 -10
  352. package/dist/client-search/model/listUserIdsResponse.d.ts.map +1 -1
  353. package/dist/client-search/model/log.d.ts +63 -63
  354. package/dist/client-search/model/log.d.ts.map +1 -1
  355. package/dist/client-search/model/logQuery.d.ts +14 -14
  356. package/dist/client-search/model/logQuery.d.ts.map +1 -1
  357. package/dist/client-search/model/logType.d.ts +1 -1
  358. package/dist/client-search/model/logType.d.ts.map +1 -1
  359. package/dist/client-search/model/matchLevel.d.ts +4 -4
  360. package/dist/client-search/model/matchLevel.d.ts.map +1 -1
  361. package/dist/client-search/model/matchedGeoLocation.d.ts +14 -14
  362. package/dist/client-search/model/matchedGeoLocation.d.ts.map +1 -1
  363. package/dist/client-search/model/mixedSearchFilters.d.ts +1 -1
  364. package/dist/client-search/model/mixedSearchFilters.d.ts.map +1 -1
  365. package/dist/client-search/model/mode.d.ts +5 -0
  366. package/dist/client-search/model/mode.d.ts.map +1 -0
  367. package/dist/client-search/model/multipleBatchRequest.d.ts +12 -12
  368. package/dist/client-search/model/multipleBatchRequest.d.ts.map +1 -1
  369. package/dist/client-search/model/multipleBatchResponse.d.ts +10 -10
  370. package/dist/client-search/model/multipleBatchResponse.d.ts.map +1 -1
  371. package/dist/client-search/model/numericFilters.d.ts +5 -5
  372. package/dist/client-search/model/numericFilters.d.ts.map +1 -1
  373. package/dist/client-search/model/operationIndexParams.d.ts +13 -13
  374. package/dist/client-search/model/operationIndexParams.d.ts.map +1 -1
  375. package/dist/client-search/model/operationType.d.ts +4 -4
  376. package/dist/client-search/model/operationType.d.ts.map +1 -1
  377. package/dist/client-search/model/optionalFilters.d.ts +5 -5
  378. package/dist/client-search/model/optionalFilters.d.ts.map +1 -1
  379. package/dist/client-search/model/params.d.ts +12 -12
  380. package/dist/client-search/model/params.d.ts.map +1 -1
  381. package/dist/client-search/model/personalization.d.ts +14 -14
  382. package/dist/client-search/model/personalization.d.ts.map +1 -1
  383. package/dist/client-search/model/promote.d.ts +3 -3
  384. package/dist/client-search/model/promote.d.ts.map +1 -1
  385. package/dist/client-search/model/promoteObjectID.d.ts +13 -13
  386. package/dist/client-search/model/promoteObjectID.d.ts.map +1 -1
  387. package/dist/client-search/model/promoteObjectIDs.d.ts +13 -13
  388. package/dist/client-search/model/promoteObjectIDs.d.ts.map +1 -1
  389. package/dist/client-search/model/queryType.d.ts +4 -4
  390. package/dist/client-search/model/queryType.d.ts.map +1 -1
  391. package/dist/client-search/model/rankingInfo.d.ts +53 -50
  392. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  393. package/dist/client-search/model/reRankingApplyFilter.d.ts +5 -5
  394. package/dist/client-search/model/reRankingApplyFilter.d.ts.map +1 -1
  395. package/dist/client-search/model/redirect.d.ts +8 -0
  396. package/dist/client-search/model/redirect.d.ts.map +1 -0
  397. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts +21 -0
  398. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  399. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts +7 -0
  400. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  401. package/dist/client-search/model/removeStopWords.d.ts +5 -4
  402. package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
  403. package/dist/client-search/model/removeUserIdResponse.d.ts +6 -6
  404. package/dist/client-search/model/removeUserIdResponse.d.ts.map +1 -1
  405. package/dist/client-search/model/removeWordsIfNoResults.d.ts +4 -4
  406. package/dist/client-search/model/removeWordsIfNoResults.d.ts.map +1 -1
  407. package/dist/client-search/model/renderingContent.d.ts +7 -7
  408. package/dist/client-search/model/renderingContent.d.ts.map +1 -1
  409. package/dist/client-search/model/replaceSourceResponse.d.ts +6 -6
  410. package/dist/client-search/model/replaceSourceResponse.d.ts.map +1 -1
  411. package/dist/client-search/model/rule.d.ts +29 -29
  412. package/dist/client-search/model/rule.d.ts.map +1 -1
  413. package/dist/client-search/model/saveObjectResponse.d.ts +14 -11
  414. package/dist/client-search/model/saveObjectResponse.d.ts.map +1 -1
  415. package/dist/client-search/model/saveSynonymResponse.d.ts +14 -14
  416. package/dist/client-search/model/saveSynonymResponse.d.ts.map +1 -1
  417. package/dist/client-search/model/scopeType.d.ts +1 -1
  418. package/dist/client-search/model/scopeType.d.ts.map +1 -1
  419. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +19 -21
  420. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  421. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts +20 -0
  422. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  423. package/dist/client-search/model/searchForFacetValuesRequest.d.ts +14 -14
  424. package/dist/client-search/model/searchForFacetValuesRequest.d.ts.map +1 -1
  425. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +15 -4
  426. package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
  427. package/dist/client-search/model/searchForFacets.d.ts +3 -3
  428. package/dist/client-search/model/searchForFacets.d.ts.map +1 -1
  429. package/dist/client-search/model/searchForFacetsOptions.d.ts +20 -20
  430. package/dist/client-search/model/searchForFacetsOptions.d.ts.map +1 -1
  431. package/dist/client-search/model/searchForHits.d.ts +3 -3
  432. package/dist/client-search/model/searchForHits.d.ts.map +1 -1
  433. package/dist/client-search/model/searchForHitsOptions.d.ts +12 -12
  434. package/dist/client-search/model/searchForHitsOptions.d.ts.map +1 -1
  435. package/dist/client-search/model/searchHits.d.ts +15 -4
  436. package/dist/client-search/model/searchHits.d.ts.map +1 -1
  437. package/dist/client-search/model/searchMethodParams.d.ts +6 -6
  438. package/dist/client-search/model/searchMethodParams.d.ts.map +1 -1
  439. package/dist/client-search/model/searchParams.d.ts +3 -3
  440. package/dist/client-search/model/searchParams.d.ts.map +1 -1
  441. package/dist/client-search/model/searchParamsObject.d.ts +3 -3
  442. package/dist/client-search/model/searchParamsObject.d.ts.map +1 -1
  443. package/dist/client-search/model/searchParamsQuery.d.ts +6 -6
  444. package/dist/client-search/model/searchParamsQuery.d.ts.map +1 -1
  445. package/dist/client-search/model/searchParamsString.d.ts +6 -6
  446. package/dist/client-search/model/searchParamsString.d.ts.map +1 -1
  447. package/dist/client-search/model/searchQuery.d.ts +3 -3
  448. package/dist/client-search/model/searchQuery.d.ts.map +1 -1
  449. package/dist/client-search/model/searchResponse.d.ts +3 -3
  450. package/dist/client-search/model/searchResponse.d.ts.map +1 -1
  451. package/dist/client-search/model/searchResponses.d.ts +4 -4
  452. package/dist/client-search/model/searchResponses.d.ts.map +1 -1
  453. package/dist/client-search/model/searchResult.d.ts +4 -0
  454. package/dist/client-search/model/searchResult.d.ts.map +1 -0
  455. package/dist/client-search/model/searchRulesParams.d.ts +27 -31
  456. package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
  457. package/dist/client-search/model/searchRulesResponse.d.ts +19 -19
  458. package/dist/client-search/model/searchRulesResponse.d.ts.map +1 -1
  459. package/dist/client-search/model/searchStrategy.d.ts +4 -1
  460. package/dist/client-search/model/searchStrategy.d.ts.map +1 -1
  461. package/dist/client-search/model/searchSynonymsParams.d.ts +16 -6
  462. package/dist/client-search/model/searchSynonymsParams.d.ts.map +1 -1
  463. package/dist/client-search/model/searchSynonymsResponse.d.ts +11 -11
  464. package/dist/client-search/model/searchSynonymsResponse.d.ts.map +1 -1
  465. package/dist/client-search/model/searchTypeDefault.d.ts +4 -4
  466. package/dist/client-search/model/searchTypeDefault.d.ts.map +1 -1
  467. package/dist/client-search/model/searchTypeFacet.d.ts +4 -4
  468. package/dist/client-search/model/searchTypeFacet.d.ts.map +1 -1
  469. package/dist/client-search/model/searchUserIdsParams.d.ts +21 -21
  470. package/dist/client-search/model/searchUserIdsParams.d.ts.map +1 -1
  471. package/dist/client-search/model/searchUserIdsResponse.d.ts +26 -26
  472. package/dist/client-search/model/searchUserIdsResponse.d.ts.map +1 -1
  473. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +25 -0
  474. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts.map +1 -0
  475. package/dist/client-search/model/semanticSearch.d.ts +10 -0
  476. package/dist/client-search/model/semanticSearch.d.ts.map +1 -0
  477. package/dist/client-search/model/snippetResult.d.ts +2 -2
  478. package/dist/client-search/model/snippetResult.d.ts.map +1 -1
  479. package/dist/client-search/model/snippetResultOption.d.ts +11 -11
  480. package/dist/client-search/model/snippetResultOption.d.ts.map +1 -1
  481. package/dist/client-search/model/sortRemainingBy.d.ts +4 -4
  482. package/dist/client-search/model/sortRemainingBy.d.ts.map +1 -1
  483. package/dist/client-search/model/source.d.ts +13 -13
  484. package/dist/client-search/model/source.d.ts.map +1 -1
  485. package/dist/client-search/model/standardEntries.d.ts +17 -17
  486. package/dist/client-search/model/standardEntries.d.ts.map +1 -1
  487. package/dist/client-search/model/supportedLanguage.d.ts +5 -0
  488. package/dist/client-search/model/supportedLanguage.d.ts.map +1 -0
  489. package/dist/client-search/model/synonymHit.d.ts +35 -37
  490. package/dist/client-search/model/synonymHit.d.ts.map +1 -1
  491. package/dist/client-search/model/synonymType.d.ts +4 -4
  492. package/dist/client-search/model/synonymType.d.ts.map +1 -1
  493. package/dist/client-search/model/tagFilters.d.ts +5 -5
  494. package/dist/client-search/model/tagFilters.d.ts.map +1 -1
  495. package/dist/client-search/model/taskStatus.d.ts +4 -1
  496. package/dist/client-search/model/taskStatus.d.ts.map +1 -1
  497. package/dist/client-search/model/timeRange.d.ts +10 -10
  498. package/dist/client-search/model/timeRange.d.ts.map +1 -1
  499. package/dist/client-search/model/typoTolerance.d.ts +5 -5
  500. package/dist/client-search/model/typoTolerance.d.ts.map +1 -1
  501. package/dist/client-search/model/typoToleranceEnum.d.ts +4 -1
  502. package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
  503. package/dist/client-search/model/updateApiKeyResponse.d.ts +10 -10
  504. package/dist/client-search/model/updateApiKeyResponse.d.ts.map +1 -1
  505. package/dist/client-search/model/updatedAtResponse.d.ts +13 -13
  506. package/dist/client-search/model/updatedAtResponse.d.ts.map +1 -1
  507. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +17 -17
  508. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
  509. package/dist/client-search/model/updatedRuleResponse.d.ts +14 -14
  510. package/dist/client-search/model/updatedRuleResponse.d.ts.map +1 -1
  511. package/dist/client-search/model/userHighlightResult.d.ts +5 -11
  512. package/dist/client-search/model/userHighlightResult.d.ts.map +1 -1
  513. package/dist/client-search/model/userHit.d.ts +24 -24
  514. package/dist/client-search/model/userHit.d.ts.map +1 -1
  515. package/dist/client-search/model/userId.d.ts +21 -21
  516. package/dist/client-search/model/userId.d.ts.map +1 -1
  517. package/dist/client-search/model/value.d.ts +8 -8
  518. package/dist/client-search/model/value.d.ts.map +1 -1
  519. package/dist/client-search/src/searchClient.d.ts +866 -723
  520. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  521. package/dist/lite/builds/browser.d.ts +16 -5
  522. package/dist/lite/builds/browser.d.ts.map +1 -1
  523. package/dist/lite/builds/node.d.ts +16 -5
  524. package/dist/lite/builds/node.d.ts.map +1 -1
  525. package/dist/lite/{lite.cjs.js → lite.cjs} +185 -185
  526. package/dist/lite/lite.esm.browser.js +397 -423
  527. package/dist/lite/lite.esm.node.js +185 -183
  528. package/dist/lite/lite.umd.js +2 -2
  529. package/dist/lite/model/acl.d.ts +4 -4
  530. package/dist/lite/model/acl.d.ts.map +1 -1
  531. package/dist/lite/model/action.d.ts +4 -4
  532. package/dist/lite/model/action.d.ts.map +1 -1
  533. package/dist/lite/model/addApiKeyResponse.d.ts +10 -10
  534. package/dist/lite/model/addApiKeyResponse.d.ts.map +1 -1
  535. package/dist/lite/model/advancedSyntaxFeatures.d.ts +1 -1
  536. package/dist/lite/model/advancedSyntaxFeatures.d.ts.map +1 -1
  537. package/dist/lite/model/alternativesAsExact.d.ts +1 -1
  538. package/dist/lite/model/alternativesAsExact.d.ts.map +1 -1
  539. package/dist/lite/model/anchoring.d.ts +4 -4
  540. package/dist/lite/model/anchoring.d.ts.map +1 -1
  541. package/dist/lite/model/apiKey.d.ts +38 -38
  542. package/dist/lite/model/apiKey.d.ts.map +1 -1
  543. package/dist/lite/model/apiKeyOperation.d.ts +2 -0
  544. package/dist/lite/model/apiKeyOperation.d.ts.map +1 -0
  545. package/dist/lite/model/aroundPrecision.d.ts +6 -0
  546. package/dist/lite/model/aroundPrecision.d.ts.map +1 -0
  547. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +14 -0
  548. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  549. package/dist/lite/model/aroundRadius.d.ts +5 -5
  550. package/dist/lite/model/aroundRadius.d.ts.map +1 -1
  551. package/dist/lite/model/aroundRadiusAll.d.ts +4 -1
  552. package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
  553. package/dist/lite/model/attributeToUpdate.d.ts +2 -2
  554. package/dist/lite/model/attributeToUpdate.d.ts.map +1 -1
  555. package/dist/lite/model/automaticFacetFilter.d.ts +17 -17
  556. package/dist/lite/model/automaticFacetFilter.d.ts.map +1 -1
  557. package/dist/lite/model/automaticFacetFilters.d.ts +5 -5
  558. package/dist/lite/model/automaticFacetFilters.d.ts.map +1 -1
  559. package/dist/lite/model/baseGetApiKeyResponse.d.ts +10 -10
  560. package/dist/lite/model/baseGetApiKeyResponse.d.ts.map +1 -1
  561. package/dist/lite/model/baseIndexSettings.d.ts +71 -58
  562. package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
  563. package/dist/lite/model/baseSearchParams.d.ts +3 -3
  564. package/dist/lite/model/baseSearchParams.d.ts.map +1 -1
  565. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +114 -122
  566. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  567. package/dist/lite/model/baseSearchResponse.d.ts +109 -101
  568. package/dist/lite/model/baseSearchResponse.d.ts.map +1 -1
  569. package/dist/lite/model/browseParams.d.ts +3 -3
  570. package/dist/lite/model/browseParams.d.ts.map +1 -1
  571. package/dist/lite/model/browseParamsObject.d.ts +3 -3
  572. package/dist/lite/model/browseParamsObject.d.ts.map +1 -1
  573. package/dist/lite/model/browseResponse.d.ts +4 -4
  574. package/dist/lite/model/browseResponse.d.ts.map +1 -1
  575. package/dist/lite/model/builtInOperation.d.ts +11 -11
  576. package/dist/lite/model/builtInOperation.d.ts.map +1 -1
  577. package/dist/lite/model/builtInOperationType.d.ts +4 -4
  578. package/dist/lite/model/builtInOperationType.d.ts.map +1 -1
  579. package/dist/lite/model/clientMethodProps.d.ts +48 -48
  580. package/dist/lite/model/clientMethodProps.d.ts.map +1 -1
  581. package/dist/lite/model/condition.d.ts +20 -16
  582. package/dist/lite/model/condition.d.ts.map +1 -1
  583. package/dist/lite/model/consequence.d.ts +25 -25
  584. package/dist/lite/model/consequence.d.ts.map +1 -1
  585. package/dist/lite/model/consequenceHide.d.ts +9 -9
  586. package/dist/lite/model/consequenceHide.d.ts.map +1 -1
  587. package/dist/lite/model/consequenceParams.d.ts +4 -4
  588. package/dist/lite/model/consequenceParams.d.ts.map +1 -1
  589. package/dist/lite/model/consequenceQuery.d.ts +5 -5
  590. package/dist/lite/model/consequenceQuery.d.ts.map +1 -1
  591. package/dist/lite/model/consequenceQueryObject.d.ts +11 -11
  592. package/dist/lite/model/consequenceQueryObject.d.ts.map +1 -1
  593. package/dist/lite/model/cursor.d.ts +6 -6
  594. package/dist/lite/model/cursor.d.ts.map +1 -1
  595. package/dist/lite/model/deleteByParams.d.ts +27 -0
  596. package/dist/lite/model/deleteByParams.d.ts.map +1 -0
  597. package/dist/lite/model/dictionaryAction.d.ts +4 -4
  598. package/dist/lite/model/dictionaryAction.d.ts.map +1 -1
  599. package/dist/lite/model/dictionaryEntry.d.ts +25 -27
  600. package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
  601. package/dist/lite/model/dictionaryEntryState.d.ts +4 -4
  602. package/dist/lite/model/dictionaryEntryState.d.ts.map +1 -1
  603. package/dist/lite/model/dictionaryLanguage.d.ts +9 -9
  604. package/dist/lite/model/dictionaryLanguage.d.ts.map +1 -1
  605. package/dist/lite/model/dictionaryType.d.ts +1 -1
  606. package/dist/lite/model/dictionaryType.d.ts.map +1 -1
  607. package/dist/lite/model/distinct.d.ts +4 -4
  608. package/dist/lite/model/distinct.d.ts.map +1 -1
  609. package/dist/lite/model/edit.d.ts +12 -12
  610. package/dist/lite/model/edit.d.ts.map +1 -1
  611. package/dist/lite/model/editType.d.ts +4 -4
  612. package/dist/lite/model/editType.d.ts.map +1 -1
  613. package/dist/lite/model/errorBase.d.ts +6 -6
  614. package/dist/lite/model/errorBase.d.ts.map +1 -1
  615. package/dist/lite/model/exactOnSingleWordQuery.d.ts +4 -4
  616. package/dist/lite/model/exactOnSingleWordQuery.d.ts.map +1 -1
  617. package/dist/lite/model/exhaustive.d.ts +26 -0
  618. package/dist/lite/model/exhaustive.d.ts.map +1 -0
  619. package/dist/lite/model/facetFilters.d.ts +5 -5
  620. package/dist/lite/model/facetFilters.d.ts.map +1 -1
  621. package/dist/lite/model/facetHits.d.ts +15 -0
  622. package/dist/lite/model/facetHits.d.ts.map +1 -0
  623. package/dist/lite/model/facetOrdering.d.ts +12 -12
  624. package/dist/lite/model/facetOrdering.d.ts.map +1 -1
  625. package/dist/lite/model/facets.d.ts +9 -9
  626. package/dist/lite/model/facets.d.ts.map +1 -1
  627. package/dist/lite/model/facetsStats.d.ts +18 -18
  628. package/dist/lite/model/facetsStats.d.ts.map +1 -1
  629. package/dist/lite/model/fetchedIndex.d.ts +46 -46
  630. package/dist/lite/model/fetchedIndex.d.ts.map +1 -1
  631. package/dist/lite/model/getApiKeyResponse.d.ts +3 -3
  632. package/dist/lite/model/getApiKeyResponse.d.ts.map +1 -1
  633. package/dist/lite/model/highlightResult.d.ts +2 -2
  634. package/dist/lite/model/highlightResult.d.ts.map +1 -1
  635. package/dist/lite/model/highlightResultOption.d.ts +19 -19
  636. package/dist/lite/model/highlightResultOption.d.ts.map +1 -1
  637. package/dist/lite/model/hit.d.ts +22 -22
  638. package/dist/lite/model/hit.d.ts.map +1 -1
  639. package/dist/lite/model/ignorePlurals.d.ts +5 -4
  640. package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
  641. package/dist/lite/model/index.d.ts +122 -107
  642. package/dist/lite/model/index.d.ts.map +1 -1
  643. package/dist/lite/model/indexSettings.d.ts +6 -6
  644. package/dist/lite/model/indexSettings.d.ts.map +1 -1
  645. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +159 -160
  646. package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  647. package/dist/lite/model/languages.d.ts +9 -9
  648. package/dist/lite/model/languages.d.ts.map +1 -1
  649. package/dist/lite/model/listIndicesResponse.d.ts +11 -11
  650. package/dist/lite/model/listIndicesResponse.d.ts.map +1 -1
  651. package/dist/lite/model/logType.d.ts +1 -1
  652. package/dist/lite/model/logType.d.ts.map +1 -1
  653. package/dist/lite/model/matchLevel.d.ts +4 -4
  654. package/dist/lite/model/matchLevel.d.ts.map +1 -1
  655. package/dist/lite/model/matchedGeoLocation.d.ts +14 -14
  656. package/dist/lite/model/matchedGeoLocation.d.ts.map +1 -1
  657. package/dist/lite/model/mixedSearchFilters.d.ts +1 -1
  658. package/dist/lite/model/mixedSearchFilters.d.ts.map +1 -1
  659. package/dist/lite/model/mode.d.ts +5 -0
  660. package/dist/lite/model/mode.d.ts.map +1 -0
  661. package/dist/lite/model/numericFilters.d.ts +5 -5
  662. package/dist/lite/model/numericFilters.d.ts.map +1 -1
  663. package/dist/lite/model/operationType.d.ts +4 -4
  664. package/dist/lite/model/operationType.d.ts.map +1 -1
  665. package/dist/lite/model/optionalFilters.d.ts +5 -5
  666. package/dist/lite/model/optionalFilters.d.ts.map +1 -1
  667. package/dist/lite/model/params.d.ts +12 -12
  668. package/dist/lite/model/params.d.ts.map +1 -1
  669. package/dist/lite/model/personalization.d.ts +14 -14
  670. package/dist/lite/model/personalization.d.ts.map +1 -1
  671. package/dist/lite/model/promote.d.ts +3 -3
  672. package/dist/lite/model/promote.d.ts.map +1 -1
  673. package/dist/lite/model/promoteObjectID.d.ts +13 -13
  674. package/dist/lite/model/promoteObjectID.d.ts.map +1 -1
  675. package/dist/lite/model/promoteObjectIDs.d.ts +13 -13
  676. package/dist/lite/model/promoteObjectIDs.d.ts.map +1 -1
  677. package/dist/lite/model/queryType.d.ts +4 -4
  678. package/dist/lite/model/queryType.d.ts.map +1 -1
  679. package/dist/lite/model/rankingInfo.d.ts +53 -50
  680. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  681. package/dist/lite/model/reRankingApplyFilter.d.ts +5 -5
  682. package/dist/lite/model/reRankingApplyFilter.d.ts.map +1 -1
  683. package/dist/lite/model/redirect.d.ts +8 -0
  684. package/dist/lite/model/redirect.d.ts.map +1 -0
  685. package/dist/lite/model/redirectRuleIndexMetadata.d.ts +21 -0
  686. package/dist/lite/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  687. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts +7 -0
  688. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  689. package/dist/lite/model/removeStopWords.d.ts +5 -4
  690. package/dist/lite/model/removeStopWords.d.ts.map +1 -1
  691. package/dist/lite/model/removeWordsIfNoResults.d.ts +4 -4
  692. package/dist/lite/model/removeWordsIfNoResults.d.ts.map +1 -1
  693. package/dist/lite/model/renderingContent.d.ts +7 -7
  694. package/dist/lite/model/renderingContent.d.ts.map +1 -1
  695. package/dist/lite/model/rule.d.ts +29 -29
  696. package/dist/lite/model/rule.d.ts.map +1 -1
  697. package/dist/lite/model/scopeType.d.ts +1 -1
  698. package/dist/lite/model/scopeType.d.ts.map +1 -1
  699. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +20 -0
  700. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  701. package/dist/lite/model/searchForFacetValuesResponse.d.ts +16 -0
  702. package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -0
  703. package/dist/lite/model/searchForFacets.d.ts +3 -3
  704. package/dist/lite/model/searchForFacets.d.ts.map +1 -1
  705. package/dist/lite/model/searchForFacetsOptions.d.ts +20 -20
  706. package/dist/lite/model/searchForFacetsOptions.d.ts.map +1 -1
  707. package/dist/lite/model/searchForHits.d.ts +3 -3
  708. package/dist/lite/model/searchForHits.d.ts.map +1 -1
  709. package/dist/lite/model/searchForHitsOptions.d.ts +12 -12
  710. package/dist/lite/model/searchForHitsOptions.d.ts.map +1 -1
  711. package/dist/lite/model/searchHits.d.ts +15 -4
  712. package/dist/lite/model/searchHits.d.ts.map +1 -1
  713. package/dist/lite/model/searchMethodParams.d.ts +6 -6
  714. package/dist/lite/model/searchMethodParams.d.ts.map +1 -1
  715. package/dist/lite/model/searchParams.d.ts +3 -3
  716. package/dist/lite/model/searchParams.d.ts.map +1 -1
  717. package/dist/lite/model/searchParamsObject.d.ts +3 -3
  718. package/dist/lite/model/searchParamsObject.d.ts.map +1 -1
  719. package/dist/lite/model/searchParamsQuery.d.ts +6 -6
  720. package/dist/lite/model/searchParamsQuery.d.ts.map +1 -1
  721. package/dist/lite/model/searchParamsString.d.ts +6 -6
  722. package/dist/lite/model/searchParamsString.d.ts.map +1 -1
  723. package/dist/lite/model/searchQuery.d.ts +3 -3
  724. package/dist/lite/model/searchQuery.d.ts.map +1 -1
  725. package/dist/lite/model/searchResponse.d.ts +3 -3
  726. package/dist/lite/model/searchResponse.d.ts.map +1 -1
  727. package/dist/lite/model/searchResponses.d.ts +4 -4
  728. package/dist/lite/model/searchResponses.d.ts.map +1 -1
  729. package/dist/lite/model/searchResult.d.ts +4 -0
  730. package/dist/lite/model/searchResult.d.ts.map +1 -0
  731. package/dist/lite/model/searchStrategy.d.ts +4 -1
  732. package/dist/lite/model/searchStrategy.d.ts.map +1 -1
  733. package/dist/lite/model/searchSynonymsResponse.d.ts +11 -11
  734. package/dist/lite/model/searchSynonymsResponse.d.ts.map +1 -1
  735. package/dist/lite/model/searchTypeDefault.d.ts +4 -4
  736. package/dist/lite/model/searchTypeDefault.d.ts.map +1 -1
  737. package/dist/lite/model/searchTypeFacet.d.ts +4 -4
  738. package/dist/lite/model/searchTypeFacet.d.ts.map +1 -1
  739. package/dist/lite/model/securedAPIKeyRestrictions.d.ts +25 -0
  740. package/dist/lite/model/securedAPIKeyRestrictions.d.ts.map +1 -0
  741. package/dist/lite/model/semanticSearch.d.ts +10 -0
  742. package/dist/lite/model/semanticSearch.d.ts.map +1 -0
  743. package/dist/lite/model/snippetResult.d.ts +2 -2
  744. package/dist/lite/model/snippetResult.d.ts.map +1 -1
  745. package/dist/lite/model/snippetResultOption.d.ts +11 -11
  746. package/dist/lite/model/snippetResultOption.d.ts.map +1 -1
  747. package/dist/lite/model/sortRemainingBy.d.ts +4 -4
  748. package/dist/lite/model/sortRemainingBy.d.ts.map +1 -1
  749. package/dist/lite/model/source.d.ts +13 -13
  750. package/dist/lite/model/source.d.ts.map +1 -1
  751. package/dist/lite/model/standardEntries.d.ts +17 -17
  752. package/dist/lite/model/standardEntries.d.ts.map +1 -1
  753. package/dist/lite/model/supportedLanguage.d.ts +5 -0
  754. package/dist/lite/model/supportedLanguage.d.ts.map +1 -0
  755. package/dist/lite/model/synonymHit.d.ts +35 -37
  756. package/dist/lite/model/synonymHit.d.ts.map +1 -1
  757. package/dist/lite/model/synonymType.d.ts +4 -4
  758. package/dist/lite/model/synonymType.d.ts.map +1 -1
  759. package/dist/lite/model/tagFilters.d.ts +5 -5
  760. package/dist/lite/model/tagFilters.d.ts.map +1 -1
  761. package/dist/lite/model/taskStatus.d.ts +4 -1
  762. package/dist/lite/model/taskStatus.d.ts.map +1 -1
  763. package/dist/lite/model/timeRange.d.ts +10 -10
  764. package/dist/lite/model/timeRange.d.ts.map +1 -1
  765. package/dist/lite/model/typoTolerance.d.ts +5 -5
  766. package/dist/lite/model/typoTolerance.d.ts.map +1 -1
  767. package/dist/lite/model/typoToleranceEnum.d.ts +4 -1
  768. package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
  769. package/dist/lite/model/updatedRuleResponse.d.ts +14 -14
  770. package/dist/lite/model/updatedRuleResponse.d.ts.map +1 -1
  771. package/dist/lite/model/userId.d.ts +21 -21
  772. package/dist/lite/model/userId.d.ts.map +1 -1
  773. package/dist/lite/model/value.d.ts +8 -8
  774. package/dist/lite/model/value.d.ts.map +1 -1
  775. package/dist/lite/src/liteClient.d.ts +47 -50
  776. package/dist/lite/src/liteClient.d.ts.map +1 -1
  777. package/index.d.ts +1 -1
  778. package/index.js +1 -1
  779. package/lite/builds/browser.ts +12 -7
  780. package/lite/builds/node.ts +11 -6
  781. package/lite/model/acl.ts +3 -2
  782. package/lite/model/action.ts +2 -2
  783. package/lite/model/addApiKeyResponse.ts +3 -3
  784. package/lite/model/advancedSyntaxFeatures.ts +1 -1
  785. package/lite/model/alternativesAsExact.ts +1 -1
  786. package/lite/model/anchoring.ts +2 -2
  787. package/lite/model/apiKey.ts +10 -10
  788. package/lite/model/apiKeyOperation.ts +3 -0
  789. package/lite/model/aroundPrecision.ts +8 -0
  790. package/lite/model/aroundPrecisionFromValueInner.ts +16 -0
  791. package/lite/model/aroundRadius.ts +2 -2
  792. package/lite/model/aroundRadiusAll.ts +4 -1
  793. package/lite/model/attributeToUpdate.ts +1 -1
  794. package/lite/model/automaticFacetFilter.ts +5 -5
  795. package/lite/model/automaticFacetFilters.ts +2 -2
  796. package/lite/model/baseGetApiKeyResponse.ts +3 -3
  797. package/lite/model/baseIndexSettings.ts +34 -17
  798. package/lite/model/baseSearchParams.ts +1 -1
  799. package/lite/model/baseSearchParamsWithoutQuery.ts +36 -46
  800. package/lite/model/baseSearchResponse.ts +42 -31
  801. package/lite/model/browseParams.ts +1 -1
  802. package/lite/model/browseParamsObject.ts +1 -1
  803. package/lite/model/browseResponse.ts +1 -1
  804. package/lite/model/builtInOperation.ts +3 -3
  805. package/lite/model/builtInOperationType.ts +2 -2
  806. package/lite/model/clientMethodProps.ts +6 -6
  807. package/lite/model/condition.ts +9 -4
  808. package/lite/model/consequence.ts +7 -7
  809. package/lite/model/consequenceHide.ts +3 -3
  810. package/lite/model/consequenceParams.ts +1 -1
  811. package/lite/model/consequenceQuery.ts +2 -2
  812. package/lite/model/consequenceQueryObject.ts +3 -3
  813. package/lite/model/cursor.ts +2 -2
  814. package/lite/model/deleteByParams.ts +36 -0
  815. package/lite/model/dictionaryAction.ts +1 -1
  816. package/lite/model/dictionaryEntry.ts +8 -10
  817. package/lite/model/dictionaryEntryState.ts +2 -2
  818. package/lite/model/dictionaryLanguage.ts +4 -4
  819. package/lite/model/dictionaryType.ts +1 -1
  820. package/lite/model/distinct.ts +2 -2
  821. package/lite/model/edit.ts +2 -2
  822. package/lite/model/editType.ts +1 -1
  823. package/lite/model/errorBase.ts +1 -1
  824. package/lite/model/exactOnSingleWordQuery.ts +2 -2
  825. package/lite/model/exhaustive.ts +31 -0
  826. package/lite/model/facetFilters.ts +2 -2
  827. package/lite/model/facetHits.ts +18 -0
  828. package/lite/model/facetOrdering.ts +3 -3
  829. package/lite/model/facets.ts +3 -3
  830. package/lite/model/facetsStats.ts +5 -5
  831. package/lite/model/fetchedIndex.ts +3 -3
  832. package/lite/model/getApiKeyResponse.ts +1 -1
  833. package/lite/model/highlightResult.ts +5 -2
  834. package/lite/model/highlightResultOption.ts +4 -4
  835. package/lite/model/hit.ts +5 -5
  836. package/lite/model/ignorePlurals.ts +5 -3
  837. package/lite/model/index.ts +17 -2
  838. package/lite/model/indexSettings.ts +2 -2
  839. package/lite/model/indexSettingsAsSearchParams.ts +54 -54
  840. package/lite/model/languages.ts +2 -2
  841. package/lite/model/listIndicesResponse.ts +2 -2
  842. package/lite/model/logType.ts +1 -1
  843. package/lite/model/matchLevel.ts +2 -2
  844. package/lite/model/matchedGeoLocation.ts +1 -1
  845. package/lite/model/mixedSearchFilters.ts +1 -1
  846. package/lite/model/mode.ts +6 -0
  847. package/lite/model/numericFilters.ts +2 -2
  848. package/lite/model/operationType.ts +2 -2
  849. package/lite/model/optionalFilters.ts +2 -2
  850. package/lite/model/params.ts +2 -2
  851. package/lite/model/personalization.ts +1 -1
  852. package/lite/model/promote.ts +1 -1
  853. package/lite/model/promoteObjectID.ts +4 -4
  854. package/lite/model/promoteObjectIDs.ts +4 -4
  855. package/lite/model/queryType.ts +2 -2
  856. package/lite/model/rankingInfo.ts +11 -8
  857. package/lite/model/reRankingApplyFilter.ts +2 -2
  858. package/lite/model/redirect.ts +10 -0
  859. package/lite/model/redirectRuleIndexMetadata.ts +27 -0
  860. package/lite/model/redirectRuleIndexMetadataData.ts +8 -0
  861. package/lite/model/removeStopWords.ts +5 -3
  862. package/lite/model/removeWordsIfNoResults.ts +2 -2
  863. package/lite/model/renderingContent.ts +2 -2
  864. package/lite/model/rule.ts +6 -6
  865. package/lite/model/scopeType.ts +1 -1
  866. package/lite/model/searchDictionaryEntriesResponse.ts +25 -0
  867. package/lite/model/searchForFacetValuesResponse.ts +20 -0
  868. package/lite/model/searchForFacets.ts +1 -1
  869. package/lite/model/searchForFacetsOptions.ts +4 -4
  870. package/lite/model/searchForHits.ts +1 -1
  871. package/lite/model/searchForHitsOptions.ts +2 -2
  872. package/lite/model/searchHits.ts +15 -2
  873. package/lite/model/searchMethodParams.ts +1 -1
  874. package/lite/model/searchParams.ts +1 -1
  875. package/lite/model/searchParamsObject.ts +1 -1
  876. package/lite/model/searchParamsQuery.ts +2 -2
  877. package/lite/model/searchParamsString.ts +2 -2
  878. package/lite/model/searchQuery.ts +1 -1
  879. package/lite/model/searchResponse.ts +1 -1
  880. package/lite/model/searchResponses.ts +3 -3
  881. package/lite/model/searchResult.ts +8 -0
  882. package/lite/model/searchStrategy.ts +4 -1
  883. package/lite/model/searchSynonymsResponse.ts +3 -3
  884. package/lite/model/searchTypeDefault.ts +2 -2
  885. package/lite/model/searchTypeFacet.ts +2 -2
  886. package/lite/model/securedAPIKeyRestrictions.ts +32 -0
  887. package/lite/model/semanticSearch.ts +11 -0
  888. package/lite/model/snippetResult.ts +5 -2
  889. package/lite/model/snippetResultOption.ts +3 -3
  890. package/lite/model/sortRemainingBy.ts +2 -2
  891. package/lite/model/source.ts +4 -4
  892. package/lite/model/standardEntries.ts +5 -5
  893. package/lite/model/supportedLanguage.ts +74 -0
  894. package/lite/model/synonymHit.ts +7 -10
  895. package/lite/model/synonymType.ts +2 -2
  896. package/lite/model/tagFilters.ts +2 -2
  897. package/lite/model/taskStatus.ts +4 -1
  898. package/lite/model/timeRange.ts +3 -3
  899. package/lite/model/typoTolerance.ts +2 -2
  900. package/lite/model/typoToleranceEnum.ts +4 -1
  901. package/lite/model/updatedRuleResponse.ts +4 -4
  902. package/lite/model/userId.ts +4 -4
  903. package/lite/model/value.ts +2 -2
  904. package/lite/src/liteClient.ts +19 -21
  905. package/lite.js +1 -1
  906. package/package.json +20 -18
  907. package/dist/algoliasearch/jest.config.d.ts +0 -4
  908. package/dist/algoliasearch/jest.config.d.ts.map +0 -1
  909. package/dist/builds/browser.d.ts.map +0 -1
  910. package/dist/builds/models.d.ts.map +0 -1
  911. package/dist/builds/node.d.ts.map +0 -1
  912. package/dist/client-analytics/model/averageClickEvent.d.ts +0 -15
  913. package/dist/client-analytics/model/averageClickEvent.d.ts.map +0 -1
  914. package/dist/client-analytics/model/clickPosition.d.ts +0 -11
  915. package/dist/client-analytics/model/clickPosition.d.ts.map +0 -1
  916. package/dist/client-analytics/model/clickThroughRateEvent.d.ts +0 -19
  917. package/dist/client-analytics/model/clickThroughRateEvent.d.ts.map +0 -1
  918. package/dist/client-analytics/model/conversionRateEvent.d.ts +0 -19
  919. package/dist/client-analytics/model/conversionRateEvent.d.ts.map +0 -1
  920. package/dist/client-analytics/model/getConversationRateResponse.d.ts +0 -20
  921. package/dist/client-analytics/model/getConversationRateResponse.d.ts.map +0 -1
  922. package/dist/client-analytics/model/noClickRateEvent.d.ts +0 -19
  923. package/dist/client-analytics/model/noClickRateEvent.d.ts.map +0 -1
  924. package/dist/client-analytics/model/noResultsRateEvent.d.ts +0 -19
  925. package/dist/client-analytics/model/noResultsRateEvent.d.ts.map +0 -1
  926. package/dist/client-analytics/model/searchEvent.d.ts +0 -11
  927. package/dist/client-analytics/model/searchEvent.d.ts.map +0 -1
  928. package/dist/client-analytics/model/searchNoClickEvent.d.ts +0 -15
  929. package/dist/client-analytics/model/searchNoClickEvent.d.ts.map +0 -1
  930. package/dist/client-analytics/model/searchNoResultEvent.d.ts +0 -15
  931. package/dist/client-analytics/model/searchNoResultEvent.d.ts.map +0 -1
  932. package/dist/client-analytics/model/userWithDate.d.ts +0 -11
  933. package/dist/client-analytics/model/userWithDate.d.ts.map +0 -1
  934. package/dist/client-search/model/synonymHitHighlightResult.d.ts +0 -12
  935. package/dist/client-search/model/synonymHitHighlightResult.d.ts.map +0 -1
  936. package/dist/lite/model/synonymHitHighlightResult.d.ts +0 -12
  937. package/dist/lite/model/synonymHitHighlightResult.d.ts.map +0 -1
  938. package/lite/model/synonymHitHighlightResult.ts +0 -15
@@ -1,724 +1,867 @@
1
- import type { CreateClientOptions, RequestOptions, ApiError } from '@algolia/client-common';
2
- import type { AddApiKeyResponse } from '../model/addApiKeyResponse';
3
- import type { ApiKey } from '../model/apiKey';
4
- import type { BatchParams } from '../model/batchParams';
5
- import type { BatchResponse } from '../model/batchResponse';
6
- import type { BrowseResponse } from '../model/browseResponse';
7
- import type { BrowseOptions, WaitForTaskOptions, WaitForApiKeyOptions, AddOrUpdateObjectProps, AssignUserIdProps, BatchProps, BatchAssignUserIdsProps, BatchDictionaryEntriesProps, BrowseProps, ClearAllSynonymsProps, ClearObjectsProps, ClearRulesProps, DelProps, DeleteApiKeyProps, DeleteByProps, DeleteIndexProps, DeleteObjectProps, DeleteRuleProps, DeleteSourceProps, DeleteSynonymProps, GetProps, GetApiKeyProps, GetLogsProps, GetObjectProps, GetRuleProps, GetSettingsProps, GetSynonymProps, GetTaskProps, GetUserIdProps, HasPendingMappingsProps, ListIndicesProps, ListUserIdsProps, OperationIndexProps, PartialUpdateObjectProps, PostProps, PutProps, RemoveUserIdProps, ReplaceSourcesProps, RestoreApiKeyProps, SaveObjectProps, SaveRuleProps, SaveRulesProps, SaveSynonymProps, SaveSynonymsProps, LegacySearchMethodProps, SearchDictionaryEntriesProps, SearchForFacetValuesProps, SearchRulesProps, SearchSingleIndexProps, SearchSynonymsProps, SetSettingsProps, UpdateApiKeyProps } from '../model/clientMethodProps';
8
- import type { CreatedAtResponse } from '../model/createdAtResponse';
9
- import type { DeleteApiKeyResponse } from '../model/deleteApiKeyResponse';
10
- import type { DeleteSourceResponse } from '../model/deleteSourceResponse';
11
- import type { DeletedAtResponse } from '../model/deletedAtResponse';
12
- import type { DictionarySettingsParams } from '../model/dictionarySettingsParams';
13
- import type { GetApiKeyResponse } from '../model/getApiKeyResponse';
14
- import type { GetDictionarySettingsResponse } from '../model/getDictionarySettingsResponse';
15
- import type { GetLogsResponse } from '../model/getLogsResponse';
16
- import type { GetObjectsParams } from '../model/getObjectsParams';
17
- import type { GetObjectsResponse } from '../model/getObjectsResponse';
18
- import type { GetTaskResponse } from '../model/getTaskResponse';
19
- import type { GetTopUserIdsResponse } from '../model/getTopUserIdsResponse';
20
- import type { HasPendingMappingsResponse } from '../model/hasPendingMappingsResponse';
21
- import type { IndexSettings } from '../model/indexSettings';
22
- import type { Languages } from '../model/languages';
23
- import type { ListApiKeysResponse } from '../model/listApiKeysResponse';
24
- import type { ListClustersResponse } from '../model/listClustersResponse';
25
- import type { ListIndicesResponse } from '../model/listIndicesResponse';
26
- import type { ListUserIdsResponse } from '../model/listUserIdsResponse';
27
- import type { MultipleBatchResponse } from '../model/multipleBatchResponse';
28
- import type { RemoveUserIdResponse } from '../model/removeUserIdResponse';
29
- import type { ReplaceSourceResponse } from '../model/replaceSourceResponse';
30
- import type { Rule } from '../model/rule';
31
- import type { SaveObjectResponse } from '../model/saveObjectResponse';
32
- import type { SaveSynonymResponse } from '../model/saveSynonymResponse';
33
- import type { SearchForFacetValuesResponse } from '../model/searchForFacetValuesResponse';
34
- import type { SearchMethodParams } from '../model/searchMethodParams';
35
- import type { SearchResponse } from '../model/searchResponse';
36
- import type { SearchResponses } from '../model/searchResponses';
37
- import type { SearchRulesResponse } from '../model/searchRulesResponse';
38
- import type { SearchSynonymsResponse } from '../model/searchSynonymsResponse';
39
- import type { SearchUserIdsParams } from '../model/searchUserIdsParams';
40
- import type { SearchUserIdsResponse } from '../model/searchUserIdsResponse';
41
- import type { Source } from '../model/source';
42
- import type { SynonymHit } from '../model/synonymHit';
43
- import type { UpdateApiKeyResponse } from '../model/updateApiKeyResponse';
44
- import type { UpdatedAtResponse } from '../model/updatedAtResponse';
45
- import type { UpdatedAtWithObjectIdResponse } from '../model/updatedAtWithObjectIdResponse';
46
- import type { UpdatedRuleResponse } from '../model/updatedRuleResponse';
47
- import type { UserId } from '../model/userId';
48
- export declare const apiClientVersion = "5.0.0-alpha.11";
49
- export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
50
- transporter: import("@algolia/client-common").Transporter;
51
- /**
52
- * The `appId` currently in use.
53
- */
54
- appId: string;
55
- /**
56
- * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
57
- */
58
- clearCache(): Promise<void>;
59
- /**
60
- * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
61
- */
62
- readonly _ua: string;
63
- /**
64
- * Adds a `segment` to the `x-algolia-agent` sent with every requests.
65
- *
66
- * @param segment - The algolia agent (user-agent) segment to add.
67
- * @param version - The version of the agent.
68
- */
69
- addAlgoliaAgent(segment: string, version?: string): void;
70
- /**
71
- * Helper: Wait for a task to be published (completed) for a given `indexName` and `taskID`.
72
- *
73
- * @summary Helper method that waits for a task to be published (completed).
74
- * @param waitForTaskOptions - The waitForTaskOptions object.
75
- * @param waitForTaskOptions.indexName - The `indexName` where the operation was performed.
76
- * @param waitForTaskOptions.taskID - The `taskID` returned in the method response.
77
- * @param waitForTaskOptions.maxRetries - The maximum number of retries. 50 by default.
78
- * @param waitForTaskOptions.timeout - The function to decide how long to wait between retries.
79
- * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
80
- */
81
- waitForTask({ indexName, taskID, maxRetries, timeout, }: WaitForTaskOptions, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
82
- /**
83
- * Helper: Wait for an API key to be added, updated or deleted based on a given `operation`.
84
- *
85
- * @summary Helper method that waits for an API key task to be processed.
86
- * @param waitForApiKeyOptions - The waitForApiKeyOptions object.
87
- * @param waitForApiKeyOptions.operation - The `operation` that was done on a `key`.
88
- * @param waitForApiKeyOptions.key - The `key` that has been added, deleted or updated.
89
- * @param waitForApiKeyOptions.apiKey - Necessary to know if an `update` operation has been processed, compare fields of the response with it.
90
- * @param waitForApiKeyOptions.maxRetries - The maximum number of retries. 50 by default.
91
- * @param waitForApiKeyOptions.timeout - The function to decide how long to wait between retries.
92
- * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getApikey` method and merged with the transporter requestOptions.
93
- */
94
- waitForApiKey({ operation, key, apiKey, maxRetries, timeout, }: WaitForApiKeyOptions, requestOptions?: RequestOptions): Promise<ApiError | GetApiKeyResponse>;
95
- /**
96
- * Helper: Iterate on the `browse` method of the client to allow aggregating objects of an index.
97
- *
98
- * @summary Helper method that iterates on the `browse` method.
99
- * @param browseObjects - The browseObjects object.
100
- * @param browseObjects.indexName - The index in which to perform the request.
101
- * @param browseObjects.browseParams - The `browse` parameters.
102
- * @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is no `cursor` in the response.
103
- * @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
104
- * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `browse` method and merged with the transporter requestOptions.
105
- */
106
- browseObjects<T>({ indexName, browseParams, ...browseObjectsOptions }: Partial<Pick<import("@algolia/client-common").CreateIterablePromise<BrowseResponse<T>>, "validate">> & Required<Pick<import("@algolia/client-common").CreateIterablePromise<BrowseResponse<T>>, "aggregator">> & BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T>>;
107
- /**
108
- * Helper: Iterate on the `searchRules` method of the client to allow aggregating rules of an index.
109
- *
110
- * @summary Helper method that iterates on the `searchRules` method.
111
- * @param browseObjects - The browseObjects object.
112
- * @param browseObjects.indexName - The index in which to perform the request.
113
- * @param browseObjects.searchRulesParams - The `searchRules` method parameters.
114
- * @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
115
- * @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
116
- * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchRules` method and merged with the transporter requestOptions.
117
- */
118
- browseRules({ indexName, searchRulesParams, ...browseRulesOptions }: BrowseOptions<SearchRulesResponse> & SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
119
- /**
120
- * Helper: Iterate on the `searchSynonyms` method of the client to allow aggregating rules of an index.
121
- *
122
- * @summary Helper method that iterates on the `searchSynonyms` method.
123
- * @param browseObjects - The browseObjects object.
124
- * @param browseObjects.indexName - The index in which to perform the request.
125
- * @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
126
- * @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
127
- * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchSynonyms` method and merged with the transporter requestOptions.
128
- */
129
- browseSynonyms({ indexName, validate, aggregator, ...browseSynonymsOptions }: BrowseOptions<SearchSynonymsResponse> & SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
130
- /**
131
- * Add a new API Key with specific permissions/restrictions.
132
- *
133
- * @summary Create an API key.
134
- * @param apiKey - The apiKey object.
135
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
136
- */
137
- addApiKey(apiKey: ApiKey, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
138
- /**
139
- * Add or replace an object with a given object ID. If the object does not exist, it will be created. If it already exists, it will be replaced.
140
- *
141
- * @summary Add or replace an object.
142
- * @param addOrUpdateObject - The addOrUpdateObject object.
143
- * @param addOrUpdateObject.indexName - The index in which to perform the request.
144
- * @param addOrUpdateObject.objectID - Unique identifier of an object.
145
- * @param addOrUpdateObject.body - The Algolia object.
146
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
147
- */
148
- addOrUpdateObject({ indexName, objectID, body }: AddOrUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
149
- /**
150
- * Add a single source to the list of allowed sources.
151
- *
152
- * @summary Add a single source.
153
- * @param source - The source to add.
154
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
155
- */
156
- appendSource(source: Source, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
157
- /**
158
- * Assign or Move a userID to a cluster. The time it takes to migrate (move) a user is proportional to the amount of data linked to the userID. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userID is directly usable.
159
- *
160
- * @summary Assign or Move userID.
161
- * @param assignUserId - The assignUserId object.
162
- * @param assignUserId.xAlgoliaUserID - UserID to assign.
163
- * @param assignUserId.assignUserIdParams - The assignUserIdParams object.
164
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
165
- */
166
- assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
167
- /**
168
- * Perform multiple write operations targeting one index, in a single API call.
169
- *
170
- * @summary Batch operations to one index.
171
- * @param batch - The batch object.
172
- * @param batch.indexName - The index in which to perform the request.
173
- * @param batch.batchWriteParams - The batchWriteParams object.
174
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
175
- */
176
- batch({ indexName, batchWriteParams }: BatchProps, requestOptions?: RequestOptions): Promise<BatchResponse>;
177
- /**
178
- * Assign multiple userIDs to a cluster. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable.
179
- *
180
- * @summary Batch assign userIDs.
181
- * @param batchAssignUserIds - The batchAssignUserIds object.
182
- * @param batchAssignUserIds.xAlgoliaUserID - UserID to assign.
183
- * @param batchAssignUserIds.batchAssignUserIdsParams - The batchAssignUserIdsParams object.
184
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
185
- */
186
- batchAssignUserIds({ xAlgoliaUserID, batchAssignUserIdsParams }: BatchAssignUserIdsProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
187
- /**
188
- * Send a batch of dictionary entries.
189
- *
190
- * @summary Batch dictionary entries.
191
- * @param batchDictionaryEntries - The batchDictionaryEntries object.
192
- * @param batchDictionaryEntries.dictionaryName - The dictionary to search in.
193
- * @param batchDictionaryEntries.batchDictionaryEntriesParams - The batchDictionaryEntriesParams object.
194
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
195
- */
196
- batchDictionaryEntries({ dictionaryName, batchDictionaryEntriesParams, }: BatchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
197
- /**
198
- * This method allows you to retrieve all index content. It can retrieve up to 1,000 records per call and supports full text search and filters. For performance reasons, some features are not supported, including `distinct`, sorting by `typos`, `words` or `geo distance`. When there is more content to be browsed, the response contains a cursor field. This cursor has to be passed to the subsequent call to browse in order to get the next page of results. When the end of the index has been reached, the cursor field is absent from the response.
199
- *
200
- * @summary Retrieve all index content.
201
- * @param browse - The browse object.
202
- * @param browse.indexName - The index in which to perform the request.
203
- * @param browse.browseParams - The browseParams object.
204
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
205
- */
206
- browse<T_1>({ indexName, browseParams }: BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T_1>>;
207
- /**
208
- * Remove all synonyms from an index.
209
- *
210
- * @summary Clear all synonyms.
211
- * @param clearAllSynonyms - The clearAllSynonyms object.
212
- * @param clearAllSynonyms.indexName - The index in which to perform the request.
213
- * @param clearAllSynonyms.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
214
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
215
- */
216
- clearAllSynonyms({ indexName, forwardToReplicas }: ClearAllSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
217
- /**
218
- * Delete an index\'s content, but leave settings and index-specific API keys untouched.
219
- *
220
- * @summary Clear all objects from an index.
221
- * @param clearObjects - The clearObjects object.
222
- * @param clearObjects.indexName - The index in which to perform the request.
223
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
224
- */
225
- clearObjects({ indexName }: ClearObjectsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
226
- /**
227
- * Delete all Rules in the index.
228
- *
229
- * @summary Clear Rules.
230
- * @param clearRules - The clearRules object.
231
- * @param clearRules.indexName - The index in which to perform the request.
232
- * @param clearRules.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
233
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
234
- */
235
- clearRules({ indexName, forwardToReplicas }: ClearRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
236
- /**
237
- * This method allow you to send requests to the Algolia REST API.
238
- *
239
- * @summary Send requests to the Algolia REST API.
240
- * @param del - The del object.
241
- * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
242
- * @param del.parameters - Query parameters to be applied to the current query.
243
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
244
- */
245
- del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
246
- /**
247
- * Delete an existing API Key.
248
- *
249
- * @summary Delete an API key.
250
- * @param deleteApiKey - The deleteApiKey object.
251
- * @param deleteApiKey.key - API Key string.
252
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
253
- */
254
- deleteApiKey({ key }: DeleteApiKeyProps, requestOptions?: RequestOptions): Promise<DeleteApiKeyResponse>;
255
- /**
256
- * Remove all objects matching a filter (including geo filters). This method enables you to delete one or more objects based on filters (numeric, facet, tag or geo queries). It doesn\'t accept empty filters or a query.
257
- *
258
- * @summary Delete all records matching the query.
259
- * @param deleteBy - The deleteBy object.
260
- * @param deleteBy.indexName - The index in which to perform the request.
261
- * @param deleteBy.searchParams - The searchParams object.
262
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
263
- */
264
- deleteBy({ indexName, searchParams }: DeleteByProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
265
- /**
266
- * Delete an existing index.
267
- *
268
- * @summary Delete index.
269
- * @param deleteIndex - The deleteIndex object.
270
- * @param deleteIndex.indexName - The index in which to perform the request.
271
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
272
- */
273
- deleteIndex({ indexName }: DeleteIndexProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
274
- /**
275
- * Delete an existing object.
276
- *
277
- * @summary Delete an object.
278
- * @param deleteObject - The deleteObject object.
279
- * @param deleteObject.indexName - The index in which to perform the request.
280
- * @param deleteObject.objectID - Unique identifier of an object.
281
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
282
- */
283
- deleteObject({ indexName, objectID }: DeleteObjectProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
284
- /**
285
- * Delete the Rule with the specified objectID.
286
- *
287
- * @summary Delete a rule.
288
- * @param deleteRule - The deleteRule object.
289
- * @param deleteRule.indexName - The index in which to perform the request.
290
- * @param deleteRule.objectID - Unique identifier of an object.
291
- * @param deleteRule.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
292
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
293
- */
294
- deleteRule({ indexName, objectID, forwardToReplicas }: DeleteRuleProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
295
- /**
296
- * Remove a single source from the list of allowed sources.
297
- *
298
- * @summary Remove a single source.
299
- * @param deleteSource - The deleteSource object.
300
- * @param deleteSource.source - The IP range of the source.
301
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
302
- */
303
- deleteSource({ source }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteSourceResponse>;
304
- /**
305
- * Delete a single synonyms set, identified by the given objectID.
306
- *
307
- * @summary Delete synonym.
308
- * @param deleteSynonym - The deleteSynonym object.
309
- * @param deleteSynonym.indexName - The index in which to perform the request.
310
- * @param deleteSynonym.objectID - Unique identifier of an object.
311
- * @param deleteSynonym.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
312
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
313
- */
314
- deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
315
- /**
316
- * This method allow you to send requests to the Algolia REST API.
317
- *
318
- * @summary Send requests to the Algolia REST API.
319
- * @param get - The get object.
320
- * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
321
- * @param get.parameters - Query parameters to be applied to the current query.
322
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
323
- */
324
- get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
325
- /**
326
- * Get the permissions of an API key.
327
- *
328
- * @summary Get an API key.
329
- * @param getApiKey - The getApiKey object.
330
- * @param getApiKey.key - API Key string.
331
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
332
- */
333
- getApiKey({ key }: GetApiKeyProps, requestOptions?: RequestOptions): Promise<GetApiKeyResponse>;
334
- /**
335
- * List dictionaries supported per language.
336
- *
337
- * @summary List available languages.
338
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
339
- */
340
- getDictionaryLanguages(requestOptions?: RequestOptions): Promise<Record<string, Languages>>;
341
- /**
342
- * Retrieve dictionaries settings. The API stores languages whose standard entries are disabled. Fetch settings does not return false values.
343
- *
344
- * @summary Retrieve dictionaries settings.
345
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
346
- */
347
- getDictionarySettings(requestOptions?: RequestOptions): Promise<GetDictionarySettingsResponse>;
348
- /**
349
- * Return the latest log entries.
350
- *
351
- * @summary Return the latest log entries.
352
- * @param getLogs - The getLogs object.
353
- * @param getLogs.offset - First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry.
354
- * @param getLogs.length - Maximum number of entries to retrieve. The maximum allowed value is 1000.
355
- * @param getLogs.indexName - Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices.
356
- * @param getLogs.type - Type of log entries to retrieve. When omitted, all log entries are retrieved.
357
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
358
- */
359
- getLogs({ offset, length, indexName, type }?: GetLogsProps, requestOptions?: RequestOptions | undefined): Promise<GetLogsResponse>;
360
- /**
361
- * Retrieve one object from the index.
362
- *
363
- * @summary Retrieve an object.
364
- * @param getObject - The getObject object.
365
- * @param getObject.indexName - The index in which to perform the request.
366
- * @param getObject.objectID - Unique identifier of an object.
367
- * @param getObject.attributesToRetrieve - List of attributes to retrieve. If not specified, all retrievable attributes are returned.
368
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
369
- */
370
- getObject({ indexName, objectID, attributesToRetrieve }: GetObjectProps, requestOptions?: RequestOptions): Promise<Record<string, string>>;
371
- /**
372
- * Retrieve one or more objects, potentially from different indices, in a single API call.
373
- *
374
- * @summary Retrieve one or more objects.
375
- * @param getObjectsParams - The Algolia object.
376
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
377
- */
378
- getObjects<T_2>(getObjectsParams: GetObjectsParams, requestOptions?: RequestOptions): Promise<GetObjectsResponse<T_2>>;
379
- /**
380
- * Retrieve the Rule with the specified objectID.
381
- *
382
- * @summary Get a rule.
383
- * @param getRule - The getRule object.
384
- * @param getRule.indexName - The index in which to perform the request.
385
- * @param getRule.objectID - Unique identifier of an object.
386
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
387
- */
388
- getRule({ indexName, objectID }: GetRuleProps, requestOptions?: RequestOptions): Promise<Rule>;
389
- /**
390
- * Retrieve settings of an index.
391
- *
392
- * @summary Retrieve settings of an index.
393
- * @param getSettings - The getSettings object.
394
- * @param getSettings.indexName - The index in which to perform the request.
395
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
396
- */
397
- getSettings({ indexName }: GetSettingsProps, requestOptions?: RequestOptions): Promise<IndexSettings>;
398
- /**
399
- * List all allowed sources.
400
- *
401
- * @summary List all allowed sources.
402
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
403
- */
404
- getSources(requestOptions?: RequestOptions): Promise<Source[]>;
405
- /**
406
- * Fetch a synonym object identified by its objectID.
407
- *
408
- * @summary Get synonym.
409
- * @param getSynonym - The getSynonym object.
410
- * @param getSynonym.indexName - The index in which to perform the request.
411
- * @param getSynonym.objectID - Unique identifier of an object.
412
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
413
- */
414
- getSynonym({ indexName, objectID }: GetSynonymProps, requestOptions?: RequestOptions): Promise<SynonymHit>;
415
- /**
416
- * Check the current status of a given task.
417
- *
418
- * @summary Check the status of a task.
419
- * @param getTask - The getTask object.
420
- * @param getTask.indexName - The index in which to perform the request.
421
- * @param getTask.taskID - Unique identifier of an task. Numeric value (up to 64bits).
422
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
423
- */
424
- getTask({ indexName, taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
425
- /**
426
- * Get the top 10 userIDs with the highest number of records per cluster. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following array of userIDs and clusters.
427
- *
428
- * @summary Get top userID.
429
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
430
- */
431
- getTopUserIds(requestOptions?: RequestOptions): Promise<GetTopUserIdsResponse>;
432
- /**
433
- * Returns the userID data stored in the mapping. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userID data.
434
- *
435
- * @summary Get userID.
436
- * @param getUserId - The getUserId object.
437
- * @param getUserId.userID - UserID to assign.
438
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
439
- */
440
- getUserId({ userID }: GetUserIdProps, requestOptions?: RequestOptions): Promise<UserId>;
441
- /**
442
- * Get the status of your clusters\' migrations or user creations. Creating a large batch of users or migrating your multi-cluster may take quite some time. This method lets you retrieve the status of the migration, so you can know when it\'s done. Upon success, the response is 200 OK. A successful response indicates that the operation has been taken into account, and the userIDs are directly usable.
443
- *
444
- * @summary Get migration status.
445
- * @param hasPendingMappings - The hasPendingMappings object.
446
- * @param hasPendingMappings.getClusters - If the clusters pending mapping state should be on the response.
447
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
448
- */
449
- hasPendingMappings({ getClusters }?: HasPendingMappingsProps, requestOptions?: RequestOptions | undefined): Promise<HasPendingMappingsResponse>;
450
- /**
451
- * List API keys, along with their associated rights.
452
- *
453
- * @summary List API Keys.
454
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
455
- */
456
- listApiKeys(requestOptions?: RequestOptions): Promise<ListApiKeysResponse>;
457
- /**
458
- * List the clusters available in a multi-clusters setup for a single appID. Upon success, the response is 200 OK and contains the following clusters.
459
- *
460
- * @summary List clusters.
461
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
462
- */
463
- listClusters(requestOptions?: RequestOptions): Promise<ListClustersResponse>;
464
- /**
465
- * List existing indexes from an application.
466
- *
467
- * @summary List existing indexes.
468
- * @param listIndices - The listIndices object.
469
- * @param listIndices.page - Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
470
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
471
- */
472
- listIndices({ page }?: ListIndicesProps, requestOptions?: RequestOptions | undefined): Promise<ListIndicesResponse>;
473
- /**
474
- * List the userIDs assigned to a multi-clusters appID. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds to propagate to the different clusters. Upon success, the response is 200 OK and contains the following userIDs data.
475
- *
476
- * @summary List userIDs.
477
- * @param listUserIds - The listUserIds object.
478
- * @param listUserIds.page - Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
479
- * @param listUserIds.hitsPerPage - Maximum number of objects to retrieve.
480
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
481
- */
482
- listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
483
- /**
484
- * Perform multiple write operations, potentially targeting multiple indices, in a single API call.
485
- *
486
- * @summary Batch operations to many indices.
487
- * @param batchParams - The batchParams object.
488
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
489
- */
490
- multipleBatch(batchParams: BatchParams, requestOptions?: RequestOptions): Promise<MultipleBatchResponse>;
491
- /**
492
- * Performs a copy or a move operation on a index.
493
- *
494
- * @summary Copy/move index.
495
- * @param operationIndex - The operationIndex object.
496
- * @param operationIndex.indexName - The index in which to perform the request.
497
- * @param operationIndex.operationIndexParams - The operationIndexParams object.
498
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
499
- */
500
- operationIndex({ indexName, operationIndexParams }: OperationIndexProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
501
- /**
502
- * Update one or more attributes of an existing object. This method lets you update only a part of an existing object, either by adding new attributes or updating existing ones. You can partially update several objects in a single method call. If the index targeted by this operation doesn\'t exist yet, it\'s automatically created.
503
- *
504
- * @summary Partially update an object.
505
- * @param partialUpdateObject - The partialUpdateObject object.
506
- * @param partialUpdateObject.indexName - The index in which to perform the request.
507
- * @param partialUpdateObject.objectID - Unique identifier of an object.
508
- * @param partialUpdateObject.attributesToUpdate - Map of attribute(s) to update.
509
- * @param partialUpdateObject.createIfNotExists - Creates the record if it does not exist yet.
510
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
511
- */
512
- partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }: PartialUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
513
- /**
514
- * This method allow you to send requests to the Algolia REST API.
515
- *
516
- * @summary Send requests to the Algolia REST API.
517
- * @param post - The post object.
518
- * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
519
- * @param post.parameters - Query parameters to be applied to the current query.
520
- * @param post.body - The parameters to send with the custom request.
521
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
522
- */
523
- post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
524
- /**
525
- * This method allow you to send requests to the Algolia REST API.
526
- *
527
- * @summary Send requests to the Algolia REST API.
528
- * @param put - The put object.
529
- * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
530
- * @param put.parameters - Query parameters to be applied to the current query.
531
- * @param put.body - The parameters to send with the custom request.
532
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
533
- */
534
- put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
535
- /**
536
- * Remove a userID and its associated data from the multi-clusters. Upon success, the response is 200 OK and a task is created to remove the userID data and mapping.
537
- *
538
- * @summary Remove userID.
539
- * @param removeUserId - The removeUserId object.
540
- * @param removeUserId.userID - UserID to assign.
541
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
542
- */
543
- removeUserId({ userID }: RemoveUserIdProps, requestOptions?: RequestOptions): Promise<RemoveUserIdResponse>;
544
- /**
545
- * Replace all allowed sources.
546
- *
547
- * @summary Replace all allowed sources.
548
- * @param replaceSources - The replaceSources object.
549
- * @param replaceSources.source - The sources to allow.
550
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
551
- */
552
- replaceSources({ source }: ReplaceSourcesProps, requestOptions?: RequestOptions): Promise<ReplaceSourceResponse>;
553
- /**
554
- * Restore a deleted API key, along with its associated rights.
555
- *
556
- * @summary Restore an API key.
557
- * @param restoreApiKey - The restoreApiKey object.
558
- * @param restoreApiKey.key - API Key string.
559
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
560
- */
561
- restoreApiKey({ key }: RestoreApiKeyProps, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
562
- /**
563
- * Add an object to the index, automatically assigning it an object ID.
564
- *
565
- * @summary Add an object to the index.
566
- * @param saveObject - The saveObject object.
567
- * @param saveObject.indexName - The index in which to perform the request.
568
- * @param saveObject.body - The Algolia record.
569
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
570
- */
571
- saveObject({ indexName, body }: SaveObjectProps, requestOptions?: RequestOptions): Promise<SaveObjectResponse>;
572
- /**
573
- * Create or update the Rule with the specified objectID.
574
- *
575
- * @summary Save/Update a rule.
576
- * @param saveRule - The saveRule object.
577
- * @param saveRule.indexName - The index in which to perform the request.
578
- * @param saveRule.objectID - Unique identifier of an object.
579
- * @param saveRule.rule - The rule object.
580
- * @param saveRule.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
581
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
582
- */
583
- saveRule({ indexName, objectID, rule, forwardToReplicas }: SaveRuleProps, requestOptions?: RequestOptions): Promise<UpdatedRuleResponse>;
584
- /**
585
- * Create/update multiple rules objects at once.
586
- *
587
- * @summary Save a batch of rules.
588
- * @param saveRules - The saveRules object.
589
- * @param saveRules.indexName - The index in which to perform the request.
590
- * @param saveRules.rules - The rules object.
591
- * @param saveRules.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
592
- * @param saveRules.clearExistingRules - When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
593
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
594
- */
595
- saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }: SaveRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
596
- /**
597
- * Create a new synonym object or update the existing synonym object with the given object ID.
598
- *
599
- * @summary Save synonym.
600
- * @param saveSynonym - The saveSynonym object.
601
- * @param saveSynonym.indexName - The index in which to perform the request.
602
- * @param saveSynonym.objectID - Unique identifier of an object.
603
- * @param saveSynonym.synonymHit - The synonymHit object.
604
- * @param saveSynonym.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
605
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
606
- */
607
- saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }: SaveSynonymProps, requestOptions?: RequestOptions): Promise<SaveSynonymResponse>;
608
- /**
609
- * Create/update multiple synonym objects at once, potentially replacing the entire list of synonyms if replaceExistingSynonyms is true.
610
- *
611
- * @summary Save a batch of synonyms.
612
- * @param saveSynonyms - The saveSynonyms object.
613
- * @param saveSynonyms.indexName - The index in which to perform the request.
614
- * @param saveSynonyms.synonymHit - The synonymHit object.
615
- * @param saveSynonyms.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
616
- * @param saveSynonyms.replaceExistingSynonyms - Replace all synonyms of the index with the ones sent with this request.
617
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
618
- */
619
- saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
620
- /**
621
- * Perform a search operation targeting one or many indices.
622
- *
623
- * @summary Search multiple indices.
624
- * @param searchMethodParams - The `search` requests and strategy.
625
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
626
- */
627
- search<T_3>(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<SearchResponses<T_3>>;
628
- /**
629
- * Search the dictionary entries.
630
- *
631
- * @summary Search a dictionary entries.
632
- * @param searchDictionaryEntries - The searchDictionaryEntries object.
633
- * @param searchDictionaryEntries.dictionaryName - The dictionary to search in.
634
- * @param searchDictionaryEntries.searchDictionaryEntriesParams - The searchDictionaryEntriesParams object.
635
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
636
- */
637
- searchDictionaryEntries({ dictionaryName, searchDictionaryEntriesParams, }: SearchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
638
- /**
639
- * Search for values of a given facet, optionally restricting the returned values to those contained in objects matching other search criteria.
640
- *
641
- * @summary Search for values of a given facet.
642
- * @param searchForFacetValues - The searchForFacetValues object.
643
- * @param searchForFacetValues.indexName - The index in which to perform the request.
644
- * @param searchForFacetValues.facetName - The facet name.
645
- * @param searchForFacetValues.searchForFacetValuesRequest - The searchForFacetValuesRequest object.
646
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
647
- */
648
- searchForFacetValues({ indexName, facetName, searchForFacetValuesRequest, }: SearchForFacetValuesProps, requestOptions?: RequestOptions): Promise<SearchForFacetValuesResponse>;
649
- /**
650
- * Search for rules matching various criteria.
651
- *
652
- * @summary Search for rules.
653
- * @param searchRules - The searchRules object.
654
- * @param searchRules.indexName - The index in which to perform the request.
655
- * @param searchRules.searchRulesParams - The searchRulesParams object.
656
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
657
- */
658
- searchRules({ indexName, searchRulesParams }: SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
659
- /**
660
- * Perform a search operation targeting one specific index.
661
- *
662
- * @summary Search in a single index.
663
- * @param searchSingleIndex - The searchSingleIndex object.
664
- * @param searchSingleIndex.indexName - The index in which to perform the request.
665
- * @param searchSingleIndex.searchParams - The searchParams object.
666
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
667
- */
668
- searchSingleIndex<T_4>({ indexName, searchParams }: SearchSingleIndexProps, requestOptions?: RequestOptions): Promise<SearchResponse<T_4>>;
669
- /**
670
- * Search or browse all synonyms, optionally filtering them by type.
671
- *
672
- * @summary Search synonyms.
673
- * @param searchSynonyms - The searchSynonyms object.
674
- * @param searchSynonyms.indexName - The index in which to perform the request.
675
- * @param searchSynonyms.type - Only search for specific types of synonyms.
676
- * @param searchSynonyms.page - Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
677
- * @param searchSynonyms.hitsPerPage - Maximum number of objects to retrieve.
678
- * @param searchSynonyms.searchSynonymsParams - The body of the the `searchSynonyms` method.
679
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
680
- */
681
- searchSynonyms({ indexName, type, page, hitsPerPage, searchSynonymsParams, }: SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
682
- /**
683
- * Search for userIDs. The data returned will usually be a few seconds behind real time, because userID usage may take up to a few seconds propagate to the different clusters. To keep updates moving quickly, the index of userIDs isn\'t built synchronously with the mapping. Instead, the index is built once every 12h, at the same time as the update of userID usage. For example, when you perform a modification like adding or moving a userID, the search will report an outdated value until the next rebuild of the mapping, which takes place every 12h. Upon success, the response is 200 OK and contains the following userIDs data.
684
- *
685
- * @summary Search userID.
686
- * @param searchUserIdsParams - The searchUserIdsParams object.
687
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
688
- */
689
- searchUserIds(searchUserIdsParams: SearchUserIdsParams, requestOptions?: RequestOptions): Promise<SearchUserIdsResponse>;
690
- /**
691
- * Set dictionaries settings.
692
- *
693
- * @summary Set dictionaries settings.
694
- * @param dictionarySettingsParams - The dictionarySettingsParams object.
695
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
696
- */
697
- setDictionarySettings(dictionarySettingsParams: DictionarySettingsParams, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
698
- /**
699
- * Update settings of an index. Only specified settings are overridden; unspecified settings are left unchanged. Specifying null for a setting resets it to its default value.
700
- *
701
- * @summary Update settings of an index.
702
- * @param setSettings - The setSettings object.
703
- * @param setSettings.indexName - The index in which to perform the request.
704
- * @param setSettings.indexSettings - The indexSettings object.
705
- * @param setSettings.forwardToReplicas - When true, changes are also propagated to replicas of the given indexName.
706
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
707
- */
708
- setSettings({ indexName, indexSettings, forwardToReplicas }: SetSettingsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
709
- /**
710
- * Replace every permission of an existing API key.
711
- *
712
- * @summary Update an API key.
713
- * @param updateApiKey - The updateApiKey object.
714
- * @param updateApiKey.key - API Key string.
715
- * @param updateApiKey.apiKey - The apiKey object.
716
- * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
717
- */
718
- updateApiKey({ key, apiKey }: UpdateApiKeyProps, requestOptions?: RequestOptions): Promise<UpdateApiKeyResponse>;
719
- };
720
- /**
721
- * The client type.
722
- */
723
- export declare type SearchClient = ReturnType<typeof createSearchClient>;
1
+ import type { CreateClientOptions, RequestOptions, ApiError } from '@algolia/client-common';
2
+ import type { AddApiKeyResponse } from '../model/addApiKeyResponse';
3
+ import type { ApiKey } from '../model/apiKey';
4
+ import type { BatchParams } from '../model/batchParams';
5
+ import type { BatchResponse } from '../model/batchResponse';
6
+ import type { BrowseResponse } from '../model/browseResponse';
7
+ import type { BrowseOptions, ChunkedBatchOptions, ReplaceAllObjectsOptions, ReplaceAllObjectsResponse, WaitForApiKeyOptions, WaitForTaskOptions, AddOrUpdateObjectProps, AssignUserIdProps, BatchProps, BatchAssignUserIdsProps, BatchDictionaryEntriesProps, BrowseProps, ClearObjectsProps, ClearRulesProps, ClearSynonymsProps, CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteApiKeyProps, DeleteByProps, DeleteIndexProps, DeleteObjectProps, DeleteRuleProps, DeleteSourceProps, DeleteSynonymProps, GetApiKeyProps, GetLogsProps, GetObjectProps, GetRuleProps, GetSettingsProps, GetSynonymProps, GetTaskProps, GetUserIdProps, HasPendingMappingsProps, ListIndicesProps, ListUserIdsProps, OperationIndexProps, PartialUpdateObjectProps, RemoveUserIdProps, ReplaceSourcesProps, RestoreApiKeyProps, SaveObjectProps, SaveRuleProps, SaveRulesProps, SaveSynonymProps, SaveSynonymsProps, LegacySearchMethodProps, SearchDictionaryEntriesProps, SearchForFacetValuesProps, SearchRulesProps, SearchSingleIndexProps, SearchSynonymsProps, SetSettingsProps, UpdateApiKeyProps } from '../model/clientMethodProps';
8
+ import type { CreatedAtResponse } from '../model/createdAtResponse';
9
+ import type { DeleteApiKeyResponse } from '../model/deleteApiKeyResponse';
10
+ import type { DeleteSourceResponse } from '../model/deleteSourceResponse';
11
+ import type { DeletedAtResponse } from '../model/deletedAtResponse';
12
+ import type { DictionarySettingsParams } from '../model/dictionarySettingsParams';
13
+ import type { GetApiKeyResponse } from '../model/getApiKeyResponse';
14
+ import type { GetDictionarySettingsResponse } from '../model/getDictionarySettingsResponse';
15
+ import type { GetLogsResponse } from '../model/getLogsResponse';
16
+ import type { GetObjectsParams } from '../model/getObjectsParams';
17
+ import type { GetObjectsResponse } from '../model/getObjectsResponse';
18
+ import type { GetTaskResponse } from '../model/getTaskResponse';
19
+ import type { GetTopUserIdsResponse } from '../model/getTopUserIdsResponse';
20
+ import type { HasPendingMappingsResponse } from '../model/hasPendingMappingsResponse';
21
+ import type { IndexSettings } from '../model/indexSettings';
22
+ import type { Languages } from '../model/languages';
23
+ import type { ListApiKeysResponse } from '../model/listApiKeysResponse';
24
+ import type { ListClustersResponse } from '../model/listClustersResponse';
25
+ import type { ListIndicesResponse } from '../model/listIndicesResponse';
26
+ import type { ListUserIdsResponse } from '../model/listUserIdsResponse';
27
+ import type { MultipleBatchResponse } from '../model/multipleBatchResponse';
28
+ import type { RemoveUserIdResponse } from '../model/removeUserIdResponse';
29
+ import type { ReplaceSourceResponse } from '../model/replaceSourceResponse';
30
+ import type { Rule } from '../model/rule';
31
+ import type { SaveObjectResponse } from '../model/saveObjectResponse';
32
+ import type { SaveSynonymResponse } from '../model/saveSynonymResponse';
33
+ import type { SearchDictionaryEntriesResponse } from '../model/searchDictionaryEntriesResponse';
34
+ import type { SearchForFacetValuesResponse } from '../model/searchForFacetValuesResponse';
35
+ import type { SearchMethodParams } from '../model/searchMethodParams';
36
+ import type { SearchResponse } from '../model/searchResponse';
37
+ import type { SearchResponses } from '../model/searchResponses';
38
+ import type { SearchRulesResponse } from '../model/searchRulesResponse';
39
+ import type { SearchSynonymsResponse } from '../model/searchSynonymsResponse';
40
+ import type { SearchUserIdsParams } from '../model/searchUserIdsParams';
41
+ import type { SearchUserIdsResponse } from '../model/searchUserIdsResponse';
42
+ import type { Source } from '../model/source';
43
+ import type { SynonymHit } from '../model/synonymHit';
44
+ import type { UpdateApiKeyResponse } from '../model/updateApiKeyResponse';
45
+ import type { UpdatedAtResponse } from '../model/updatedAtResponse';
46
+ import type { UpdatedAtWithObjectIdResponse } from '../model/updatedAtWithObjectIdResponse';
47
+ import type { UpdatedRuleResponse } from '../model/updatedRuleResponse';
48
+ import type { UserId } from '../model/userId';
49
+ export declare const apiClientVersion = "5.0.0-alpha.110";
50
+ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
51
+ transporter: import("@algolia/client-common").Transporter;
52
+ /**
53
+ * The `appId` currently in use.
54
+ */
55
+ appId: string;
56
+ /**
57
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
58
+ */
59
+ clearCache(): Promise<void>;
60
+ /**
61
+ * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
62
+ */
63
+ readonly _ua: string;
64
+ /**
65
+ * Adds a `segment` to the `x-algolia-agent` sent with every requests.
66
+ *
67
+ * @param segment - The algolia agent (user-agent) segment to add.
68
+ * @param version - The version of the agent.
69
+ */
70
+ addAlgoliaAgent(segment: string, version?: string): void;
71
+ /**
72
+ * Helper: Wait for a task to be published (completed) for a given `indexName` and `taskID`.
73
+ *
74
+ * @summary Helper method that waits for a task to be published (completed).
75
+ * @param waitForTaskOptions - The `waitForTaskOptions` object.
76
+ * @param waitForTaskOptions.indexName - The `indexName` where the operation was performed.
77
+ * @param waitForTaskOptions.taskID - The `taskID` returned in the method response.
78
+ * @param waitForTaskOptions.maxRetries - The maximum number of retries. 50 by default.
79
+ * @param waitForTaskOptions.timeout - The function to decide how long to wait between retries.
80
+ * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
81
+ */
82
+ waitForTask({ indexName, taskID, maxRetries, timeout, }: WaitForTaskOptions, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
83
+ /**
84
+ * Helper: Wait for an API key to be added, updated or deleted based on a given `operation`.
85
+ *
86
+ * @summary Helper method that waits for an API key task to be processed.
87
+ * @param waitForApiKeyOptions - The `waitForApiKeyOptions` object.
88
+ * @param waitForApiKeyOptions.operation - The `operation` that was done on a `key`.
89
+ * @param waitForApiKeyOptions.key - The `key` that has been added, deleted or updated.
90
+ * @param waitForApiKeyOptions.apiKey - Necessary to know if an `update` operation has been processed, compare fields of the response with it.
91
+ * @param waitForApiKeyOptions.maxRetries - The maximum number of retries. 50 by default.
92
+ * @param waitForApiKeyOptions.timeout - The function to decide how long to wait between retries.
93
+ * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getApikey` method and merged with the transporter requestOptions.
94
+ */
95
+ waitForApiKey({ operation, key, apiKey, maxRetries, timeout, }: WaitForApiKeyOptions, requestOptions?: RequestOptions): Promise<ApiError | GetApiKeyResponse>;
96
+ /**
97
+ * Helper: Iterate on the `browse` method of the client to allow aggregating objects of an index.
98
+ *
99
+ * @summary Helper method that iterates on the `browse` method.
100
+ * @param browseObjects - The `browseObjects` object.
101
+ * @param browseObjects.indexName - The index in which to perform the request.
102
+ * @param browseObjects.browseParams - The `browse` parameters.
103
+ * @param browseObjects.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is no `cursor` in the response.
104
+ * @param browseObjects.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
105
+ * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `browse` method and merged with the transporter requestOptions.
106
+ */
107
+ browseObjects<T>({ indexName, browseParams, ...browseObjectsOptions }: BrowseOptions<BrowseResponse<T>> & BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T>>;
108
+ /**
109
+ * Helper: Iterate on the `searchRules` method of the client to allow aggregating rules of an index.
110
+ *
111
+ * @summary Helper method that iterates on the `searchRules` method.
112
+ * @param browseRules - The `browseRules` object.
113
+ * @param browseRules.indexName - The index in which to perform the request.
114
+ * @param browseRules.searchRulesParams - The `searchRules` method parameters.
115
+ * @param browseRules.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
116
+ * @param browseRules.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
117
+ * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchRules` method and merged with the transporter requestOptions.
118
+ */
119
+ browseRules({ indexName, searchRulesParams, ...browseRulesOptions }: BrowseOptions<SearchRulesResponse> & SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
120
+ /**
121
+ * Helper: Iterate on the `searchSynonyms` method of the client to allow aggregating rules of an index.
122
+ *
123
+ * @summary Helper method that iterates on the `searchSynonyms` method.
124
+ * @param browseSynonyms - The `browseSynonyms` object.
125
+ * @param browseSynonyms.indexName - The index in which to perform the request.
126
+ * @param browseSynonyms.validate - The validator function. It receive the resolved return of the API call. By default, stops when there is less hits returned than the number of maximum hits (1000).
127
+ * @param browseSynonyms.aggregator - The function that runs right after the API call has been resolved, allows you to do anything with the response before `validate`.
128
+ * @param browseSynonyms.searchSynonymsParams - The `searchSynonyms` method parameters.
129
+ * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `searchSynonyms` method and merged with the transporter requestOptions.
130
+ */
131
+ browseSynonyms({ indexName, searchSynonymsParams, ...browseSynonymsOptions }: BrowseOptions<SearchSynonymsResponse> & SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
132
+ /**
133
+ * Helper: calls the `search` method but with certainty that we will only request Algolia records (hits) and not facets.
134
+ * Disclaimer: We don't assert that the parameters you pass to this method only contains `hits` requests to prevent impacting search performances, this helper is purely for typing purposes.
135
+ *
136
+ * @summary Search multiple indices for `hits`.
137
+ * @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
138
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
139
+ */
140
+ searchForHits<T_1>(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<{
141
+ results: SearchResponse<T_1>[];
142
+ }>;
143
+ /**
144
+ * Helper: calls the `search` method but with certainty that we will only request Algolia facets and not records (hits).
145
+ * Disclaimer: We don't assert that the parameters you pass to this method only contains `facets` requests to prevent impacting search performances, this helper is purely for typing purposes.
146
+ *
147
+ * @summary Search multiple indices for `facets`.
148
+ * @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
149
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
150
+ */
151
+ searchForFacets(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<{
152
+ results: SearchForFacetValuesResponse[];
153
+ }>;
154
+ /**
155
+ * Helper: Chunks the given `objects` list in subset of 1000 elements max in order to make it fit in `batch` requests.
156
+ *
157
+ * @summary Helper: Chunks the given `objects` list in subset of 1000 elements max in order to make it fit in `batch` requests.
158
+ * @param chunkedBatch - The `chunkedBatch` object.
159
+ * @param chunkedBatch.indexName - The `indexName` to replace `objects` in.
160
+ * @param chunkedBatch.objects - The array of `objects` to store in the given Algolia `indexName`.
161
+ * @param chunkedBatch.action - The `batch` `action` to perform on the given array of `objects`, defaults to `addObject`.
162
+ * @param chunkedBatch.waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
163
+ * @param chunkedBatch.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
164
+ * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
165
+ */
166
+ chunkedBatch({ indexName, objects, action, waitForTasks, batchSize, }: ChunkedBatchOptions, requestOptions?: RequestOptions): Promise<BatchResponse[]>;
167
+ /**
168
+ * Helper: Replaces all objects (records) in the given `index_name` with the given `objects`. A temporary index is created during this process in order to backup your data.
169
+ *
170
+ * @summary Helper: Replaces all objects (records) in the given `index_name` with the given `objects`. A temporary index is created during this process in order to backup your data.
171
+ * @param replaceAllObjects - The `replaceAllObjects` object.
172
+ * @param replaceAllObjects.indexName - The `indexName` to replace `objects` in.
173
+ * @param replaceAllObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
174
+ * @param replaceAllObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
175
+ * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
176
+ */
177
+ replaceAllObjects({ indexName, objects, batchSize }: ReplaceAllObjectsOptions, requestOptions?: RequestOptions): Promise<ReplaceAllObjectsResponse>;
178
+ /**
179
+ * Creates a new API key with specific permissions and restrictions.
180
+ *
181
+ * Required API Key ACLs:
182
+ * - admin.
183
+ *
184
+ * @param apiKey - The apiKey object.
185
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
186
+ */
187
+ addApiKey(apiKey: ApiKey, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
188
+ /**
189
+ * If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
190
+ *
191
+ * Required API Key ACLs:
192
+ * - addObject.
193
+ *
194
+ * @param addOrUpdateObject - The addOrUpdateObject object.
195
+ * @param addOrUpdateObject.indexName - Name of the index on which to perform the operation.
196
+ * @param addOrUpdateObject.objectID - Unique record identifier.
197
+ * @param addOrUpdateObject.body - The record, a schemaless object with attributes that are useful in the context of search and discovery.
198
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
199
+ */
200
+ addOrUpdateObject({ indexName, objectID, body }: AddOrUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
201
+ /**
202
+ * Adds a source to the list of allowed sources.
203
+ *
204
+ * Required API Key ACLs:
205
+ * - admin.
206
+ *
207
+ * @param source - Source to add.
208
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
209
+ */
210
+ appendSource(source: Source, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
211
+ /**
212
+ * Assigns or moves a user ID to a cluster. The time it takes to move a user is proportional to the amount of data linked to the user ID.
213
+ *
214
+ * Required API Key ACLs:
215
+ * - admin.
216
+ *
217
+ * @param assignUserId - The assignUserId object.
218
+ * @param assignUserId.xAlgoliaUserID - User ID to assign.
219
+ * @param assignUserId.assignUserIdParams - The assignUserIdParams object.
220
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
221
+ */
222
+ assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
223
+ /**
224
+ * Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they\'re specified. - Actions are equivalent to the individual API requests of the same name.
225
+ *
226
+ * @param batch - The batch object.
227
+ * @param batch.indexName - Name of the index on which to perform the operation.
228
+ * @param batch.batchWriteParams - The batchWriteParams object.
229
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
230
+ */
231
+ batch({ indexName, batchWriteParams }: BatchProps, requestOptions?: RequestOptions): Promise<BatchResponse>;
232
+ /**
233
+ * Assigns multiple user IDs to a cluster. **You can\'t move users with this operation**.
234
+ *
235
+ * Required API Key ACLs:
236
+ * - admin.
237
+ *
238
+ * @param batchAssignUserIds - The batchAssignUserIds object.
239
+ * @param batchAssignUserIds.xAlgoliaUserID - User ID to assign.
240
+ * @param batchAssignUserIds.batchAssignUserIdsParams - The batchAssignUserIdsParams object.
241
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
242
+ */
243
+ batchAssignUserIds({ xAlgoliaUserID, batchAssignUserIdsParams }: BatchAssignUserIdsProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
244
+ /**
245
+ * Adds or deletes multiple entries from your plurals, segmentation, or stop word dictionaries.
246
+ *
247
+ * Required API Key ACLs:
248
+ * - editSettings.
249
+ *
250
+ * @param batchDictionaryEntries - The batchDictionaryEntries object.
251
+ * @param batchDictionaryEntries.dictionaryName - Dictionary type in which to search.
252
+ * @param batchDictionaryEntries.batchDictionaryEntriesParams - The batchDictionaryEntriesParams object.
253
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
254
+ */
255
+ batchDictionaryEntries({ dictionaryName, batchDictionaryEntriesParams, }: BatchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
256
+ /**
257
+ * Retrieves records from an index, up to 1,000 per request. While searching retrieves _hits_ (records augmented with attributes for highlighting and ranking details), browsing _just_ returns matching records. This can be useful if you want to export your indices. - The Analytics API doesn\'t collect data when using `browse`. - Records are ranked by attributes and custom ranking. - Deduplication (`distinct`) is turned off. - There\'s no ranking for: typo-tolerance, number of matched words, proximity, geo distance.
258
+ *
259
+ * Required API Key ACLs:
260
+ * - browse.
261
+ *
262
+ * @param browse - The browse object.
263
+ * @param browse.indexName - Name of the index on which to perform the operation.
264
+ * @param browse.browseParams - The browseParams object.
265
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
266
+ */
267
+ browse<T_2>({ indexName, browseParams }: BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T_2>>;
268
+ /**
269
+ * Deletes only the records from an index while keeping settings, synonyms, and rules.
270
+ *
271
+ * Required API Key ACLs:
272
+ * - deleteIndex.
273
+ *
274
+ * @param clearObjects - The clearObjects object.
275
+ * @param clearObjects.indexName - Name of the index on which to perform the operation.
276
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
277
+ */
278
+ clearObjects({ indexName }: ClearObjectsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
279
+ /**
280
+ * Deletes all rules from the index.
281
+ *
282
+ * Required API Key ACLs:
283
+ * - editSettings.
284
+ *
285
+ * @param clearRules - The clearRules object.
286
+ * @param clearRules.indexName - Name of the index on which to perform the operation.
287
+ * @param clearRules.forwardToReplicas - Whether changes are applied to replica indices.
288
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
289
+ */
290
+ clearRules({ indexName, forwardToReplicas }: ClearRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
291
+ /**
292
+ * Deletes all synonyms from the index.
293
+ *
294
+ * Required API Key ACLs:
295
+ * - editSettings.
296
+ *
297
+ * @param clearSynonyms - The clearSynonyms object.
298
+ * @param clearSynonyms.indexName - Name of the index on which to perform the operation.
299
+ * @param clearSynonyms.forwardToReplicas - Whether changes are applied to replica indices.
300
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
301
+ */
302
+ clearSynonyms({ indexName, forwardToReplicas }: ClearSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
303
+ /**
304
+ * This method allow you to send requests to the Algolia REST API.
305
+ *
306
+ * @param customDelete - The customDelete object.
307
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
308
+ * @param customDelete.parameters - Query parameters to apply to the current query.
309
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
310
+ */
311
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
312
+ /**
313
+ * This method allow you to send requests to the Algolia REST API.
314
+ *
315
+ * @param customGet - The customGet object.
316
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
317
+ * @param customGet.parameters - Query parameters to apply to the current query.
318
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
319
+ */
320
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
321
+ /**
322
+ * This method allow you to send requests to the Algolia REST API.
323
+ *
324
+ * @param customPost - The customPost object.
325
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
326
+ * @param customPost.parameters - Query parameters to apply to the current query.
327
+ * @param customPost.body - Parameters to send with the custom request.
328
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
329
+ */
330
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
331
+ /**
332
+ * This method allow you to send requests to the Algolia REST API.
333
+ *
334
+ * @param customPut - The customPut object.
335
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
336
+ * @param customPut.parameters - Query parameters to apply to the current query.
337
+ * @param customPut.body - Parameters to send with the custom request.
338
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
339
+ */
340
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
341
+ /**
342
+ * Deletes the API key.
343
+ *
344
+ * Required API Key ACLs:
345
+ * - admin.
346
+ *
347
+ * @param deleteApiKey - The deleteApiKey object.
348
+ * @param deleteApiKey.key - API key.
349
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
350
+ */
351
+ deleteApiKey({ key }: DeleteApiKeyProps, requestOptions?: RequestOptions): Promise<DeleteApiKeyResponse>;
352
+ /**
353
+ * This operation doesn\'t accept empty queries or filters. It\'s more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](tag/Records/operation/batch).
354
+ *
355
+ * Required API Key ACLs:
356
+ * - deleteIndex.
357
+ *
358
+ * @param deleteBy - The deleteBy object.
359
+ * @param deleteBy.indexName - Name of the index on which to perform the operation.
360
+ * @param deleteBy.deleteByParams - The deleteByParams object.
361
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
362
+ */
363
+ deleteBy({ indexName, deleteByParams }: DeleteByProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
364
+ /**
365
+ * Deletes an index and all its settings. - Deleting an index doesn\'t delete its analytics data. - If you try to delete a non-existing index, the operation is ignored without warning. - If the index you want to delete has replica indices, the replicas become independent indices. - If the index you want to delete is a replica index, you must first unlink it from its primary index before you can delete it. For more information, see [Delete replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/deleting-replicas/).
366
+ *
367
+ * Required API Key ACLs:
368
+ * - deleteIndex.
369
+ *
370
+ * @param deleteIndex - The deleteIndex object.
371
+ * @param deleteIndex.indexName - Name of the index on which to perform the operation.
372
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
373
+ */
374
+ deleteIndex({ indexName }: DeleteIndexProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
375
+ /**
376
+ * Deletes a record by its object ID. To delete more than one record, use the [`batch` operation](#tag/Records/operation/batch). To delete records matching a query, use the [`deleteByQuery` operation](#tag/Records/operation/deleteBy).
377
+ *
378
+ * Required API Key ACLs:
379
+ * - deleteObject.
380
+ *
381
+ * @param deleteObject - The deleteObject object.
382
+ * @param deleteObject.indexName - Name of the index on which to perform the operation.
383
+ * @param deleteObject.objectID - Unique record identifier.
384
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
385
+ */
386
+ deleteObject({ indexName, objectID }: DeleteObjectProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
387
+ /**
388
+ * Deletes a rule by its ID. To find the object ID for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
389
+ *
390
+ * Required API Key ACLs:
391
+ * - editSettings.
392
+ *
393
+ * @param deleteRule - The deleteRule object.
394
+ * @param deleteRule.indexName - Name of the index on which to perform the operation.
395
+ * @param deleteRule.objectID - Unique identifier of a rule object.
396
+ * @param deleteRule.forwardToReplicas - Whether changes are applied to replica indices.
397
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
398
+ */
399
+ deleteRule({ indexName, objectID, forwardToReplicas }: DeleteRuleProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
400
+ /**
401
+ * Deletes a source from the list of allowed sources.
402
+ *
403
+ * Required API Key ACLs:
404
+ * - admin.
405
+ *
406
+ * @param deleteSource - The deleteSource object.
407
+ * @param deleteSource.source - IP address range of the source.
408
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
409
+ */
410
+ deleteSource({ source }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteSourceResponse>;
411
+ /**
412
+ * Deletes a synonym by its ID. To find the object IDs of your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
413
+ *
414
+ * Required API Key ACLs:
415
+ * - editSettings.
416
+ *
417
+ * @param deleteSynonym - The deleteSynonym object.
418
+ * @param deleteSynonym.indexName - Name of the index on which to perform the operation.
419
+ * @param deleteSynonym.objectID - Unique identifier of a synonym object.
420
+ * @param deleteSynonym.forwardToReplicas - Whether changes are applied to replica indices.
421
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
422
+ */
423
+ deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
424
+ /**
425
+ * Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application\'s keys. When authenticating with other API keys, you can only retrieve information for that key.
426
+ *
427
+ * @param getApiKey - The getApiKey object.
428
+ * @param getApiKey.key - API key.
429
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
430
+ */
431
+ getApiKey({ key }: GetApiKeyProps, requestOptions?: RequestOptions): Promise<GetApiKeyResponse>;
432
+ /**
433
+ * Lists supported languages with their supported dictionary types and number of custom entries.
434
+ *
435
+ * Required API Key ACLs:
436
+ * - settings.
437
+ *
438
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
439
+ */
440
+ getDictionaryLanguages(requestOptions?: RequestOptions): Promise<Record<string, Languages>>;
441
+ /**
442
+ * Retrieves the languages for which standard dictionary entries are turned off.
443
+ *
444
+ * Required API Key ACLs:
445
+ * - settings.
446
+ *
447
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
448
+ */
449
+ getDictionarySettings(requestOptions?: RequestOptions): Promise<GetDictionarySettingsResponse>;
450
+ /**
451
+ * The request must be authenticated by an API key with the [`logs` ACL](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl). - Logs are held for the last seven days. - Up to 1,000 API requests per server are logged. - This request counts towards your [operations quota](https://support.algolia.com/hc/en-us/articles/4406981829777-How-does-Algolia-count-records-and-operations-) but doesn\'t appear in the logs itself.
452
+ *
453
+ * Required API Key ACLs:
454
+ * - logs.
455
+ *
456
+ * @param getLogs - The getLogs object.
457
+ * @param getLogs.offset - First log entry to retrieve. The most recent entries are listed first.
458
+ * @param getLogs.length - Maximum number of entries to retrieve.
459
+ * @param getLogs.indexName - Index for which to retrieve log entries. By default, log entries are retrieved for all indices.
460
+ * @param getLogs.type - Type of log entries to retrieve. By default, all log entries are retrieved.
461
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
462
+ */
463
+ getLogs({ offset, length, indexName, type }?: GetLogsProps, requestOptions?: RequestOptions | undefined): Promise<GetLogsResponse>;
464
+ /**
465
+ * Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects).
466
+ *
467
+ * Required API Key ACLs:
468
+ * - search.
469
+ *
470
+ * @param getObject - The getObject object.
471
+ * @param getObject.indexName - Name of the index on which to perform the operation.
472
+ * @param getObject.objectID - Unique record identifier.
473
+ * @param getObject.attributesToRetrieve - Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won\'t be retrieved unless the request is authenticated with the admin API key.
474
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
475
+ */
476
+ getObject({ indexName, objectID, attributesToRetrieve }: GetObjectProps, requestOptions?: RequestOptions): Promise<Record<string, string>>;
477
+ /**
478
+ * Retrieves one or more records, potentially from different indices. Records are returned in the same order as the requests.
479
+ *
480
+ * Required API Key ACLs:
481
+ * - search.
482
+ *
483
+ * @param getObjectsParams - Request object.
484
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
485
+ */
486
+ getObjects<T_3>(getObjectsParams: GetObjectsParams, requestOptions?: RequestOptions): Promise<GetObjectsResponse<T_3>>;
487
+ /**
488
+ * Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](#tag/Rules/operation/searchRules).
489
+ *
490
+ * Required API Key ACLs:
491
+ * - settings.
492
+ *
493
+ * @param getRule - The getRule object.
494
+ * @param getRule.indexName - Name of the index on which to perform the operation.
495
+ * @param getRule.objectID - Unique identifier of a rule object.
496
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
497
+ */
498
+ getRule({ indexName, objectID }: GetRuleProps, requestOptions?: RequestOptions): Promise<Rule>;
499
+ /**
500
+ * Retrieves an object with non-null index settings.
501
+ *
502
+ * Required API Key ACLs:
503
+ * - search.
504
+ *
505
+ * @param getSettings - The getSettings object.
506
+ * @param getSettings.indexName - Name of the index on which to perform the operation.
507
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
508
+ */
509
+ getSettings({ indexName }: GetSettingsProps, requestOptions?: RequestOptions): Promise<IndexSettings>;
510
+ /**
511
+ * Retrieves all allowed IP addresses with access to your application.
512
+ *
513
+ * Required API Key ACLs:
514
+ * - admin.
515
+ *
516
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
517
+ */
518
+ getSources(requestOptions?: RequestOptions): Promise<Source[]>;
519
+ /**
520
+ * Retrieves a syonym by its ID. To find the object IDs for your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
521
+ *
522
+ * Required API Key ACLs:
523
+ * - settings.
524
+ *
525
+ * @param getSynonym - The getSynonym object.
526
+ * @param getSynonym.indexName - Name of the index on which to perform the operation.
527
+ * @param getSynonym.objectID - Unique identifier of a synonym object.
528
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
529
+ */
530
+ getSynonym({ indexName, objectID }: GetSynonymProps, requestOptions?: RequestOptions): Promise<SynonymHit>;
531
+ /**
532
+ * Checks the status of a given task. Indexing tasks are asynchronous. When you add, update, or delete records or indices, a task is created on a queue and completed depending on the load on the server. The indexing tasks\' responses include a task ID that you can use to check the status.
533
+ *
534
+ * Required API Key ACLs:
535
+ * - addObject.
536
+ *
537
+ * @param getTask - The getTask object.
538
+ * @param getTask.indexName - Name of the index on which to perform the operation.
539
+ * @param getTask.taskID - Unique task identifier.
540
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
541
+ */
542
+ getTask({ indexName, taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
543
+ /**
544
+ * Get the IDs of the 10 users with the highest number of records per cluster. Since it can take a few seconds to get the data from the different clusters, the response isn\'t real-time.
545
+ *
546
+ * Required API Key ACLs:
547
+ * - admin.
548
+ *
549
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
550
+ */
551
+ getTopUserIds(requestOptions?: RequestOptions): Promise<GetTopUserIdsResponse>;
552
+ /**
553
+ * Returns the user ID data stored in the mapping. Since it can take a few seconds to get the data from the different clusters, the response isn\'t real-time.
554
+ *
555
+ * Required API Key ACLs:
556
+ * - admin.
557
+ *
558
+ * @param getUserId - The getUserId object.
559
+ * @param getUserId.userID - User ID to assign.
560
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
561
+ */
562
+ getUserId({ userID }: GetUserIdProps, requestOptions?: RequestOptions): Promise<UserId>;
563
+ /**
564
+ * To determine when the time-consuming process of creating a large batch of users or migrating users from one cluster to another is complete, this operation retrieves the status of the process.
565
+ *
566
+ * Required API Key ACLs:
567
+ * - admin.
568
+ *
569
+ * @param hasPendingMappings - The hasPendingMappings object.
570
+ * @param hasPendingMappings.getClusters - Whether to include the cluster\'s pending mapping state in the response.
571
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
572
+ */
573
+ hasPendingMappings({ getClusters }?: HasPendingMappingsProps, requestOptions?: RequestOptions | undefined): Promise<HasPendingMappingsResponse>;
574
+ /**
575
+ * Lists all API keys associated with your Algolia application, including their permissions and restrictions.
576
+ *
577
+ * Required API Key ACLs:
578
+ * - admin.
579
+ *
580
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
581
+ */
582
+ listApiKeys(requestOptions?: RequestOptions): Promise<ListApiKeysResponse>;
583
+ /**
584
+ * Lists the available clusters in a multi-cluster setup.
585
+ *
586
+ * Required API Key ACLs:
587
+ * - admin.
588
+ *
589
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
590
+ */
591
+ listClusters(requestOptions?: RequestOptions): Promise<ListClustersResponse>;
592
+ /**
593
+ * Lists all indices in the current Algolia application. The request follows any index restrictions of the API key you use to make the request.
594
+ *
595
+ * Required API Key ACLs:
596
+ * - listIndexes.
597
+ *
598
+ * @param listIndices - The listIndices object.
599
+ * @param listIndices.page - Requested page of the API response. If `null`, the API response is not paginated.
600
+ * @param listIndices.hitsPerPage - Number of hits per page.
601
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
602
+ */
603
+ listIndices({ page, hitsPerPage }?: ListIndicesProps, requestOptions?: RequestOptions | undefined): Promise<ListIndicesResponse>;
604
+ /**
605
+ * Lists the userIDs assigned to a multi-cluster application. Since it can take a few seconds to get the data from the different clusters, the response isn\'t real-time.
606
+ *
607
+ * Required API Key ACLs:
608
+ * - admin.
609
+ *
610
+ * @param listUserIds - The listUserIds object.
611
+ * @param listUserIds.page - Requested page of the API response. If `null`, the API response is not paginated.
612
+ * @param listUserIds.hitsPerPage - Number of hits per page.
613
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
614
+ */
615
+ listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
616
+ /**
617
+ * Adds, updates, or deletes records in multiple indices with a single API request. - Actions are applied in the order they are specified. - Actions are equivalent to the individual API requests of the same name.
618
+ *
619
+ * @param batchParams - The batchParams object.
620
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
621
+ */
622
+ multipleBatch(batchParams: BatchParams, requestOptions?: RequestOptions): Promise<MultipleBatchResponse>;
623
+ /**
624
+ * Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are overwritten, except for index-specific API keys and analytics data. - If the destination index doesn\'t exist yet, it\'ll be created. **Copy** - Copying a source index that doesn\'t exist creates a new index with 0 records and default settings. - The API keys of the source index are merged with the existing keys in the destination index. - You can\'t copy the `enableReRanking`, `mode`, and `replicas` settings. - You can\'t copy to a destination index that already has replicas. - Be aware of the [size limits](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits). - Related guide: [Copy indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/copy-indices/) **Move** - Moving a source index that doesn\'t exist is ignored without returning an error. - When moving an index, the analytics data keep their original name and a new set of analytics data is started for the new name. To access the original analytics in the dashboard, create an index with the original name. - If the destination index has replicas, moving will overwrite the existing index and copy the data to the replica indices. - Related guide: [Move indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/).
625
+ *
626
+ * Required API Key ACLs:
627
+ * - addObject.
628
+ *
629
+ * @param operationIndex - The operationIndex object.
630
+ * @param operationIndex.indexName - Name of the index on which to perform the operation.
631
+ * @param operationIndex.operationIndexParams - The operationIndexParams object.
632
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
633
+ */
634
+ operationIndex({ indexName, operationIndexParams }: OperationIndexProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
635
+ /**
636
+ * Adds new attributes to a record, or update existing ones. - If a record with the specified object ID doesn\'t exist, a new record is added to the index **if** `createIfNotExists` is true. - If the index doesn\'t exist yet, this method creates a new index. - You can use any first-level attribute but not nested attributes. If you specify a nested attribute, the engine treats it as a replacement for its first-level ancestor.
637
+ *
638
+ * Required API Key ACLs:
639
+ * - addObject.
640
+ *
641
+ * @param partialUpdateObject - The partialUpdateObject object.
642
+ * @param partialUpdateObject.indexName - Name of the index on which to perform the operation.
643
+ * @param partialUpdateObject.objectID - Unique record identifier.
644
+ * @param partialUpdateObject.attributesToUpdate - Attributes with their values.
645
+ * @param partialUpdateObject.createIfNotExists - Whether to create a new record if it doesn\'t exist.
646
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
647
+ */
648
+ partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }: PartialUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
649
+ /**
650
+ * Deletes a user ID and its associated data from the clusters.
651
+ *
652
+ * Required API Key ACLs:
653
+ * - admin.
654
+ *
655
+ * @param removeUserId - The removeUserId object.
656
+ * @param removeUserId.userID - User ID to assign.
657
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
658
+ */
659
+ removeUserId({ userID }: RemoveUserIdProps, requestOptions?: RequestOptions): Promise<RemoveUserIdResponse>;
660
+ /**
661
+ * Replaces the list of allowed sources.
662
+ *
663
+ * Required API Key ACLs:
664
+ * - admin.
665
+ *
666
+ * @param replaceSources - The replaceSources object.
667
+ * @param replaceSources.source - Allowed sources.
668
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
669
+ */
670
+ replaceSources({ source }: ReplaceSourcesProps, requestOptions?: RequestOptions): Promise<ReplaceSourceResponse>;
671
+ /**
672
+ * Restores a deleted API key. Restoring resets the `validity` attribute to `0`. Algolia stores up to 1,000 API keys per application. If you create more, the oldest API keys are deleted and can\'t be restored.
673
+ *
674
+ * Required API Key ACLs:
675
+ * - admin.
676
+ *
677
+ * @param restoreApiKey - The restoreApiKey object.
678
+ * @param restoreApiKey.key - API key.
679
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
680
+ */
681
+ restoreApiKey({ key }: RestoreApiKeyProps, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
682
+ /**
683
+ * Adds a record to an index or replace it. - If the record doesn\'t have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn\'t exist, a new record is added to your index. - If you add a record to an index that doesn\'t exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partial). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
684
+ *
685
+ * Required API Key ACLs:
686
+ * - addObject.
687
+ *
688
+ * @param saveObject - The saveObject object.
689
+ * @param saveObject.indexName - Name of the index on which to perform the operation.
690
+ * @param saveObject.body - The record, a schemaless object with attributes that are useful in the context of search and discovery.
691
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
692
+ */
693
+ saveObject({ indexName, body }: SaveObjectProps, requestOptions?: RequestOptions): Promise<SaveObjectResponse>;
694
+ /**
695
+ * If a rule with the specified object ID doesn\'t exist, it\'s created. Otherwise, the existing rule is replaced. To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
696
+ *
697
+ * Required API Key ACLs:
698
+ * - editSettings.
699
+ *
700
+ * @param saveRule - The saveRule object.
701
+ * @param saveRule.indexName - Name of the index on which to perform the operation.
702
+ * @param saveRule.objectID - Unique identifier of a rule object.
703
+ * @param saveRule.rule - The rule object.
704
+ * @param saveRule.forwardToReplicas - Whether changes are applied to replica indices.
705
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
706
+ */
707
+ saveRule({ indexName, objectID, rule, forwardToReplicas }: SaveRuleProps, requestOptions?: RequestOptions): Promise<UpdatedRuleResponse>;
708
+ /**
709
+ * Create or update multiple rules. If a rule with the specified object ID doesn\'t exist, Algolia creates a new one. Otherwise, existing rules are replaced.
710
+ *
711
+ * Required API Key ACLs:
712
+ * - editSettings.
713
+ *
714
+ * @param saveRules - The saveRules object.
715
+ * @param saveRules.indexName - Name of the index on which to perform the operation.
716
+ * @param saveRules.rules - The rules object.
717
+ * @param saveRules.forwardToReplicas - Whether changes are applied to replica indices.
718
+ * @param saveRules.clearExistingRules - Whether existing rules should be deleted before adding this batch.
719
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
720
+ */
721
+ saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }: SaveRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
722
+ /**
723
+ * If a synonym with the specified object ID doesn\'t exist, Algolia adds a new one. Otherwise, the existing synonym is replaced. To add multiple synonyms in a single API request, use the [`batch` operation](#tag/Synonyms/operation/saveSynonyms).
724
+ *
725
+ * Required API Key ACLs:
726
+ * - editSettings.
727
+ *
728
+ * @param saveSynonym - The saveSynonym object.
729
+ * @param saveSynonym.indexName - Name of the index on which to perform the operation.
730
+ * @param saveSynonym.objectID - Unique identifier of a synonym object.
731
+ * @param saveSynonym.synonymHit - The synonymHit object.
732
+ * @param saveSynonym.forwardToReplicas - Whether changes are applied to replica indices.
733
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
734
+ */
735
+ saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }: SaveSynonymProps, requestOptions?: RequestOptions): Promise<SaveSynonymResponse>;
736
+ /**
737
+ * If a synonym with the `objectID` doesn\'t exist, Algolia adds a new one. Otherwise, existing synonyms are replaced.
738
+ *
739
+ * Required API Key ACLs:
740
+ * - editSettings.
741
+ *
742
+ * @param saveSynonyms - The saveSynonyms object.
743
+ * @param saveSynonyms.indexName - Name of the index on which to perform the operation.
744
+ * @param saveSynonyms.synonymHit - The synonymHit object.
745
+ * @param saveSynonyms.forwardToReplicas - Whether changes are applied to replica indices.
746
+ * @param saveSynonyms.replaceExistingSynonyms - Whether to replace all synonyms in the index with the ones sent with this request.
747
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
748
+ */
749
+ saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
750
+ /**
751
+ * Sends multiple search request to one or more indices. This can be useful in these cases: - Different indices for different purposes, such as, one index for products, another one for marketing content. - Multiple searches to the same index—for example, with different filters.
752
+ *
753
+ * Required API Key ACLs:
754
+ * - search.
755
+ *
756
+ * @param searchMethodParams - Muli-search request body. Results are returned in the same order as the requests.
757
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
758
+ */
759
+ search<T_4>(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<SearchResponses<T_4>>;
760
+ /**
761
+ * Searches for standard and custom dictionary entries.
762
+ *
763
+ * Required API Key ACLs:
764
+ * - settings.
765
+ *
766
+ * @param searchDictionaryEntries - The searchDictionaryEntries object.
767
+ * @param searchDictionaryEntries.dictionaryName - Dictionary type in which to search.
768
+ * @param searchDictionaryEntries.searchDictionaryEntriesParams - The searchDictionaryEntriesParams object.
769
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
770
+ */
771
+ searchDictionaryEntries({ dictionaryName, searchDictionaryEntriesParams, }: SearchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<SearchDictionaryEntriesResponse>;
772
+ /**
773
+ * Searches for values of a specified facet attribute. - By default, facet values are sorted by decreasing count. You can adjust this with the `sortFacetValueBy` parameter. - Searching for facet values doesn\'t work if you have **more than 65 searchable facets and searchable attributes combined**.
774
+ *
775
+ * Required API Key ACLs:
776
+ * - search.
777
+ *
778
+ * @param searchForFacetValues - The searchForFacetValues object.
779
+ * @param searchForFacetValues.indexName - Name of the index on which to perform the operation.
780
+ * @param searchForFacetValues.facetName - Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier.
781
+ * @param searchForFacetValues.searchForFacetValuesRequest - The searchForFacetValuesRequest object.
782
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
783
+ */
784
+ searchForFacetValues({ indexName, facetName, searchForFacetValuesRequest, }: SearchForFacetValuesProps, requestOptions?: RequestOptions): Promise<SearchForFacetValuesResponse>;
785
+ /**
786
+ * Searches for rules in your index.
787
+ *
788
+ * Required API Key ACLs:
789
+ * - settings.
790
+ *
791
+ * @param searchRules - The searchRules object.
792
+ * @param searchRules.indexName - Name of the index on which to perform the operation.
793
+ * @param searchRules.searchRulesParams - The searchRulesParams object.
794
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
795
+ */
796
+ searchRules({ indexName, searchRulesParams }: SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
797
+ /**
798
+ * Searches a single index and return matching search results (_hits_). This method lets you retrieve up to 1,000 hits. If you need more, use the [`browse` operation](#tag/Search/operation/browse) or increase the `paginatedLimitedTo` index setting.
799
+ *
800
+ * Required API Key ACLs:
801
+ * - search.
802
+ *
803
+ * @param searchSingleIndex - The searchSingleIndex object.
804
+ * @param searchSingleIndex.indexName - Name of the index on which to perform the operation.
805
+ * @param searchSingleIndex.searchParams - The searchParams object.
806
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
807
+ */
808
+ searchSingleIndex<T_5>({ indexName, searchParams }: SearchSingleIndexProps, requestOptions?: RequestOptions): Promise<SearchResponse<T_5>>;
809
+ /**
810
+ * Searches for synonyms in your index.
811
+ *
812
+ * Required API Key ACLs:
813
+ * - settings.
814
+ *
815
+ * @param searchSynonyms - The searchSynonyms object.
816
+ * @param searchSynonyms.indexName - Name of the index on which to perform the operation.
817
+ * @param searchSynonyms.searchSynonymsParams - Body of the `searchSynonyms` operation.
818
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
819
+ */
820
+ searchSynonyms({ indexName, searchSynonymsParams }: SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
821
+ /**
822
+ * Since it can take a few seconds to get the data from the different clusters, the response isn\'t real-time. To ensure rapid updates, the user IDs index isn\'t built at the same time as the mapping. Instead, it\'s built every 12 hours, at the same time as the update of user ID usage. For example, if you add or move a user ID, the search will show an old value until the next time the mapping is rebuilt (every 12 hours).
823
+ *
824
+ * Required API Key ACLs:
825
+ * - admin.
826
+ *
827
+ * @param searchUserIdsParams - The searchUserIdsParams object.
828
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
829
+ */
830
+ searchUserIds(searchUserIdsParams: SearchUserIdsParams, requestOptions?: RequestOptions): Promise<SearchUserIdsResponse>;
831
+ /**
832
+ * Turns standard stop word dictionary entries on or off for a given language.
833
+ *
834
+ * Required API Key ACLs:
835
+ * - editSettings.
836
+ *
837
+ * @param dictionarySettingsParams - The dictionarySettingsParams object.
838
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
839
+ */
840
+ setDictionarySettings(dictionarySettingsParams: DictionarySettingsParams, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
841
+ /**
842
+ * Update the specified index settings. Index settings that you don\'t specify are left unchanged. Specify `null` to reset a setting to its default value. For best performance, update the index settings before you add new records to your index.
843
+ *
844
+ * Required API Key ACLs:
845
+ * - editSettings.
846
+ *
847
+ * @param setSettings - The setSettings object.
848
+ * @param setSettings.indexName - Name of the index on which to perform the operation.
849
+ * @param setSettings.indexSettings - The indexSettings object.
850
+ * @param setSettings.forwardToReplicas - Whether changes are applied to replica indices.
851
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
852
+ */
853
+ setSettings({ indexName, indexSettings, forwardToReplicas }: SetSettingsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
854
+ /**
855
+ * Replaces the permissions of an existing API key. Any unspecified attribute resets that attribute to its default value.
856
+ *
857
+ * Required API Key ACLs:
858
+ * - admin.
859
+ *
860
+ * @param updateApiKey - The updateApiKey object.
861
+ * @param updateApiKey.key - API key.
862
+ * @param updateApiKey.apiKey - The apiKey object.
863
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
864
+ */
865
+ updateApiKey({ key, apiKey }: UpdateApiKeyProps, requestOptions?: RequestOptions): Promise<UpdateApiKeyResponse>;
866
+ };
724
867
  //# sourceMappingURL=searchClient.d.ts.map