algoliasearch 5.0.0-alpha.9 → 5.0.0-alpha.90

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 (869) hide show
  1. package/builds/browser.ts +1 -1
  2. package/builds/models.ts +1 -1
  3. package/builds/node.ts +1 -1
  4. package/dist/{builds → algoliasearch/builds}/browser.d.ts +93 -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 +93 -87
  9. package/dist/algoliasearch/builds/node.d.ts.map +1 -0
  10. package/dist/{algoliasearch.cjs.js → algoliasearch.cjs} +3521 -3481
  11. package/dist/algoliasearch.esm.browser.js +3712 -3726
  12. package/dist/algoliasearch.esm.node.js +3521 -3479
  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/currenciesValue.d.ts +19 -0
  29. package/dist/client-abtesting/model/currenciesValue.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 +73 -50
  45. package/dist/client-abtesting/model/variant.d.ts.map +1 -1
  46. package/dist/client-abtesting/src/abtestingClient.d.ts +126 -124
  47. package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
  48. package/dist/client-analytics/model/averageClickEvent.d.ts +14 -14
  49. package/dist/client-analytics/model/averageClickEvent.d.ts.map +1 -1
  50. package/dist/client-analytics/model/clickPosition.d.ts +10 -10
  51. package/dist/client-analytics/model/clickPosition.d.ts.map +1 -1
  52. package/dist/client-analytics/model/clickThroughRateEvent.d.ts +18 -18
  53. package/dist/client-analytics/model/clickThroughRateEvent.d.ts.map +1 -1
  54. package/dist/client-analytics/model/clientMethodProps.d.ts +507 -507
  55. package/dist/client-analytics/model/clientMethodProps.d.ts.map +1 -1
  56. package/dist/client-analytics/model/conversionRateEvent.d.ts +18 -18
  57. package/dist/client-analytics/model/conversionRateEvent.d.ts.map +1 -1
  58. package/dist/client-analytics/model/direction.d.ts +1 -1
  59. package/dist/client-analytics/model/direction.d.ts.map +1 -1
  60. package/dist/client-analytics/model/errorBase.d.ts +6 -6
  61. package/dist/client-analytics/model/errorBase.d.ts.map +1 -1
  62. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +15 -15
  63. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts.map +1 -1
  64. package/dist/client-analytics/model/getClickPositionsResponse.d.ts +7 -7
  65. package/dist/client-analytics/model/getClickPositionsResponse.d.ts.map +1 -1
  66. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +19 -19
  67. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts.map +1 -1
  68. package/dist/client-analytics/model/getConversationRateResponse.d.ts +19 -19
  69. package/dist/client-analytics/model/getConversationRateResponse.d.ts.map +1 -1
  70. package/dist/client-analytics/model/getNoClickRateResponse.d.ts +19 -19
  71. package/dist/client-analytics/model/getNoClickRateResponse.d.ts.map +1 -1
  72. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +19 -19
  73. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts.map +1 -1
  74. package/dist/client-analytics/model/getSearchesCountResponse.d.ts +11 -11
  75. package/dist/client-analytics/model/getSearchesCountResponse.d.ts.map +1 -1
  76. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +7 -7
  77. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts.map +1 -1
  78. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +7 -7
  79. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts.map +1 -1
  80. package/dist/client-analytics/model/getStatusResponse.d.ts +6 -6
  81. package/dist/client-analytics/model/getStatusResponse.d.ts.map +1 -1
  82. package/dist/client-analytics/model/getTopCountriesResponse.d.ts +7 -7
  83. package/dist/client-analytics/model/getTopCountriesResponse.d.ts.map +1 -1
  84. package/dist/client-analytics/model/getTopFilterAttribute.d.ts +10 -10
  85. package/dist/client-analytics/model/getTopFilterAttribute.d.ts.map +1 -1
  86. package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +7 -7
  87. package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts.map +1 -1
  88. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +18 -18
  89. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts.map +1 -1
  90. package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts +7 -7
  91. package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
  92. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +7 -7
  93. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
  94. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +14 -14
  95. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  96. package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts +11 -11
  97. package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
  98. package/dist/client-analytics/model/getTopHitsResponse.d.ts +3 -3
  99. package/dist/client-analytics/model/getTopHitsResponse.d.ts.map +1 -1
  100. package/dist/client-analytics/model/getTopSearchesResponse.d.ts +3 -3
  101. package/dist/client-analytics/model/getTopSearchesResponse.d.ts.map +1 -1
  102. package/dist/client-analytics/model/getUsersCountResponse.d.ts +11 -11
  103. package/dist/client-analytics/model/getUsersCountResponse.d.ts.map +1 -1
  104. package/dist/client-analytics/model/index.d.ts +44 -44
  105. package/dist/client-analytics/model/noClickRateEvent.d.ts +18 -18
  106. package/dist/client-analytics/model/noClickRateEvent.d.ts.map +1 -1
  107. package/dist/client-analytics/model/noResultsRateEvent.d.ts +18 -18
  108. package/dist/client-analytics/model/noResultsRateEvent.d.ts.map +1 -1
  109. package/dist/client-analytics/model/orderBy.d.ts +4 -1
  110. package/dist/client-analytics/model/orderBy.d.ts.map +1 -1
  111. package/dist/client-analytics/model/searchEvent.d.ts +10 -10
  112. package/dist/client-analytics/model/searchEvent.d.ts.map +1 -1
  113. package/dist/client-analytics/model/searchNoClickEvent.d.ts +14 -14
  114. package/dist/client-analytics/model/searchNoClickEvent.d.ts.map +1 -1
  115. package/dist/client-analytics/model/searchNoResultEvent.d.ts +14 -14
  116. package/dist/client-analytics/model/searchNoResultEvent.d.ts.map +1 -1
  117. package/dist/client-analytics/model/topCountry.d.ts +10 -10
  118. package/dist/client-analytics/model/topCountry.d.ts.map +1 -1
  119. package/dist/client-analytics/model/topHit.d.ts +10 -10
  120. package/dist/client-analytics/model/topHit.d.ts.map +1 -1
  121. package/dist/client-analytics/model/topHitWithAnalytics.d.ts +30 -30
  122. package/dist/client-analytics/model/topHitWithAnalytics.d.ts.map +1 -1
  123. package/dist/client-analytics/model/topHitsResponse.d.ts +7 -7
  124. package/dist/client-analytics/model/topHitsResponse.d.ts.map +1 -1
  125. package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +7 -7
  126. package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
  127. package/dist/client-analytics/model/topSearch.d.ts +14 -14
  128. package/dist/client-analytics/model/topSearch.d.ts.map +1 -1
  129. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +38 -38
  130. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
  131. package/dist/client-analytics/model/topSearchesResponse.d.ts +7 -7
  132. package/dist/client-analytics/model/topSearchesResponse.d.ts.map +1 -1
  133. package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  134. package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
  135. package/dist/client-analytics/model/userWithDate.d.ts +10 -10
  136. package/dist/client-analytics/model/userWithDate.d.ts.map +1 -1
  137. package/dist/client-analytics/src/analyticsClient.d.ts +318 -318
  138. package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
  139. package/dist/client-personalization/model/clientMethodProps.d.ts +78 -78
  140. package/dist/client-personalization/model/clientMethodProps.d.ts.map +1 -1
  141. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +10 -10
  142. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts.map +1 -1
  143. package/dist/client-personalization/model/errorBase.d.ts +6 -6
  144. package/dist/client-personalization/model/errorBase.d.ts.map +1 -1
  145. package/dist/client-personalization/model/eventScoring.d.ts +14 -14
  146. package/dist/client-personalization/model/eventScoring.d.ts.map +1 -1
  147. package/dist/client-personalization/model/facetScoring.d.ts +10 -10
  148. package/dist/client-personalization/model/facetScoring.d.ts.map +1 -1
  149. package/dist/client-personalization/model/getUserTokenResponse.d.ts +14 -14
  150. package/dist/client-personalization/model/getUserTokenResponse.d.ts.map +1 -1
  151. package/dist/client-personalization/model/index.d.ts +8 -8
  152. package/dist/client-personalization/model/personalizationStrategyParams.d.ts +16 -16
  153. package/dist/client-personalization/model/personalizationStrategyParams.d.ts.map +1 -1
  154. package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts +6 -6
  155. package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts.map +1 -1
  156. package/dist/client-personalization/src/personalizationClient.d.ts +112 -112
  157. package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
  158. package/dist/client-search/model/acl.d.ts +4 -4
  159. package/dist/client-search/model/acl.d.ts.map +1 -1
  160. package/dist/client-search/model/action.d.ts +4 -4
  161. package/dist/client-search/model/action.d.ts.map +1 -1
  162. package/dist/client-search/model/addApiKeyResponse.d.ts +10 -10
  163. package/dist/client-search/model/addApiKeyResponse.d.ts.map +1 -1
  164. package/dist/client-search/model/advancedSyntaxFeatures.d.ts +1 -1
  165. package/dist/client-search/model/advancedSyntaxFeatures.d.ts.map +1 -1
  166. package/dist/client-search/model/alternativesAsExact.d.ts +1 -1
  167. package/dist/client-search/model/alternativesAsExact.d.ts.map +1 -1
  168. package/dist/client-search/model/anchoring.d.ts +4 -4
  169. package/dist/client-search/model/anchoring.d.ts.map +1 -1
  170. package/dist/client-search/model/apiKey.d.ts +38 -38
  171. package/dist/client-search/model/apiKey.d.ts.map +1 -1
  172. package/dist/client-search/model/aroundPrecision.d.ts +6 -0
  173. package/dist/client-search/model/aroundPrecision.d.ts.map +1 -0
  174. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +5 -0
  175. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  176. package/dist/client-search/model/aroundRadius.d.ts +5 -5
  177. package/dist/client-search/model/aroundRadius.d.ts.map +1 -1
  178. package/dist/client-search/model/aroundRadiusAll.d.ts +1 -1
  179. package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
  180. package/dist/client-search/model/assignUserIdParams.d.ts +9 -9
  181. package/dist/client-search/model/assignUserIdParams.d.ts.map +1 -1
  182. package/dist/client-search/model/attributeToUpdate.d.ts +2 -2
  183. package/dist/client-search/model/attributeToUpdate.d.ts.map +1 -1
  184. package/dist/client-search/model/automaticFacetFilter.d.ts +17 -17
  185. package/dist/client-search/model/automaticFacetFilter.d.ts.map +1 -1
  186. package/dist/client-search/model/automaticFacetFilters.d.ts +5 -5
  187. package/dist/client-search/model/automaticFacetFilters.d.ts.map +1 -1
  188. package/dist/client-search/model/baseGetApiKeyResponse.d.ts +10 -10
  189. package/dist/client-search/model/baseGetApiKeyResponse.d.ts.map +1 -1
  190. package/dist/client-search/model/baseIndexSettings.d.ts +66 -58
  191. package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
  192. package/dist/client-search/model/baseSearchParams.d.ts +3 -3
  193. package/dist/client-search/model/baseSearchParams.d.ts.map +1 -1
  194. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +118 -122
  195. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  196. package/dist/client-search/model/baseSearchResponse.d.ts +105 -101
  197. package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
  198. package/dist/client-search/model/batchAssignUserIdsParams.d.ts +13 -13
  199. package/dist/client-search/model/batchAssignUserIdsParams.d.ts.map +1 -1
  200. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +14 -14
  201. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts.map +1 -1
  202. package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts +6 -6
  203. package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
  204. package/dist/client-search/model/batchParams.d.ts +7 -7
  205. package/dist/client-search/model/batchParams.d.ts.map +1 -1
  206. package/dist/client-search/model/batchRequest.d.ts +8 -8
  207. package/dist/client-search/model/batchRequest.d.ts.map +1 -1
  208. package/dist/client-search/model/batchResponse.d.ts +10 -10
  209. package/dist/client-search/model/batchResponse.d.ts.map +1 -1
  210. package/dist/client-search/model/batchWriteParams.d.ts +7 -7
  211. package/dist/client-search/model/batchWriteParams.d.ts.map +1 -1
  212. package/dist/client-search/model/browseParams.d.ts +3 -3
  213. package/dist/client-search/model/browseParams.d.ts.map +1 -1
  214. package/dist/client-search/model/browseParamsObject.d.ts +3 -3
  215. package/dist/client-search/model/browseParamsObject.d.ts.map +1 -1
  216. package/dist/client-search/model/browseResponse.d.ts +4 -4
  217. package/dist/client-search/model/browseResponse.d.ts.map +1 -1
  218. package/dist/client-search/model/builtInOperation.d.ts +11 -11
  219. package/dist/client-search/model/builtInOperation.d.ts.map +1 -1
  220. package/dist/client-search/model/builtInOperationType.d.ts +4 -4
  221. package/dist/client-search/model/builtInOperationType.d.ts.map +1 -1
  222. package/dist/client-search/model/clientMethodProps.d.ts +719 -714
  223. package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
  224. package/dist/client-search/model/condition.d.ts +16 -16
  225. package/dist/client-search/model/condition.d.ts.map +1 -1
  226. package/dist/client-search/model/consequence.d.ts +25 -25
  227. package/dist/client-search/model/consequence.d.ts.map +1 -1
  228. package/dist/client-search/model/consequenceHide.d.ts +9 -9
  229. package/dist/client-search/model/consequenceHide.d.ts.map +1 -1
  230. package/dist/client-search/model/consequenceParams.d.ts +4 -4
  231. package/dist/client-search/model/consequenceParams.d.ts.map +1 -1
  232. package/dist/client-search/model/consequenceQuery.d.ts +5 -5
  233. package/dist/client-search/model/consequenceQuery.d.ts.map +1 -1
  234. package/dist/client-search/model/consequenceQueryObject.d.ts +11 -11
  235. package/dist/client-search/model/consequenceQueryObject.d.ts.map +1 -1
  236. package/dist/client-search/model/createdAtResponse.d.ts +9 -9
  237. package/dist/client-search/model/createdAtResponse.d.ts.map +1 -1
  238. package/dist/client-search/model/cursor.d.ts +6 -6
  239. package/dist/client-search/model/cursor.d.ts.map +1 -1
  240. package/dist/client-search/model/deleteApiKeyResponse.d.ts +6 -6
  241. package/dist/client-search/model/deleteApiKeyResponse.d.ts.map +1 -1
  242. package/dist/client-search/model/deleteByParams.d.ts +27 -0
  243. package/dist/client-search/model/deleteByParams.d.ts.map +1 -0
  244. package/dist/client-search/model/deleteSourceResponse.d.ts +6 -6
  245. package/dist/client-search/model/deleteSourceResponse.d.ts.map +1 -1
  246. package/dist/client-search/model/deletedAtResponse.d.ts +13 -13
  247. package/dist/client-search/model/deletedAtResponse.d.ts.map +1 -1
  248. package/dist/client-search/model/dictionaryAction.d.ts +4 -4
  249. package/dist/client-search/model/dictionaryAction.d.ts.map +1 -1
  250. package/dist/client-search/model/dictionaryEntry.d.ts +27 -27
  251. package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
  252. package/dist/client-search/model/dictionaryEntryState.d.ts +4 -4
  253. package/dist/client-search/model/dictionaryEntryState.d.ts.map +1 -1
  254. package/dist/client-search/model/dictionaryLanguage.d.ts +9 -9
  255. package/dist/client-search/model/dictionaryLanguage.d.ts.map +1 -1
  256. package/dist/client-search/model/dictionarySettingsParams.d.ts +7 -7
  257. package/dist/client-search/model/dictionarySettingsParams.d.ts.map +1 -1
  258. package/dist/client-search/model/dictionaryType.d.ts +1 -1
  259. package/dist/client-search/model/dictionaryType.d.ts.map +1 -1
  260. package/dist/client-search/model/distinct.d.ts +4 -4
  261. package/dist/client-search/model/distinct.d.ts.map +1 -1
  262. package/dist/client-search/model/edit.d.ts +12 -12
  263. package/dist/client-search/model/edit.d.ts.map +1 -1
  264. package/dist/client-search/model/editType.d.ts +4 -4
  265. package/dist/client-search/model/editType.d.ts.map +1 -1
  266. package/dist/client-search/model/errorBase.d.ts +6 -6
  267. package/dist/client-search/model/errorBase.d.ts.map +1 -1
  268. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +4 -4
  269. package/dist/client-search/model/exactOnSingleWordQuery.d.ts.map +1 -1
  270. package/dist/client-search/model/exhaustive.d.ts +26 -0
  271. package/dist/client-search/model/exhaustive.d.ts.map +1 -0
  272. package/dist/client-search/model/facetFilters.d.ts +5 -5
  273. package/dist/client-search/model/facetFilters.d.ts.map +1 -1
  274. package/dist/client-search/model/facetHits.d.ts +14 -14
  275. package/dist/client-search/model/facetHits.d.ts.map +1 -1
  276. package/dist/client-search/model/facetOrdering.d.ts +12 -12
  277. package/dist/client-search/model/facetOrdering.d.ts.map +1 -1
  278. package/dist/client-search/model/facets.d.ts +9 -9
  279. package/dist/client-search/model/facets.d.ts.map +1 -1
  280. package/dist/client-search/model/facetsStats.d.ts +18 -18
  281. package/dist/client-search/model/facetsStats.d.ts.map +1 -1
  282. package/dist/client-search/model/fetchedIndex.d.ts +46 -46
  283. package/dist/client-search/model/fetchedIndex.d.ts.map +1 -1
  284. package/dist/client-search/model/getApiKeyResponse.d.ts +3 -3
  285. package/dist/client-search/model/getApiKeyResponse.d.ts.map +1 -1
  286. package/dist/client-search/model/getDictionarySettingsResponse.d.ts +4 -4
  287. package/dist/client-search/model/getDictionarySettingsResponse.d.ts.map +1 -1
  288. package/dist/client-search/model/getLogsResponse.d.ts +4 -4
  289. package/dist/client-search/model/getLogsResponse.d.ts.map +1 -1
  290. package/dist/client-search/model/getObjectsParams.d.ts +7 -7
  291. package/dist/client-search/model/getObjectsParams.d.ts.map +1 -1
  292. package/dist/client-search/model/getObjectsRequest.d.ts +17 -17
  293. package/dist/client-search/model/getObjectsRequest.d.ts.map +1 -1
  294. package/dist/client-search/model/getObjectsResponse.d.ts +6 -6
  295. package/dist/client-search/model/getObjectsResponse.d.ts.map +1 -1
  296. package/dist/client-search/model/getTaskResponse.d.ts +4 -4
  297. package/dist/client-search/model/getTaskResponse.d.ts.map +1 -1
  298. package/dist/client-search/model/getTopUserIdsResponse.d.ts +10 -10
  299. package/dist/client-search/model/getTopUserIdsResponse.d.ts.map +1 -1
  300. package/dist/client-search/model/hasPendingMappingsResponse.d.ts +10 -10
  301. package/dist/client-search/model/hasPendingMappingsResponse.d.ts.map +1 -1
  302. package/dist/client-search/model/highlightResult.d.ts +2 -2
  303. package/dist/client-search/model/highlightResult.d.ts.map +1 -1
  304. package/dist/client-search/model/highlightResultOption.d.ts +19 -19
  305. package/dist/client-search/model/highlightResultOption.d.ts.map +1 -1
  306. package/dist/client-search/model/hit.d.ts +22 -22
  307. package/dist/client-search/model/hit.d.ts.map +1 -1
  308. package/dist/client-search/model/ignorePlurals.d.ts +4 -4
  309. package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
  310. package/dist/client-search/model/index.d.ts +163 -154
  311. package/dist/client-search/model/index.d.ts.map +1 -1
  312. package/dist/client-search/model/indexSettings.d.ts +6 -6
  313. package/dist/client-search/model/indexSettings.d.ts.map +1 -1
  314. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +162 -160
  315. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  316. package/dist/client-search/model/languages.d.ts +9 -9
  317. package/dist/client-search/model/languages.d.ts.map +1 -1
  318. package/dist/client-search/model/listApiKeysResponse.d.ts +7 -7
  319. package/dist/client-search/model/listApiKeysResponse.d.ts.map +1 -1
  320. package/dist/client-search/model/listClustersResponse.d.ts +9 -9
  321. package/dist/client-search/model/listClustersResponse.d.ts.map +1 -1
  322. package/dist/client-search/model/listIndicesResponse.d.ts +11 -11
  323. package/dist/client-search/model/listIndicesResponse.d.ts.map +1 -1
  324. package/dist/client-search/model/listUserIdsResponse.d.ts +10 -10
  325. package/dist/client-search/model/listUserIdsResponse.d.ts.map +1 -1
  326. package/dist/client-search/model/log.d.ts +63 -63
  327. package/dist/client-search/model/log.d.ts.map +1 -1
  328. package/dist/client-search/model/logQuery.d.ts +14 -14
  329. package/dist/client-search/model/logQuery.d.ts.map +1 -1
  330. package/dist/client-search/model/logType.d.ts +1 -1
  331. package/dist/client-search/model/logType.d.ts.map +1 -1
  332. package/dist/client-search/model/matchLevel.d.ts +4 -4
  333. package/dist/client-search/model/matchLevel.d.ts.map +1 -1
  334. package/dist/client-search/model/matchedGeoLocation.d.ts +14 -14
  335. package/dist/client-search/model/matchedGeoLocation.d.ts.map +1 -1
  336. package/dist/client-search/model/mixedSearchFilters.d.ts +1 -1
  337. package/dist/client-search/model/mixedSearchFilters.d.ts.map +1 -1
  338. package/dist/client-search/model/mode.d.ts +5 -0
  339. package/dist/client-search/model/mode.d.ts.map +1 -0
  340. package/dist/client-search/model/multipleBatchRequest.d.ts +12 -12
  341. package/dist/client-search/model/multipleBatchRequest.d.ts.map +1 -1
  342. package/dist/client-search/model/multipleBatchResponse.d.ts +10 -10
  343. package/dist/client-search/model/multipleBatchResponse.d.ts.map +1 -1
  344. package/dist/client-search/model/numericFilters.d.ts +5 -5
  345. package/dist/client-search/model/numericFilters.d.ts.map +1 -1
  346. package/dist/client-search/model/operationIndexParams.d.ts +13 -13
  347. package/dist/client-search/model/operationIndexParams.d.ts.map +1 -1
  348. package/dist/client-search/model/operationType.d.ts +4 -4
  349. package/dist/client-search/model/operationType.d.ts.map +1 -1
  350. package/dist/client-search/model/optionalFilters.d.ts +5 -5
  351. package/dist/client-search/model/optionalFilters.d.ts.map +1 -1
  352. package/dist/client-search/model/params.d.ts +12 -12
  353. package/dist/client-search/model/params.d.ts.map +1 -1
  354. package/dist/client-search/model/personalization.d.ts +14 -14
  355. package/dist/client-search/model/personalization.d.ts.map +1 -1
  356. package/dist/client-search/model/promote.d.ts +3 -3
  357. package/dist/client-search/model/promote.d.ts.map +1 -1
  358. package/dist/client-search/model/promoteObjectID.d.ts +13 -13
  359. package/dist/client-search/model/promoteObjectID.d.ts.map +1 -1
  360. package/dist/client-search/model/promoteObjectIDs.d.ts +13 -13
  361. package/dist/client-search/model/promoteObjectIDs.d.ts.map +1 -1
  362. package/dist/client-search/model/queryType.d.ts +4 -4
  363. package/dist/client-search/model/queryType.d.ts.map +1 -1
  364. package/dist/client-search/model/rankingInfo.d.ts +50 -50
  365. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  366. package/dist/client-search/model/reRankingApplyFilter.d.ts +5 -5
  367. package/dist/client-search/model/reRankingApplyFilter.d.ts.map +1 -1
  368. package/dist/client-search/model/redirect.d.ts +8 -0
  369. package/dist/client-search/model/redirect.d.ts.map +1 -0
  370. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts +21 -0
  371. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  372. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts +7 -0
  373. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  374. package/dist/client-search/model/removeStopWords.d.ts +4 -4
  375. package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
  376. package/dist/client-search/model/removeUserIdResponse.d.ts +6 -6
  377. package/dist/client-search/model/removeUserIdResponse.d.ts.map +1 -1
  378. package/dist/client-search/model/removeWordsIfNoResults.d.ts +4 -4
  379. package/dist/client-search/model/removeWordsIfNoResults.d.ts.map +1 -1
  380. package/dist/client-search/model/renderingContent.d.ts +7 -7
  381. package/dist/client-search/model/renderingContent.d.ts.map +1 -1
  382. package/dist/client-search/model/replaceSourceResponse.d.ts +6 -6
  383. package/dist/client-search/model/replaceSourceResponse.d.ts.map +1 -1
  384. package/dist/client-search/model/rule.d.ts +29 -29
  385. package/dist/client-search/model/rule.d.ts.map +1 -1
  386. package/dist/client-search/model/saveObjectResponse.d.ts +14 -11
  387. package/dist/client-search/model/saveObjectResponse.d.ts.map +1 -1
  388. package/dist/client-search/model/saveSynonymResponse.d.ts +14 -14
  389. package/dist/client-search/model/saveSynonymResponse.d.ts.map +1 -1
  390. package/dist/client-search/model/scopeType.d.ts +1 -1
  391. package/dist/client-search/model/scopeType.d.ts.map +1 -1
  392. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +21 -21
  393. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  394. package/dist/client-search/model/searchForFacetValuesRequest.d.ts +14 -14
  395. package/dist/client-search/model/searchForFacetValuesRequest.d.ts.map +1 -1
  396. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +4 -4
  397. package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
  398. package/dist/client-search/model/searchForFacets.d.ts +3 -3
  399. package/dist/client-search/model/searchForFacets.d.ts.map +1 -1
  400. package/dist/client-search/model/searchForFacetsOptions.d.ts +20 -20
  401. package/dist/client-search/model/searchForFacetsOptions.d.ts.map +1 -1
  402. package/dist/client-search/model/searchForHits.d.ts +3 -3
  403. package/dist/client-search/model/searchForHits.d.ts.map +1 -1
  404. package/dist/client-search/model/searchForHitsOptions.d.ts +12 -12
  405. package/dist/client-search/model/searchForHitsOptions.d.ts.map +1 -1
  406. package/dist/client-search/model/searchHits.d.ts +12 -4
  407. package/dist/client-search/model/searchHits.d.ts.map +1 -1
  408. package/dist/client-search/model/searchMethodParams.d.ts +6 -6
  409. package/dist/client-search/model/searchMethodParams.d.ts.map +1 -1
  410. package/dist/client-search/model/searchParams.d.ts +3 -3
  411. package/dist/client-search/model/searchParams.d.ts.map +1 -1
  412. package/dist/client-search/model/searchParamsObject.d.ts +3 -3
  413. package/dist/client-search/model/searchParamsObject.d.ts.map +1 -1
  414. package/dist/client-search/model/searchParamsQuery.d.ts +6 -6
  415. package/dist/client-search/model/searchParamsQuery.d.ts.map +1 -1
  416. package/dist/client-search/model/searchParamsString.d.ts +6 -6
  417. package/dist/client-search/model/searchParamsString.d.ts.map +1 -1
  418. package/dist/client-search/model/searchQuery.d.ts +3 -3
  419. package/dist/client-search/model/searchQuery.d.ts.map +1 -1
  420. package/dist/client-search/model/searchResponse.d.ts +3 -3
  421. package/dist/client-search/model/searchResponse.d.ts.map +1 -1
  422. package/dist/client-search/model/searchResponses.d.ts +4 -4
  423. package/dist/client-search/model/searchResponses.d.ts.map +1 -1
  424. package/dist/client-search/model/searchResult.d.ts +4 -0
  425. package/dist/client-search/model/searchResult.d.ts.map +1 -0
  426. package/dist/client-search/model/searchRulesParams.d.ts +31 -31
  427. package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
  428. package/dist/client-search/model/searchRulesResponse.d.ts +19 -19
  429. package/dist/client-search/model/searchRulesResponse.d.ts.map +1 -1
  430. package/dist/client-search/model/searchStrategy.d.ts +4 -1
  431. package/dist/client-search/model/searchStrategy.d.ts.map +1 -1
  432. package/dist/client-search/model/searchSynonymsParams.d.ts +6 -6
  433. package/dist/client-search/model/searchSynonymsParams.d.ts.map +1 -1
  434. package/dist/client-search/model/searchSynonymsResponse.d.ts +11 -11
  435. package/dist/client-search/model/searchSynonymsResponse.d.ts.map +1 -1
  436. package/dist/client-search/model/searchTypeDefault.d.ts +4 -4
  437. package/dist/client-search/model/searchTypeDefault.d.ts.map +1 -1
  438. package/dist/client-search/model/searchTypeFacet.d.ts +4 -4
  439. package/dist/client-search/model/searchTypeFacet.d.ts.map +1 -1
  440. package/dist/client-search/model/searchUserIdsParams.d.ts +21 -21
  441. package/dist/client-search/model/searchUserIdsParams.d.ts.map +1 -1
  442. package/dist/client-search/model/searchUserIdsResponse.d.ts +26 -26
  443. package/dist/client-search/model/searchUserIdsResponse.d.ts.map +1 -1
  444. package/dist/client-search/model/semanticSearch.d.ts +10 -0
  445. package/dist/client-search/model/semanticSearch.d.ts.map +1 -0
  446. package/dist/client-search/model/snippetResult.d.ts +2 -2
  447. package/dist/client-search/model/snippetResult.d.ts.map +1 -1
  448. package/dist/client-search/model/snippetResultOption.d.ts +11 -11
  449. package/dist/client-search/model/snippetResultOption.d.ts.map +1 -1
  450. package/dist/client-search/model/sortRemainingBy.d.ts +4 -4
  451. package/dist/client-search/model/sortRemainingBy.d.ts.map +1 -1
  452. package/dist/client-search/model/source.d.ts +13 -13
  453. package/dist/client-search/model/source.d.ts.map +1 -1
  454. package/dist/client-search/model/standardEntries.d.ts +17 -17
  455. package/dist/client-search/model/standardEntries.d.ts.map +1 -1
  456. package/dist/client-search/model/synonymHit.d.ts +35 -37
  457. package/dist/client-search/model/synonymHit.d.ts.map +1 -1
  458. package/dist/client-search/model/synonymType.d.ts +4 -4
  459. package/dist/client-search/model/synonymType.d.ts.map +1 -1
  460. package/dist/client-search/model/tagFilters.d.ts +5 -5
  461. package/dist/client-search/model/tagFilters.d.ts.map +1 -1
  462. package/dist/client-search/model/taskStatus.d.ts +4 -1
  463. package/dist/client-search/model/taskStatus.d.ts.map +1 -1
  464. package/dist/client-search/model/timeRange.d.ts +10 -10
  465. package/dist/client-search/model/timeRange.d.ts.map +1 -1
  466. package/dist/client-search/model/typoTolerance.d.ts +5 -5
  467. package/dist/client-search/model/typoTolerance.d.ts.map +1 -1
  468. package/dist/client-search/model/typoToleranceEnum.d.ts +1 -1
  469. package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
  470. package/dist/client-search/model/updateApiKeyResponse.d.ts +10 -10
  471. package/dist/client-search/model/updateApiKeyResponse.d.ts.map +1 -1
  472. package/dist/client-search/model/updatedAtResponse.d.ts +13 -13
  473. package/dist/client-search/model/updatedAtResponse.d.ts.map +1 -1
  474. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +17 -17
  475. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
  476. package/dist/client-search/model/updatedRuleResponse.d.ts +14 -14
  477. package/dist/client-search/model/updatedRuleResponse.d.ts.map +1 -1
  478. package/dist/client-search/model/userHighlightResult.d.ts +11 -11
  479. package/dist/client-search/model/userHighlightResult.d.ts.map +1 -1
  480. package/dist/client-search/model/userHit.d.ts +24 -24
  481. package/dist/client-search/model/userHit.d.ts.map +1 -1
  482. package/dist/client-search/model/userId.d.ts +21 -21
  483. package/dist/client-search/model/userId.d.ts.map +1 -1
  484. package/dist/client-search/model/value.d.ts +8 -8
  485. package/dist/client-search/model/value.d.ts.map +1 -1
  486. package/dist/client-search/src/searchClient.d.ts +746 -723
  487. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  488. package/dist/lite/builds/browser.d.ts +5 -5
  489. package/dist/lite/builds/node.d.ts +5 -5
  490. package/dist/lite/{lite.cjs.js → lite.cjs} +183 -185
  491. package/dist/lite/lite.esm.browser.js +365 -417
  492. package/dist/lite/lite.esm.node.js +183 -183
  493. package/dist/lite/lite.umd.js +2 -2
  494. package/dist/lite/model/acl.d.ts +4 -4
  495. package/dist/lite/model/acl.d.ts.map +1 -1
  496. package/dist/lite/model/action.d.ts +4 -4
  497. package/dist/lite/model/action.d.ts.map +1 -1
  498. package/dist/lite/model/addApiKeyResponse.d.ts +10 -10
  499. package/dist/lite/model/addApiKeyResponse.d.ts.map +1 -1
  500. package/dist/lite/model/advancedSyntaxFeatures.d.ts +1 -1
  501. package/dist/lite/model/advancedSyntaxFeatures.d.ts.map +1 -1
  502. package/dist/lite/model/alternativesAsExact.d.ts +1 -1
  503. package/dist/lite/model/alternativesAsExact.d.ts.map +1 -1
  504. package/dist/lite/model/anchoring.d.ts +4 -4
  505. package/dist/lite/model/anchoring.d.ts.map +1 -1
  506. package/dist/lite/model/apiKey.d.ts +38 -38
  507. package/dist/lite/model/apiKey.d.ts.map +1 -1
  508. package/dist/lite/model/aroundPrecision.d.ts +6 -0
  509. package/dist/lite/model/aroundPrecision.d.ts.map +1 -0
  510. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +5 -0
  511. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  512. package/dist/lite/model/aroundRadius.d.ts +5 -5
  513. package/dist/lite/model/aroundRadius.d.ts.map +1 -1
  514. package/dist/lite/model/aroundRadiusAll.d.ts +1 -1
  515. package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
  516. package/dist/lite/model/attributeToUpdate.d.ts +2 -2
  517. package/dist/lite/model/attributeToUpdate.d.ts.map +1 -1
  518. package/dist/lite/model/automaticFacetFilter.d.ts +17 -17
  519. package/dist/lite/model/automaticFacetFilter.d.ts.map +1 -1
  520. package/dist/lite/model/automaticFacetFilters.d.ts +5 -5
  521. package/dist/lite/model/automaticFacetFilters.d.ts.map +1 -1
  522. package/dist/lite/model/baseGetApiKeyResponse.d.ts +10 -10
  523. package/dist/lite/model/baseGetApiKeyResponse.d.ts.map +1 -1
  524. package/dist/lite/model/baseIndexSettings.d.ts +66 -58
  525. package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
  526. package/dist/lite/model/baseSearchParams.d.ts +3 -3
  527. package/dist/lite/model/baseSearchParams.d.ts.map +1 -1
  528. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +118 -122
  529. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  530. package/dist/lite/model/baseSearchResponse.d.ts +105 -101
  531. package/dist/lite/model/baseSearchResponse.d.ts.map +1 -1
  532. package/dist/lite/model/browseParams.d.ts +3 -3
  533. package/dist/lite/model/browseParams.d.ts.map +1 -1
  534. package/dist/lite/model/browseParamsObject.d.ts +3 -3
  535. package/dist/lite/model/browseParamsObject.d.ts.map +1 -1
  536. package/dist/lite/model/browseResponse.d.ts +4 -4
  537. package/dist/lite/model/browseResponse.d.ts.map +1 -1
  538. package/dist/lite/model/builtInOperation.d.ts +11 -11
  539. package/dist/lite/model/builtInOperation.d.ts.map +1 -1
  540. package/dist/lite/model/builtInOperationType.d.ts +4 -4
  541. package/dist/lite/model/builtInOperationType.d.ts.map +1 -1
  542. package/dist/lite/model/clientMethodProps.d.ts +48 -48
  543. package/dist/lite/model/clientMethodProps.d.ts.map +1 -1
  544. package/dist/lite/model/condition.d.ts +16 -16
  545. package/dist/lite/model/condition.d.ts.map +1 -1
  546. package/dist/lite/model/consequence.d.ts +25 -25
  547. package/dist/lite/model/consequence.d.ts.map +1 -1
  548. package/dist/lite/model/consequenceHide.d.ts +9 -9
  549. package/dist/lite/model/consequenceHide.d.ts.map +1 -1
  550. package/dist/lite/model/consequenceParams.d.ts +4 -4
  551. package/dist/lite/model/consequenceParams.d.ts.map +1 -1
  552. package/dist/lite/model/consequenceQuery.d.ts +5 -5
  553. package/dist/lite/model/consequenceQuery.d.ts.map +1 -1
  554. package/dist/lite/model/consequenceQueryObject.d.ts +11 -11
  555. package/dist/lite/model/consequenceQueryObject.d.ts.map +1 -1
  556. package/dist/lite/model/cursor.d.ts +6 -6
  557. package/dist/lite/model/cursor.d.ts.map +1 -1
  558. package/dist/lite/model/deleteByParams.d.ts +27 -0
  559. package/dist/lite/model/deleteByParams.d.ts.map +1 -0
  560. package/dist/lite/model/dictionaryAction.d.ts +4 -4
  561. package/dist/lite/model/dictionaryAction.d.ts.map +1 -1
  562. package/dist/lite/model/dictionaryEntry.d.ts +27 -27
  563. package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
  564. package/dist/lite/model/dictionaryEntryState.d.ts +4 -4
  565. package/dist/lite/model/dictionaryEntryState.d.ts.map +1 -1
  566. package/dist/lite/model/dictionaryLanguage.d.ts +9 -9
  567. package/dist/lite/model/dictionaryLanguage.d.ts.map +1 -1
  568. package/dist/lite/model/dictionaryType.d.ts +1 -1
  569. package/dist/lite/model/dictionaryType.d.ts.map +1 -1
  570. package/dist/lite/model/distinct.d.ts +4 -4
  571. package/dist/lite/model/distinct.d.ts.map +1 -1
  572. package/dist/lite/model/edit.d.ts +12 -12
  573. package/dist/lite/model/edit.d.ts.map +1 -1
  574. package/dist/lite/model/editType.d.ts +4 -4
  575. package/dist/lite/model/editType.d.ts.map +1 -1
  576. package/dist/lite/model/errorBase.d.ts +6 -6
  577. package/dist/lite/model/errorBase.d.ts.map +1 -1
  578. package/dist/lite/model/exactOnSingleWordQuery.d.ts +4 -4
  579. package/dist/lite/model/exactOnSingleWordQuery.d.ts.map +1 -1
  580. package/dist/lite/model/exhaustive.d.ts +26 -0
  581. package/dist/lite/model/exhaustive.d.ts.map +1 -0
  582. package/dist/lite/model/facetFilters.d.ts +5 -5
  583. package/dist/lite/model/facetFilters.d.ts.map +1 -1
  584. package/dist/lite/model/facetHits.d.ts +15 -0
  585. package/dist/lite/model/facetHits.d.ts.map +1 -0
  586. package/dist/lite/model/facetOrdering.d.ts +12 -12
  587. package/dist/lite/model/facetOrdering.d.ts.map +1 -1
  588. package/dist/lite/model/facets.d.ts +9 -9
  589. package/dist/lite/model/facets.d.ts.map +1 -1
  590. package/dist/lite/model/facetsStats.d.ts +18 -18
  591. package/dist/lite/model/facetsStats.d.ts.map +1 -1
  592. package/dist/lite/model/fetchedIndex.d.ts +46 -46
  593. package/dist/lite/model/fetchedIndex.d.ts.map +1 -1
  594. package/dist/lite/model/getApiKeyResponse.d.ts +3 -3
  595. package/dist/lite/model/getApiKeyResponse.d.ts.map +1 -1
  596. package/dist/lite/model/highlightResult.d.ts +2 -2
  597. package/dist/lite/model/highlightResult.d.ts.map +1 -1
  598. package/dist/lite/model/highlightResultOption.d.ts +19 -19
  599. package/dist/lite/model/highlightResultOption.d.ts.map +1 -1
  600. package/dist/lite/model/hit.d.ts +22 -22
  601. package/dist/lite/model/hit.d.ts.map +1 -1
  602. package/dist/lite/model/ignorePlurals.d.ts +4 -4
  603. package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
  604. package/dist/lite/model/index.d.ts +118 -107
  605. package/dist/lite/model/index.d.ts.map +1 -1
  606. package/dist/lite/model/indexSettings.d.ts +6 -6
  607. package/dist/lite/model/indexSettings.d.ts.map +1 -1
  608. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +162 -160
  609. package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  610. package/dist/lite/model/languages.d.ts +9 -9
  611. package/dist/lite/model/languages.d.ts.map +1 -1
  612. package/dist/lite/model/listIndicesResponse.d.ts +11 -11
  613. package/dist/lite/model/listIndicesResponse.d.ts.map +1 -1
  614. package/dist/lite/model/logType.d.ts +1 -1
  615. package/dist/lite/model/logType.d.ts.map +1 -1
  616. package/dist/lite/model/matchLevel.d.ts +4 -4
  617. package/dist/lite/model/matchLevel.d.ts.map +1 -1
  618. package/dist/lite/model/matchedGeoLocation.d.ts +14 -14
  619. package/dist/lite/model/matchedGeoLocation.d.ts.map +1 -1
  620. package/dist/lite/model/mixedSearchFilters.d.ts +1 -1
  621. package/dist/lite/model/mixedSearchFilters.d.ts.map +1 -1
  622. package/dist/lite/model/mode.d.ts +5 -0
  623. package/dist/lite/model/mode.d.ts.map +1 -0
  624. package/dist/lite/model/numericFilters.d.ts +5 -5
  625. package/dist/lite/model/numericFilters.d.ts.map +1 -1
  626. package/dist/lite/model/operationType.d.ts +4 -4
  627. package/dist/lite/model/operationType.d.ts.map +1 -1
  628. package/dist/lite/model/optionalFilters.d.ts +5 -5
  629. package/dist/lite/model/optionalFilters.d.ts.map +1 -1
  630. package/dist/lite/model/params.d.ts +12 -12
  631. package/dist/lite/model/params.d.ts.map +1 -1
  632. package/dist/lite/model/personalization.d.ts +14 -14
  633. package/dist/lite/model/personalization.d.ts.map +1 -1
  634. package/dist/lite/model/promote.d.ts +3 -3
  635. package/dist/lite/model/promote.d.ts.map +1 -1
  636. package/dist/lite/model/promoteObjectID.d.ts +13 -13
  637. package/dist/lite/model/promoteObjectID.d.ts.map +1 -1
  638. package/dist/lite/model/promoteObjectIDs.d.ts +13 -13
  639. package/dist/lite/model/promoteObjectIDs.d.ts.map +1 -1
  640. package/dist/lite/model/queryType.d.ts +4 -4
  641. package/dist/lite/model/queryType.d.ts.map +1 -1
  642. package/dist/lite/model/rankingInfo.d.ts +50 -50
  643. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  644. package/dist/lite/model/reRankingApplyFilter.d.ts +5 -5
  645. package/dist/lite/model/reRankingApplyFilter.d.ts.map +1 -1
  646. package/dist/lite/model/redirect.d.ts +8 -0
  647. package/dist/lite/model/redirect.d.ts.map +1 -0
  648. package/dist/lite/model/redirectRuleIndexMetadata.d.ts +21 -0
  649. package/dist/lite/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  650. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts +7 -0
  651. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  652. package/dist/lite/model/removeStopWords.d.ts +4 -4
  653. package/dist/lite/model/removeStopWords.d.ts.map +1 -1
  654. package/dist/lite/model/removeWordsIfNoResults.d.ts +4 -4
  655. package/dist/lite/model/removeWordsIfNoResults.d.ts.map +1 -1
  656. package/dist/lite/model/renderingContent.d.ts +7 -7
  657. package/dist/lite/model/renderingContent.d.ts.map +1 -1
  658. package/dist/lite/model/rule.d.ts +29 -29
  659. package/dist/lite/model/rule.d.ts.map +1 -1
  660. package/dist/lite/model/scopeType.d.ts +1 -1
  661. package/dist/lite/model/scopeType.d.ts.map +1 -1
  662. package/dist/lite/model/searchForFacetValuesResponse.d.ts +5 -0
  663. package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -0
  664. package/dist/lite/model/searchForFacets.d.ts +3 -3
  665. package/dist/lite/model/searchForFacets.d.ts.map +1 -1
  666. package/dist/lite/model/searchForFacetsOptions.d.ts +20 -20
  667. package/dist/lite/model/searchForFacetsOptions.d.ts.map +1 -1
  668. package/dist/lite/model/searchForHits.d.ts +3 -3
  669. package/dist/lite/model/searchForHits.d.ts.map +1 -1
  670. package/dist/lite/model/searchForHitsOptions.d.ts +12 -12
  671. package/dist/lite/model/searchForHitsOptions.d.ts.map +1 -1
  672. package/dist/lite/model/searchHits.d.ts +12 -4
  673. package/dist/lite/model/searchHits.d.ts.map +1 -1
  674. package/dist/lite/model/searchMethodParams.d.ts +6 -6
  675. package/dist/lite/model/searchMethodParams.d.ts.map +1 -1
  676. package/dist/lite/model/searchParams.d.ts +3 -3
  677. package/dist/lite/model/searchParams.d.ts.map +1 -1
  678. package/dist/lite/model/searchParamsObject.d.ts +3 -3
  679. package/dist/lite/model/searchParamsObject.d.ts.map +1 -1
  680. package/dist/lite/model/searchParamsQuery.d.ts +6 -6
  681. package/dist/lite/model/searchParamsQuery.d.ts.map +1 -1
  682. package/dist/lite/model/searchParamsString.d.ts +6 -6
  683. package/dist/lite/model/searchParamsString.d.ts.map +1 -1
  684. package/dist/lite/model/searchQuery.d.ts +3 -3
  685. package/dist/lite/model/searchQuery.d.ts.map +1 -1
  686. package/dist/lite/model/searchResponse.d.ts +3 -3
  687. package/dist/lite/model/searchResponse.d.ts.map +1 -1
  688. package/dist/lite/model/searchResponses.d.ts +4 -4
  689. package/dist/lite/model/searchResponses.d.ts.map +1 -1
  690. package/dist/lite/model/searchResult.d.ts +4 -0
  691. package/dist/lite/model/searchResult.d.ts.map +1 -0
  692. package/dist/lite/model/searchStrategy.d.ts +4 -1
  693. package/dist/lite/model/searchStrategy.d.ts.map +1 -1
  694. package/dist/lite/model/searchSynonymsResponse.d.ts +11 -11
  695. package/dist/lite/model/searchSynonymsResponse.d.ts.map +1 -1
  696. package/dist/lite/model/searchTypeDefault.d.ts +4 -4
  697. package/dist/lite/model/searchTypeDefault.d.ts.map +1 -1
  698. package/dist/lite/model/searchTypeFacet.d.ts +4 -4
  699. package/dist/lite/model/searchTypeFacet.d.ts.map +1 -1
  700. package/dist/lite/model/semanticSearch.d.ts +10 -0
  701. package/dist/lite/model/semanticSearch.d.ts.map +1 -0
  702. package/dist/lite/model/snippetResult.d.ts +2 -2
  703. package/dist/lite/model/snippetResult.d.ts.map +1 -1
  704. package/dist/lite/model/snippetResultOption.d.ts +11 -11
  705. package/dist/lite/model/snippetResultOption.d.ts.map +1 -1
  706. package/dist/lite/model/sortRemainingBy.d.ts +4 -4
  707. package/dist/lite/model/sortRemainingBy.d.ts.map +1 -1
  708. package/dist/lite/model/source.d.ts +13 -13
  709. package/dist/lite/model/source.d.ts.map +1 -1
  710. package/dist/lite/model/standardEntries.d.ts +17 -17
  711. package/dist/lite/model/standardEntries.d.ts.map +1 -1
  712. package/dist/lite/model/synonymHit.d.ts +35 -37
  713. package/dist/lite/model/synonymHit.d.ts.map +1 -1
  714. package/dist/lite/model/synonymType.d.ts +4 -4
  715. package/dist/lite/model/synonymType.d.ts.map +1 -1
  716. package/dist/lite/model/tagFilters.d.ts +5 -5
  717. package/dist/lite/model/tagFilters.d.ts.map +1 -1
  718. package/dist/lite/model/taskStatus.d.ts +4 -1
  719. package/dist/lite/model/taskStatus.d.ts.map +1 -1
  720. package/dist/lite/model/timeRange.d.ts +10 -10
  721. package/dist/lite/model/timeRange.d.ts.map +1 -1
  722. package/dist/lite/model/typoTolerance.d.ts +5 -5
  723. package/dist/lite/model/typoTolerance.d.ts.map +1 -1
  724. package/dist/lite/model/typoToleranceEnum.d.ts +1 -1
  725. package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
  726. package/dist/lite/model/updatedRuleResponse.d.ts +14 -14
  727. package/dist/lite/model/updatedRuleResponse.d.ts.map +1 -1
  728. package/dist/lite/model/userId.d.ts +21 -21
  729. package/dist/lite/model/userId.d.ts.map +1 -1
  730. package/dist/lite/model/value.d.ts +8 -8
  731. package/dist/lite/model/value.d.ts.map +1 -1
  732. package/dist/lite/src/liteClient.d.ts +50 -50
  733. package/dist/lite/src/liteClient.d.ts.map +1 -1
  734. package/index.d.ts +1 -1
  735. package/index.js +1 -1
  736. package/lite/builds/browser.ts +1 -1
  737. package/lite/builds/node.ts +1 -1
  738. package/lite/model/acl.ts +3 -2
  739. package/lite/model/action.ts +2 -2
  740. package/lite/model/addApiKeyResponse.ts +3 -3
  741. package/lite/model/advancedSyntaxFeatures.ts +1 -1
  742. package/lite/model/alternativesAsExact.ts +1 -1
  743. package/lite/model/anchoring.ts +2 -2
  744. package/lite/model/apiKey.ts +10 -10
  745. package/lite/model/aroundPrecision.ts +8 -0
  746. package/lite/model/aroundPrecisionFromValueInner.ts +7 -0
  747. package/lite/model/aroundRadius.ts +2 -2
  748. package/lite/model/aroundRadiusAll.ts +1 -1
  749. package/lite/model/attributeToUpdate.ts +1 -1
  750. package/lite/model/automaticFacetFilter.ts +1 -1
  751. package/lite/model/automaticFacetFilters.ts +1 -1
  752. package/lite/model/baseGetApiKeyResponse.ts +3 -3
  753. package/lite/model/baseIndexSettings.ts +25 -15
  754. package/lite/model/baseSearchParams.ts +1 -1
  755. package/lite/model/baseSearchParamsWithoutQuery.ts +40 -45
  756. package/lite/model/baseSearchResponse.ts +37 -31
  757. package/lite/model/browseParams.ts +1 -1
  758. package/lite/model/browseParamsObject.ts +1 -1
  759. package/lite/model/browseResponse.ts +1 -1
  760. package/lite/model/builtInOperation.ts +2 -2
  761. package/lite/model/builtInOperationType.ts +2 -2
  762. package/lite/model/clientMethodProps.ts +4 -4
  763. package/lite/model/condition.ts +1 -1
  764. package/lite/model/consequence.ts +6 -6
  765. package/lite/model/consequenceHide.ts +3 -3
  766. package/lite/model/consequenceParams.ts +1 -1
  767. package/lite/model/consequenceQuery.ts +1 -1
  768. package/lite/model/consequenceQueryObject.ts +1 -1
  769. package/lite/model/cursor.ts +2 -2
  770. package/lite/model/deleteByParams.ts +36 -0
  771. package/lite/model/dictionaryAction.ts +1 -1
  772. package/lite/model/dictionaryEntry.ts +7 -7
  773. package/lite/model/dictionaryEntryState.ts +2 -2
  774. package/lite/model/dictionaryLanguage.ts +3 -3
  775. package/lite/model/dictionaryType.ts +1 -1
  776. package/lite/model/distinct.ts +2 -2
  777. package/lite/model/edit.ts +1 -1
  778. package/lite/model/editType.ts +1 -1
  779. package/lite/model/errorBase.ts +1 -1
  780. package/lite/model/exactOnSingleWordQuery.ts +2 -2
  781. package/lite/model/exhaustive.ts +31 -0
  782. package/lite/model/facetFilters.ts +2 -2
  783. package/lite/model/facetHits.ts +18 -0
  784. package/lite/model/facetOrdering.ts +3 -3
  785. package/lite/model/facets.ts +2 -2
  786. package/lite/model/facetsStats.ts +5 -5
  787. package/lite/model/fetchedIndex.ts +3 -3
  788. package/lite/model/getApiKeyResponse.ts +1 -1
  789. package/lite/model/highlightResult.ts +1 -1
  790. package/lite/model/highlightResultOption.ts +2 -2
  791. package/lite/model/hit.ts +2 -2
  792. package/lite/model/ignorePlurals.ts +2 -2
  793. package/lite/model/index.ts +13 -2
  794. package/lite/model/indexSettings.ts +2 -2
  795. package/lite/model/indexSettingsAsSearchParams.ts +51 -47
  796. package/lite/model/languages.ts +2 -2
  797. package/lite/model/listIndicesResponse.ts +2 -2
  798. package/lite/model/logType.ts +1 -1
  799. package/lite/model/matchLevel.ts +1 -1
  800. package/lite/model/matchedGeoLocation.ts +1 -1
  801. package/lite/model/mixedSearchFilters.ts +1 -1
  802. package/lite/model/mode.ts +6 -0
  803. package/lite/model/numericFilters.ts +2 -2
  804. package/lite/model/operationType.ts +2 -2
  805. package/lite/model/optionalFilters.ts +2 -2
  806. package/lite/model/params.ts +2 -2
  807. package/lite/model/personalization.ts +1 -1
  808. package/lite/model/promote.ts +1 -1
  809. package/lite/model/promoteObjectID.ts +4 -4
  810. package/lite/model/promoteObjectIDs.ts +4 -4
  811. package/lite/model/queryType.ts +2 -2
  812. package/lite/model/rankingInfo.ts +1 -1
  813. package/lite/model/reRankingApplyFilter.ts +2 -2
  814. package/lite/model/redirect.ts +10 -0
  815. package/lite/model/redirectRuleIndexMetadata.ts +27 -0
  816. package/lite/model/redirectRuleIndexMetadataData.ts +8 -0
  817. package/lite/model/removeStopWords.ts +2 -2
  818. package/lite/model/removeWordsIfNoResults.ts +2 -2
  819. package/lite/model/renderingContent.ts +2 -2
  820. package/lite/model/rule.ts +6 -6
  821. package/lite/model/scopeType.ts +1 -1
  822. package/lite/model/searchForFacetValuesResponse.ts +7 -0
  823. package/lite/model/searchForFacets.ts +1 -1
  824. package/lite/model/searchForFacetsOptions.ts +4 -4
  825. package/lite/model/searchForHits.ts +1 -1
  826. package/lite/model/searchForHitsOptions.ts +2 -2
  827. package/lite/model/searchHits.ts +12 -2
  828. package/lite/model/searchMethodParams.ts +1 -1
  829. package/lite/model/searchParams.ts +1 -1
  830. package/lite/model/searchParamsObject.ts +1 -1
  831. package/lite/model/searchParamsQuery.ts +2 -2
  832. package/lite/model/searchParamsString.ts +2 -2
  833. package/lite/model/searchQuery.ts +1 -1
  834. package/lite/model/searchResponse.ts +1 -1
  835. package/lite/model/searchResponses.ts +4 -4
  836. package/lite/model/searchResult.ts +6 -0
  837. package/lite/model/searchStrategy.ts +4 -1
  838. package/lite/model/searchSynonymsResponse.ts +3 -3
  839. package/lite/model/searchTypeDefault.ts +2 -2
  840. package/lite/model/searchTypeFacet.ts +2 -2
  841. package/lite/model/semanticSearch.ts +11 -0
  842. package/lite/model/snippetResult.ts +1 -1
  843. package/lite/model/snippetResultOption.ts +2 -2
  844. package/lite/model/sortRemainingBy.ts +2 -2
  845. package/lite/model/source.ts +4 -4
  846. package/lite/model/standardEntries.ts +5 -5
  847. package/lite/model/synonymHit.ts +7 -10
  848. package/lite/model/synonymType.ts +2 -2
  849. package/lite/model/tagFilters.ts +2 -2
  850. package/lite/model/taskStatus.ts +4 -1
  851. package/lite/model/timeRange.ts +1 -1
  852. package/lite/model/typoTolerance.ts +2 -2
  853. package/lite/model/typoToleranceEnum.ts +1 -1
  854. package/lite/model/updatedRuleResponse.ts +4 -4
  855. package/lite/model/userId.ts +3 -3
  856. package/lite/model/value.ts +1 -1
  857. package/lite/src/liteClient.ts +9 -9
  858. package/lite.js +1 -1
  859. package/package.json +23 -21
  860. package/dist/algoliasearch/jest.config.d.ts +0 -4
  861. package/dist/algoliasearch/jest.config.d.ts.map +0 -1
  862. package/dist/builds/browser.d.ts.map +0 -1
  863. package/dist/builds/models.d.ts.map +0 -1
  864. package/dist/builds/node.d.ts.map +0 -1
  865. package/dist/client-search/model/synonymHitHighlightResult.d.ts +0 -12
  866. package/dist/client-search/model/synonymHitHighlightResult.d.ts.map +0 -1
  867. package/dist/lite/model/synonymHitHighlightResult.d.ts +0 -12
  868. package/dist/lite/model/synonymHitHighlightResult.d.ts.map +0 -1
  869. package/lite/model/synonymHitHighlightResult.ts +0 -15
@@ -1,724 +1,747 @@
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.9";
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): 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): 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): 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): 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, 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.90";
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
+ * Helper: calls the `search` method but with certainty that we will only request Algolia records (hits) and not facets.
132
+ * 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.
133
+ *
134
+ * @summary Search multiple indices for `hits`.
135
+ * @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
136
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
137
+ */
138
+ searchForHits<T_1>(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<{
139
+ results: SearchResponse<T_1>[];
140
+ }>;
141
+ /**
142
+ * Helper: calls the `search` method but with certainty that we will only request Algolia facets and not records (hits).
143
+ * 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.
144
+ *
145
+ * @summary Search multiple indices for `facets`.
146
+ * @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
147
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
148
+ */
149
+ searchForFacets(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<{
150
+ results: SearchForFacetValuesResponse[];
151
+ }>;
152
+ /**
153
+ * Add a new API key with specific permissions and restrictions. The request must be authenticated with the admin API key. The response returns an API key string.
154
+ *
155
+ * @summary Add API key.
156
+ * @param apiKey - The apiKey object.
157
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
158
+ */
159
+ addApiKey(apiKey: ApiKey, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
160
+ /**
161
+ * If you use an existing `objectID`, the existing record will be replaced with the new one. To update only some attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add multiple records to your index in a single API request, use the [`batch` operation](#tag/Records/operation/batch).
162
+ *
163
+ * @summary Add or update a record (using objectID).
164
+ * @param addOrUpdateObject - The addOrUpdateObject object.
165
+ * @param addOrUpdateObject.indexName - Index on which to perform the request.
166
+ * @param addOrUpdateObject.objectID - Unique record (object) identifier.
167
+ * @param addOrUpdateObject.body - Algolia record.
168
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
169
+ */
170
+ addOrUpdateObject({ indexName, objectID, body }: AddOrUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
171
+ /**
172
+ * Add a source to the list of allowed sources.
173
+ *
174
+ * @summary Add a source.
175
+ * @param source - Source to add.
176
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
177
+ */
178
+ appendSource(source: Source, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
179
+ /**
180
+ * Assign or move 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.
181
+ *
182
+ * @summary Assign or move a user ID.
183
+ * @param assignUserId - The assignUserId object.
184
+ * @param assignUserId.xAlgoliaUserID - UserID to assign.
185
+ * @param assignUserId.assignUserIdParams - The assignUserIdParams object.
186
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
187
+ */
188
+ assignUserId({ xAlgoliaUserID, assignUserIdParams }: AssignUserIdProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
189
+ /**
190
+ * To reduce the time spent on network round trips, you can perform several write actions in a single API call. Actions are applied in the order they are specified. The supported `action`s are equivalent to the individual operations of the same name.
191
+ *
192
+ * @summary Batch write operations on one index.
193
+ * @param batch - The batch object.
194
+ * @param batch.indexName - Index on which to perform the request.
195
+ * @param batch.batchWriteParams - The batchWriteParams object.
196
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
197
+ */
198
+ batch({ indexName, batchWriteParams }: BatchProps, requestOptions?: RequestOptions): Promise<BatchResponse>;
199
+ /**
200
+ * Assign multiple user IDs to a cluster. **You can\'t _move_ users with this operation.**.
201
+ *
202
+ * @summary Batch assign userIDs.
203
+ * @param batchAssignUserIds - The batchAssignUserIds object.
204
+ * @param batchAssignUserIds.xAlgoliaUserID - UserID to assign.
205
+ * @param batchAssignUserIds.batchAssignUserIdsParams - The batchAssignUserIdsParams object.
206
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
207
+ */
208
+ batchAssignUserIds({ xAlgoliaUserID, batchAssignUserIdsParams }: BatchAssignUserIdsProps, requestOptions?: RequestOptions): Promise<CreatedAtResponse>;
209
+ /**
210
+ * Add or remove a batch of dictionary entries.
211
+ *
212
+ * @summary Batch dictionary entries.
213
+ * @param batchDictionaryEntries - The batchDictionaryEntries object.
214
+ * @param batchDictionaryEntries.dictionaryName - Dictionary to search in.
215
+ * @param batchDictionaryEntries.batchDictionaryEntriesParams - The batchDictionaryEntriesParams object.
216
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
217
+ */
218
+ batchDictionaryEntries({ dictionaryName, batchDictionaryEntriesParams, }: BatchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
219
+ /**
220
+ * Retrieve up to 1,000 records per call. Supports full-text search and filters. For better performance, it doesn\'t support: - The `distinct` query parameter - Sorting by typos, proximity, words, or geographical distance.
221
+ *
222
+ * @summary Get all records from an index.
223
+ * @param browse - The browse object.
224
+ * @param browse.indexName - Index on which to perform the request.
225
+ * @param browse.browseParams - The browseParams object.
226
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
227
+ */
228
+ browse<T_2>({ indexName, browseParams }: BrowseProps, requestOptions?: RequestOptions): Promise<BrowseResponse<T_2>>;
229
+ /**
230
+ * Delete all synonyms in the index.
231
+ *
232
+ * @summary Delete all synonyms.
233
+ * @param clearAllSynonyms - The clearAllSynonyms object.
234
+ * @param clearAllSynonyms.indexName - Index on which to perform the request.
235
+ * @param clearAllSynonyms.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
236
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
237
+ */
238
+ clearAllSynonyms({ indexName, forwardToReplicas }: ClearAllSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
239
+ /**
240
+ * Delete the records but leave settings and index-specific API keys untouched.
241
+ *
242
+ * @summary Delete all records from an index.
243
+ * @param clearObjects - The clearObjects object.
244
+ * @param clearObjects.indexName - Index on which to perform the request.
245
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
246
+ */
247
+ clearObjects({ indexName }: ClearObjectsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
248
+ /**
249
+ * Delete all rules in the index.
250
+ *
251
+ * @summary Delete all rules.
252
+ * @param clearRules - The clearRules object.
253
+ * @param clearRules.indexName - Index on which to perform the request.
254
+ * @param clearRules.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
255
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
256
+ */
257
+ clearRules({ indexName, forwardToReplicas }: ClearRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
258
+ /**
259
+ * This method allow you to send requests to the Algolia REST API.
260
+ *
261
+ * @summary Send requests to the Algolia REST API.
262
+ * @param del - The del object.
263
+ * @param del.path - Path of the endpoint, anything after \"/1\" must be specified.
264
+ * @param del.parameters - Query parameters to apply to the current query.
265
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
266
+ */
267
+ del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
268
+ /**
269
+ * Delete an existing API key. The request must be authenticated with the admin API key.
270
+ *
271
+ * @summary Delete API key.
272
+ * @param deleteApiKey - The deleteApiKey object.
273
+ * @param deleteApiKey.key - API key.
274
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
275
+ */
276
+ deleteApiKey({ key }: DeleteApiKeyProps, requestOptions?: RequestOptions): Promise<DeleteApiKeyResponse>;
277
+ /**
278
+ * This operation doesn\'t support all the query options, only its filters (numeric, facet, or tag) and geo queries. It doesn\'t accept empty filters or queries.
279
+ *
280
+ * @summary Delete all records matching a query.
281
+ * @param deleteBy - The deleteBy object.
282
+ * @param deleteBy.indexName - Index on which to perform the request.
283
+ * @param deleteBy.deleteByParams - The deleteByParams object.
284
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
285
+ */
286
+ deleteBy({ indexName, deleteByParams }: DeleteByProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
287
+ /**
288
+ * Delete an existing index.
289
+ *
290
+ * @summary Delete index.
291
+ * @param deleteIndex - The deleteIndex object.
292
+ * @param deleteIndex.indexName - Index on which to perform the request.
293
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
294
+ */
295
+ deleteIndex({ indexName }: DeleteIndexProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
296
+ /**
297
+ * To delete a set of records matching a query, use the [`deleteByQuery` operation](#tag/Records/operation/deleteBy) instead.
298
+ *
299
+ * @summary Delete a record.
300
+ * @param deleteObject - The deleteObject object.
301
+ * @param deleteObject.indexName - Index on which to perform the request.
302
+ * @param deleteObject.objectID - Unique record (object) identifier.
303
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
304
+ */
305
+ deleteObject({ indexName, objectID }: DeleteObjectProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
306
+ /**
307
+ * Delete a rule by its `objectID`. To find the `objectID` for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
308
+ *
309
+ * @summary Delete a rule.
310
+ * @param deleteRule - The deleteRule object.
311
+ * @param deleteRule.indexName - Index on which to perform the request.
312
+ * @param deleteRule.objectID - Unique identifier of a rule object.
313
+ * @param deleteRule.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
314
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
315
+ */
316
+ deleteRule({ indexName, objectID, forwardToReplicas }: DeleteRuleProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
317
+ /**
318
+ * Remove a source from the list of allowed sources.
319
+ *
320
+ * @summary Remove a source.
321
+ * @param deleteSource - The deleteSource object.
322
+ * @param deleteSource.source - IP address range of the source.
323
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
324
+ */
325
+ deleteSource({ source }: DeleteSourceProps, requestOptions?: RequestOptions): Promise<DeleteSourceResponse>;
326
+ /**
327
+ * Delete a synonym by its `objectID`. To find the object IDs of your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
328
+ *
329
+ * @summary Delete a synonym.
330
+ * @param deleteSynonym - The deleteSynonym object.
331
+ * @param deleteSynonym.indexName - Index on which to perform the request.
332
+ * @param deleteSynonym.objectID - Unique identifier of a synonym object.
333
+ * @param deleteSynonym.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
334
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
335
+ */
336
+ deleteSynonym({ indexName, objectID, forwardToReplicas }: DeleteSynonymProps, requestOptions?: RequestOptions): Promise<DeletedAtResponse>;
337
+ /**
338
+ * This method allow you to send requests to the Algolia REST API.
339
+ *
340
+ * @summary Send requests to the Algolia REST API.
341
+ * @param get - The get object.
342
+ * @param get.path - Path of the endpoint, anything after \"/1\" must be specified.
343
+ * @param get.parameters - Query parameters to apply to the current query.
344
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
345
+ */
346
+ get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
347
+ /**
348
+ * Get the permissions and restrictions of a specific 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.
349
+ *
350
+ * @summary Get API key permissions.
351
+ * @param getApiKey - The getApiKey object.
352
+ * @param getApiKey.key - API key.
353
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
354
+ */
355
+ getApiKey({ key }: GetApiKeyProps, requestOptions?: RequestOptions): Promise<GetApiKeyResponse>;
356
+ /**
357
+ * Lists Algolia\'s [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) and any customizations applied to each language\'s [stop word](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-stop-words/), [plural](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-plurals-and-other-declensions/), and [segmentation (compound)](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) features.
358
+ *
359
+ * @summary List available languages.
360
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
361
+ */
362
+ getDictionaryLanguages(requestOptions?: RequestOptions): Promise<Record<string, Languages>>;
363
+ /**
364
+ * Get the languages for which [stop words are turned off](#tag/Dictionaries/operation/setDictionarySettings).
365
+ *
366
+ * @summary Get stop word settings.
367
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
368
+ */
369
+ getDictionarySettings(requestOptions?: RequestOptions): Promise<GetDictionarySettingsResponse>;
370
+ /**
371
+ * 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. There\'s also a logging limit of 1,000 API calls per server. 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. > **Note**: To fetch the logs for a Distributed Search Network (DSN) cluster, target the [DSN\'s endpoint](https://www.algolia.com/doc/guides/scaling/distributed-search-network-dsn/#accessing-dsn-servers).
372
+ *
373
+ * @summary Return the latest log entries.
374
+ * @param getLogs - The getLogs object.
375
+ * @param getLogs.offset - First log entry to retrieve. Sorted by decreasing date with 0 being the most recent.
376
+ * @param getLogs.length - Maximum number of entries to retrieve.
377
+ * @param getLogs.indexName - Index for which log entries should be retrieved. When omitted, log entries are retrieved for all indices.
378
+ * @param getLogs.type - Type of log entries to retrieve. When omitted, all log entries are retrieved.
379
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
380
+ */
381
+ getLogs({ offset, length, indexName, type }?: GetLogsProps, requestOptions?: RequestOptions | undefined): Promise<GetLogsResponse>;
382
+ /**
383
+ * To get more than one record, use the [`objects` operation](#tag/Records/operation/getObjects).
384
+ *
385
+ * @summary Get a record.
386
+ * @param getObject - The getObject object.
387
+ * @param getObject.indexName - Index on which to perform the request.
388
+ * @param getObject.objectID - Unique record (object) identifier.
389
+ * @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, even when not specified. [`unretrievableAttributes`](https://www.algolia.com/doc/api-reference/api-parameters/unretrievableAttributes/) won\'t be retrieved unless the request is authenticated with the admin API key.
390
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
391
+ */
392
+ getObject({ indexName, objectID, attributesToRetrieve }: GetObjectProps, requestOptions?: RequestOptions): Promise<Record<string, string>>;
393
+ /**
394
+ * Retrieve one or more records, potentially from different indices, in a single API operation. Results will be received in the same order as the requests.
395
+ *
396
+ * @summary Get multiple records.
397
+ * @param getObjectsParams - Request object.
398
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
399
+ */
400
+ getObjects<T_3>(getObjectsParams: GetObjectsParams, requestOptions?: RequestOptions): Promise<GetObjectsResponse<T_3>>;
401
+ /**
402
+ * Get a rule by its `objectID`. To find the `objectID` for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
403
+ *
404
+ * @summary Get a rule.
405
+ * @param getRule - The getRule object.
406
+ * @param getRule.indexName - Index on which to perform the request.
407
+ * @param getRule.objectID - Unique identifier of a rule object.
408
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
409
+ */
410
+ getRule({ indexName, objectID }: GetRuleProps, requestOptions?: RequestOptions): Promise<Rule>;
411
+ /**
412
+ * Return an object containing an index\'s [configuration settings](https://www.algolia.com/doc/api-reference/settings-api-parameters/).
413
+ *
414
+ * @summary Get index settings.
415
+ * @param getSettings - The getSettings object.
416
+ * @param getSettings.indexName - Index on which to perform the request.
417
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
418
+ */
419
+ getSettings({ indexName }: GetSettingsProps, requestOptions?: RequestOptions): Promise<IndexSettings>;
420
+ /**
421
+ * Get all allowed sources (IP addresses).
422
+ *
423
+ * @summary Get all allowed IP addresses.
424
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
425
+ */
426
+ getSources(requestOptions?: RequestOptions): Promise<Source[]>;
427
+ /**
428
+ * Get a syonym by its `objectID`. To find the object IDs for your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
429
+ *
430
+ * @summary Get a synonym object.
431
+ * @param getSynonym - The getSynonym object.
432
+ * @param getSynonym.indexName - Index on which to perform the request.
433
+ * @param getSynonym.objectID - Unique identifier of a synonym object.
434
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
435
+ */
436
+ getSynonym({ indexName, objectID }: GetSynonymProps, requestOptions?: RequestOptions): Promise<SynonymHit>;
437
+ /**
438
+ * Some operations, such as copying an index, will respond with a `taskID` value. Use this value here to check the status of that task.
439
+ *
440
+ * @summary Check a task\'s status.
441
+ * @param getTask - The getTask object.
442
+ * @param getTask.indexName - Index on which to perform the request.
443
+ * @param getTask.taskID - Unique task identifier.
444
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
445
+ */
446
+ getTask({ indexName, taskID }: GetTaskProps, requestOptions?: RequestOptions): Promise<GetTaskResponse>;
447
+ /**
448
+ * Get the IDs of the 10 users with the highest number of records per cluster. Since it can take up to a few seconds to get the data from the different clusters, the response isn\'t real-time.
449
+ *
450
+ * @summary Get top userID.
451
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
452
+ */
453
+ getTopUserIds(requestOptions?: RequestOptions): Promise<GetTopUserIdsResponse>;
454
+ /**
455
+ * Returns the userID data stored in the mapping. Since it can take up to a few seconds to get the data from the different clusters, the response isn\'t real-time.
456
+ *
457
+ * @summary Get userID.
458
+ * @param getUserId - The getUserId object.
459
+ * @param getUserId.userID - UserID to assign.
460
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
461
+ */
462
+ getUserId({ userID }: GetUserIdProps, requestOptions?: RequestOptions): Promise<UserId>;
463
+ /**
464
+ * 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.
465
+ *
466
+ * @summary Get migration and user mapping status.
467
+ * @param hasPendingMappings - The hasPendingMappings object.
468
+ * @param hasPendingMappings.getClusters - Indicates whether to include the cluster\'s pending mapping state in the response.
469
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
470
+ */
471
+ hasPendingMappings({ getClusters }?: HasPendingMappingsProps, requestOptions?: RequestOptions | undefined): Promise<HasPendingMappingsResponse>;
472
+ /**
473
+ * List all API keys associated with your Algolia application, including their permissions and restrictions.
474
+ *
475
+ * @summary List API keys.
476
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
477
+ */
478
+ listApiKeys(requestOptions?: RequestOptions): Promise<ListApiKeysResponse>;
479
+ /**
480
+ * List the available clusters in a multi-cluster setup.
481
+ *
482
+ * @summary List clusters.
483
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
484
+ */
485
+ listClusters(requestOptions?: RequestOptions): Promise<ListClustersResponse>;
486
+ /**
487
+ * List indices in an Algolia application.
488
+ *
489
+ * @summary List indices.
490
+ * @param listIndices - The listIndices object.
491
+ * @param listIndices.page - Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
492
+ * @param listIndices.hitsPerPage - Maximum number of hits per page.
493
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
494
+ */
495
+ listIndices({ page, hitsPerPage }?: ListIndicesProps, requestOptions?: RequestOptions | undefined): Promise<ListIndicesResponse>;
496
+ /**
497
+ * List the userIDs assigned to a multi-cluster application. Since it can take up to a few seconds to get the data from the different clusters, the response isn\'t real-time.
498
+ *
499
+ * @summary List userIDs.
500
+ * @param listUserIds - The listUserIds object.
501
+ * @param listUserIds.page - Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
502
+ * @param listUserIds.hitsPerPage - Maximum number of hits per page.
503
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
504
+ */
505
+ listUserIds({ page, hitsPerPage }?: ListUserIdsProps, requestOptions?: RequestOptions | undefined): Promise<ListUserIdsResponse>;
506
+ /**
507
+ * To reduce the time spent on network round trips, you can perform several write actions in a single request. It\'s a multi-index version of the [`batch` operation](#tag/Records/operation/batch). Actions are applied in the order they are specified. The supported actions are equivalent to the individual operations of the same name.
508
+ *
509
+ * @summary Batch write operations on multiple indices.
510
+ * @param batchParams - The batchParams object.
511
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
512
+ */
513
+ multipleBatch(batchParams: BatchParams, requestOptions?: RequestOptions): Promise<MultipleBatchResponse>;
514
+ /**
515
+ * This `operation`, _copy_ or _move_, will copy or move a source index\'s (`IndexName`) records, settings, synonyms, and rules to a `destination` index. If the destination index exists, it will be replaced, except for index-specific API keys and analytics data. If the destination index doesn\'t exist, it will be created. The choice between moving or copying an index depends on your needs. Choose: - **Move** to rename an index. - **Copy** to create a new index with the same records and configuration as an existing one. > **Note**: When considering copying or moving, be aware of the [rate limitations](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits) on these processes and the [impact on your analytics data](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/concepts/indices-analytics/).
516
+ *
517
+ * @summary Copy, move, or rename an index.
518
+ * @param operationIndex - The operationIndex object.
519
+ * @param operationIndex.indexName - Index on which to perform the request.
520
+ * @param operationIndex.operationIndexParams - The operationIndexParams object.
521
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
522
+ */
523
+ operationIndex({ indexName, operationIndexParams }: OperationIndexProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
524
+ /**
525
+ * Add new attributes or update current ones in an existing record. You can use any first-level attribute but not nested attributes. If you specify a [nested attribute](https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/how-to/creating-and-using-nested-attributes/), the engine treats it as a replacement for its first-level ancestor.
526
+ *
527
+ * @summary Update record attributes.
528
+ * @param partialUpdateObject - The partialUpdateObject object.
529
+ * @param partialUpdateObject.indexName - Index on which to perform the request.
530
+ * @param partialUpdateObject.objectID - Unique record (object) identifier.
531
+ * @param partialUpdateObject.attributesToUpdate - Object with attributes to update.
532
+ * @param partialUpdateObject.createIfNotExists - Indicates whether to create a new record if it doesn\'t exist yet.
533
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
534
+ */
535
+ partialUpdateObject({ indexName, objectID, attributesToUpdate, createIfNotExists, }: PartialUpdateObjectProps, requestOptions?: RequestOptions): Promise<UpdatedAtWithObjectIdResponse>;
536
+ /**
537
+ * This method allow you to send requests to the Algolia REST API.
538
+ *
539
+ * @summary Send requests to the Algolia REST API.
540
+ * @param post - The post object.
541
+ * @param post.path - Path of the endpoint, anything after \"/1\" must be specified.
542
+ * @param post.parameters - Query parameters to apply to the current query.
543
+ * @param post.body - Parameters to send with the custom request.
544
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
545
+ */
546
+ post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
547
+ /**
548
+ * This method allow you to send requests to the Algolia REST API.
549
+ *
550
+ * @summary Send requests to the Algolia REST API.
551
+ * @param put - The put object.
552
+ * @param put.path - Path of the endpoint, anything after \"/1\" must be specified.
553
+ * @param put.parameters - Query parameters to apply to the current query.
554
+ * @param put.body - Parameters to send with the custom request.
555
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
556
+ */
557
+ put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise<Record<string, any>>;
558
+ /**
559
+ * Remove a userID and its associated data from the multi-clusters.
560
+ *
561
+ * @summary Remove userID.
562
+ * @param removeUserId - The removeUserId object.
563
+ * @param removeUserId.userID - UserID to assign.
564
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
565
+ */
566
+ removeUserId({ userID }: RemoveUserIdProps, requestOptions?: RequestOptions): Promise<RemoveUserIdResponse>;
567
+ /**
568
+ * Replace all allowed sources.
569
+ *
570
+ * @summary Replace all sources.
571
+ * @param replaceSources - The replaceSources object.
572
+ * @param replaceSources.source - Allowed sources.
573
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
574
+ */
575
+ replaceSources({ source }: ReplaceSourcesProps, requestOptions?: RequestOptions): Promise<ReplaceSourceResponse>;
576
+ /**
577
+ * Restore a deleted API key, along with its associated permissions. The request must be authenticated with the admin API key.
578
+ *
579
+ * @summary Restore API key.
580
+ * @param restoreApiKey - The restoreApiKey object.
581
+ * @param restoreApiKey.key - API key.
582
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
583
+ */
584
+ restoreApiKey({ key }: RestoreApiKeyProps, requestOptions?: RequestOptions): Promise<AddApiKeyResponse>;
585
+ /**
586
+ * Add a record (object) to an index or replace it. If the record doesn\'t contain an `objectID`, Algolia automatically adds it. If you use an existing `objectID`, the existing record is replaced with the new one. To add multiple records to your index in a single API request, use the [`batch` operation](#tag/Records/operation/batch).
587
+ *
588
+ * @summary Add or update a record.
589
+ * @param saveObject - The saveObject object.
590
+ * @param saveObject.indexName - Index on which to perform the request.
591
+ * @param saveObject.body - The Algolia record.
592
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
593
+ */
594
+ saveObject({ indexName, body }: SaveObjectProps, requestOptions?: RequestOptions): Promise<SaveObjectResponse>;
595
+ /**
596
+ * To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
597
+ *
598
+ * @summary Create or update a rule.
599
+ * @param saveRule - The saveRule object.
600
+ * @param saveRule.indexName - Index on which to perform the request.
601
+ * @param saveRule.objectID - Unique identifier of a rule object.
602
+ * @param saveRule.rule - The rule object.
603
+ * @param saveRule.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
604
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
605
+ */
606
+ saveRule({ indexName, objectID, rule, forwardToReplicas }: SaveRuleProps, requestOptions?: RequestOptions): Promise<UpdatedRuleResponse>;
607
+ /**
608
+ * Create or update multiple rules.
609
+ *
610
+ * @summary Save a batch of rules.
611
+ * @param saveRules - The saveRules object.
612
+ * @param saveRules.indexName - Index on which to perform the request.
613
+ * @param saveRules.rules - The rules object.
614
+ * @param saveRules.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
615
+ * @param saveRules.clearExistingRules - Indicates whether existing rules should be deleted before adding this batch.
616
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
617
+ */
618
+ saveRules({ indexName, rules, forwardToReplicas, clearExistingRules, }: SaveRulesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
619
+ /**
620
+ * Add a [synonym](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#the-different-types-of-synonyms) to an index or replace it. If the synonym `objectID` doesn\'t exist, Algolia adds a new one. If you use an existing synonym `objectID`, the existing synonym is replaced with the new one. To add multiple synonyms in a single API request, use the [`batch` operation](#tag/Synonyms/operation/saveSynonyms).
621
+ *
622
+ * @summary Save a synonym.
623
+ * @param saveSynonym - The saveSynonym object.
624
+ * @param saveSynonym.indexName - Index on which to perform the request.
625
+ * @param saveSynonym.objectID - Unique identifier of a synonym object.
626
+ * @param saveSynonym.synonymHit - The synonymHit object.
627
+ * @param saveSynonym.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
628
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
629
+ */
630
+ saveSynonym({ indexName, objectID, synonymHit, forwardToReplicas }: SaveSynonymProps, requestOptions?: RequestOptions): Promise<SaveSynonymResponse>;
631
+ /**
632
+ * Create or update multiple synonyms.
633
+ *
634
+ * @summary Save a batch of synonyms.
635
+ * @param saveSynonyms - The saveSynonyms object.
636
+ * @param saveSynonyms.indexName - Index on which to perform the request.
637
+ * @param saveSynonyms.synonymHit - The synonymHit object.
638
+ * @param saveSynonyms.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
639
+ * @param saveSynonyms.replaceExistingSynonyms - Indicates whether to replace all synonyms in the index with the ones sent with this request.
640
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
641
+ */
642
+ saveSynonyms({ indexName, synonymHit, forwardToReplicas, replaceExistingSynonyms, }: SaveSynonymsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
643
+ /**
644
+ * Send multiple search queries to one or more indices.
645
+ *
646
+ * @summary Search multiple indices.
647
+ * @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
648
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
649
+ */
650
+ search(searchMethodParams: LegacySearchMethodProps | SearchMethodParams, requestOptions?: RequestOptions): Promise<SearchResponses>;
651
+ /**
652
+ * Search for standard and [custom](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-stop-words/) entries in the [stop words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-stop-words/), [plurals](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-plurals-and-other-declensions/), or [segmentation (compounds)](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) dictionaries.
653
+ *
654
+ * @summary Search dictionary entries.
655
+ * @param searchDictionaryEntries - The searchDictionaryEntries object.
656
+ * @param searchDictionaryEntries.dictionaryName - Dictionary to search in.
657
+ * @param searchDictionaryEntries.searchDictionaryEntriesParams - The searchDictionaryEntriesParams object.
658
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
659
+ */
660
+ searchDictionaryEntries({ dictionaryName, searchDictionaryEntriesParams, }: SearchDictionaryEntriesProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
661
+ /**
662
+ * [Search for a facet\'s values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values), optionally restricting the returned values to those contained in records matching other search criteria. > **Note**: Pagination isn\'t supported (`page` and `hitsPerPage` are ignored). By default, the engine returns a maximum of 10 values but you can adjust this with `maxFacetHits`.
663
+ *
664
+ * @summary Search for facet values.
665
+ * @param searchForFacetValues - The searchForFacetValues object.
666
+ * @param searchForFacetValues.indexName - Index on which to perform the request.
667
+ * @param searchForFacetValues.facetName - Facet name.
668
+ * @param searchForFacetValues.searchForFacetValuesRequest - The searchForFacetValuesRequest object.
669
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
670
+ */
671
+ searchForFacetValues({ indexName, facetName, searchForFacetValuesRequest, }: SearchForFacetValuesProps, requestOptions?: RequestOptions): Promise<SearchForFacetValuesResponse>;
672
+ /**
673
+ * Search for rules in your index. You can control the search with parameters. To list all rules, send an empty request body.
674
+ *
675
+ * @summary Search for rules.
676
+ * @param searchRules - The searchRules object.
677
+ * @param searchRules.indexName - Index on which to perform the request.
678
+ * @param searchRules.searchRulesParams - The searchRulesParams object.
679
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
680
+ */
681
+ searchRules({ indexName, searchRulesParams }: SearchRulesProps, requestOptions?: RequestOptions): Promise<SearchRulesResponse>;
682
+ /**
683
+ * Return records that match the query.
684
+ *
685
+ * @summary Search an index.
686
+ * @param searchSingleIndex - The searchSingleIndex object.
687
+ * @param searchSingleIndex.indexName - Index on which to perform the request.
688
+ * @param searchSingleIndex.searchParams - The searchParams object.
689
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
690
+ */
691
+ searchSingleIndex<T_4>({ indexName, searchParams }: SearchSingleIndexProps, requestOptions?: RequestOptions): Promise<SearchResponse<T_4>>;
692
+ /**
693
+ * Search for synonyms in your index. You can control and filter the search with parameters. To get all synonyms, send an empty request body.
694
+ *
695
+ * @summary Search for synonyms.
696
+ * @param searchSynonyms - The searchSynonyms object.
697
+ * @param searchSynonyms.indexName - Index on which to perform the request.
698
+ * @param searchSynonyms.type - Search for specific [types of synonyms](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#the-different-types-of-synonyms).
699
+ * @param searchSynonyms.page - Returns the requested page number (the first page is 0). Page size is set by `hitsPerPage`. When null, there\'s no pagination.
700
+ * @param searchSynonyms.hitsPerPage - Maximum number of hits per page.
701
+ * @param searchSynonyms.searchSynonymsParams - Body of the `searchSynonyms` operation.
702
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
703
+ */
704
+ searchSynonyms({ indexName, type, page, hitsPerPage, searchSynonymsParams, }: SearchSynonymsProps, requestOptions?: RequestOptions): Promise<SearchSynonymsResponse>;
705
+ /**
706
+ * Since it can take up to 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).
707
+ *
708
+ * @summary Search for a user ID.
709
+ * @param searchUserIdsParams - The searchUserIdsParams object.
710
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
711
+ */
712
+ searchUserIds(searchUserIdsParams: SearchUserIdsParams, requestOptions?: RequestOptions): Promise<SearchUserIdsResponse>;
713
+ /**
714
+ * Set stop word settings for a specific language.
715
+ *
716
+ * @summary Set stop word settings.
717
+ * @param dictionarySettingsParams - The dictionarySettingsParams object.
718
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
719
+ */
720
+ setDictionarySettings(dictionarySettingsParams: DictionarySettingsParams, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
721
+ /**
722
+ * Update the specified [index settings](https://www.algolia.com/doc/api-reference/settings-api-parameters/). Specifying null for a setting resets it to its default value.
723
+ *
724
+ * @summary Update index settings.
725
+ * @param setSettings - The setSettings object.
726
+ * @param setSettings.indexName - Index on which to perform the request.
727
+ * @param setSettings.indexSettings - The indexSettings object.
728
+ * @param setSettings.forwardToReplicas - Indicates whether changed index settings are forwarded to the replica indices.
729
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
730
+ */
731
+ setSettings({ indexName, indexSettings, forwardToReplicas }: SetSettingsProps, requestOptions?: RequestOptions): Promise<UpdatedAtResponse>;
732
+ /**
733
+ * Replace the permissions of an existing API key. Any unspecified parameter resets that permission to its default value. The request must be authenticated with the admin API key.
734
+ *
735
+ * @summary Update an API key.
736
+ * @param updateApiKey - The updateApiKey object.
737
+ * @param updateApiKey.key - API key.
738
+ * @param updateApiKey.apiKey - The apiKey object.
739
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
740
+ */
741
+ updateApiKey({ key, apiKey }: UpdateApiKeyProps, requestOptions?: RequestOptions): Promise<UpdateApiKeyResponse>;
742
+ };
743
+ /**
744
+ * The client type.
745
+ */
746
+ export type SearchClient = ReturnType<typeof createSearchClient>;
724
747
  //# sourceMappingURL=searchClient.d.ts.map