algoliasearch 5.0.0-alpha.8 → 5.0.0-alpha.80

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 (851) 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}/models.d.ts +31 -31
  5. package/dist/algoliasearch/builds/models.d.ts.map +1 -0
  6. package/dist/algoliasearch/jest.config.d.ts +3 -3
  7. package/dist/{algoliasearch.cjs.js → algoliasearch.cjs} +3499 -3481
  8. package/dist/algoliasearch.esm.browser.js +3691 -3725
  9. package/dist/algoliasearch.esm.node.js +3499 -3479
  10. package/dist/algoliasearch.umd.js +2 -2
  11. package/dist/builds/browser.d.ts +87 -87
  12. package/dist/builds/browser.d.ts.map +1 -1
  13. package/dist/builds/node.d.ts +87 -87
  14. package/dist/builds/node.d.ts.map +1 -1
  15. package/dist/client-abtesting/model/aBTest.d.ts +35 -39
  16. package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
  17. package/dist/client-abtesting/model/aBTestResponse.d.ts +14 -14
  18. package/dist/client-abtesting/model/aBTestResponse.d.ts.map +1 -1
  19. package/dist/client-abtesting/model/abTestsVariant.d.ts +14 -14
  20. package/dist/client-abtesting/model/abTestsVariant.d.ts.map +1 -1
  21. package/dist/client-abtesting/model/abTestsVariantSearchParams.d.ts +3 -3
  22. package/dist/client-abtesting/model/abTestsVariantSearchParams.d.ts.map +1 -1
  23. package/dist/client-abtesting/model/addABTestsRequest.d.ts +15 -15
  24. package/dist/client-abtesting/model/addABTestsRequest.d.ts.map +1 -1
  25. package/dist/client-abtesting/model/addABTestsVariant.d.ts +3 -3
  26. package/dist/client-abtesting/model/addABTestsVariant.d.ts.map +1 -1
  27. package/dist/client-abtesting/model/clientMethodProps.d.ts +108 -100
  28. package/dist/client-abtesting/model/clientMethodProps.d.ts.map +1 -1
  29. package/dist/client-abtesting/model/customSearchParams.d.ts +6 -3
  30. package/dist/client-abtesting/model/customSearchParams.d.ts.map +1 -1
  31. package/dist/client-abtesting/model/errorBase.d.ts +6 -6
  32. package/dist/client-abtesting/model/errorBase.d.ts.map +1 -1
  33. package/dist/client-abtesting/model/index.d.ts +11 -11
  34. package/dist/client-abtesting/model/listABTestsResponse.d.ts +15 -15
  35. package/dist/client-abtesting/model/listABTestsResponse.d.ts.map +1 -1
  36. package/dist/client-abtesting/model/variant.d.ts +58 -50
  37. package/dist/client-abtesting/model/variant.d.ts.map +1 -1
  38. package/dist/client-abtesting/src/abtestingClient.d.ts +126 -124
  39. package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
  40. package/dist/client-analytics/model/averageClickEvent.d.ts +14 -14
  41. package/dist/client-analytics/model/averageClickEvent.d.ts.map +1 -1
  42. package/dist/client-analytics/model/clickPosition.d.ts +10 -10
  43. package/dist/client-analytics/model/clickPosition.d.ts.map +1 -1
  44. package/dist/client-analytics/model/clickThroughRateEvent.d.ts +18 -18
  45. package/dist/client-analytics/model/clickThroughRateEvent.d.ts.map +1 -1
  46. package/dist/client-analytics/model/clientMethodProps.d.ts +507 -507
  47. package/dist/client-analytics/model/clientMethodProps.d.ts.map +1 -1
  48. package/dist/client-analytics/model/conversionRateEvent.d.ts +18 -18
  49. package/dist/client-analytics/model/conversionRateEvent.d.ts.map +1 -1
  50. package/dist/client-analytics/model/direction.d.ts +1 -1
  51. package/dist/client-analytics/model/direction.d.ts.map +1 -1
  52. package/dist/client-analytics/model/errorBase.d.ts +6 -6
  53. package/dist/client-analytics/model/errorBase.d.ts.map +1 -1
  54. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +15 -15
  55. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts.map +1 -1
  56. package/dist/client-analytics/model/getClickPositionsResponse.d.ts +7 -7
  57. package/dist/client-analytics/model/getClickPositionsResponse.d.ts.map +1 -1
  58. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +19 -19
  59. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts.map +1 -1
  60. package/dist/client-analytics/model/getConversationRateResponse.d.ts +19 -19
  61. package/dist/client-analytics/model/getConversationRateResponse.d.ts.map +1 -1
  62. package/dist/client-analytics/model/getNoClickRateResponse.d.ts +19 -19
  63. package/dist/client-analytics/model/getNoClickRateResponse.d.ts.map +1 -1
  64. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +19 -19
  65. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts.map +1 -1
  66. package/dist/client-analytics/model/getSearchesCountResponse.d.ts +11 -11
  67. package/dist/client-analytics/model/getSearchesCountResponse.d.ts.map +1 -1
  68. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +7 -7
  69. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts.map +1 -1
  70. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +7 -7
  71. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts.map +1 -1
  72. package/dist/client-analytics/model/getStatusResponse.d.ts +6 -6
  73. package/dist/client-analytics/model/getStatusResponse.d.ts.map +1 -1
  74. package/dist/client-analytics/model/getTopCountriesResponse.d.ts +7 -7
  75. package/dist/client-analytics/model/getTopCountriesResponse.d.ts.map +1 -1
  76. package/dist/client-analytics/model/getTopFilterAttribute.d.ts +10 -10
  77. package/dist/client-analytics/model/getTopFilterAttribute.d.ts.map +1 -1
  78. package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +7 -7
  79. package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts.map +1 -1
  80. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +18 -18
  81. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts.map +1 -1
  82. package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts +7 -7
  83. package/dist/client-analytics/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
  84. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +7 -7
  85. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
  86. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +14 -14
  87. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  88. package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts +11 -11
  89. package/dist/client-analytics/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
  90. package/dist/client-analytics/model/getTopHitsResponse.d.ts +3 -3
  91. package/dist/client-analytics/model/getTopHitsResponse.d.ts.map +1 -1
  92. package/dist/client-analytics/model/getTopSearchesResponse.d.ts +3 -3
  93. package/dist/client-analytics/model/getTopSearchesResponse.d.ts.map +1 -1
  94. package/dist/client-analytics/model/getUsersCountResponse.d.ts +11 -11
  95. package/dist/client-analytics/model/getUsersCountResponse.d.ts.map +1 -1
  96. package/dist/client-analytics/model/index.d.ts +44 -44
  97. package/dist/client-analytics/model/noClickRateEvent.d.ts +18 -18
  98. package/dist/client-analytics/model/noClickRateEvent.d.ts.map +1 -1
  99. package/dist/client-analytics/model/noResultsRateEvent.d.ts +18 -18
  100. package/dist/client-analytics/model/noResultsRateEvent.d.ts.map +1 -1
  101. package/dist/client-analytics/model/orderBy.d.ts +4 -1
  102. package/dist/client-analytics/model/orderBy.d.ts.map +1 -1
  103. package/dist/client-analytics/model/searchEvent.d.ts +10 -10
  104. package/dist/client-analytics/model/searchEvent.d.ts.map +1 -1
  105. package/dist/client-analytics/model/searchNoClickEvent.d.ts +14 -14
  106. package/dist/client-analytics/model/searchNoClickEvent.d.ts.map +1 -1
  107. package/dist/client-analytics/model/searchNoResultEvent.d.ts +14 -14
  108. package/dist/client-analytics/model/searchNoResultEvent.d.ts.map +1 -1
  109. package/dist/client-analytics/model/topCountry.d.ts +10 -10
  110. package/dist/client-analytics/model/topCountry.d.ts.map +1 -1
  111. package/dist/client-analytics/model/topHit.d.ts +10 -10
  112. package/dist/client-analytics/model/topHit.d.ts.map +1 -1
  113. package/dist/client-analytics/model/topHitWithAnalytics.d.ts +30 -30
  114. package/dist/client-analytics/model/topHitWithAnalytics.d.ts.map +1 -1
  115. package/dist/client-analytics/model/topHitsResponse.d.ts +7 -7
  116. package/dist/client-analytics/model/topHitsResponse.d.ts.map +1 -1
  117. package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +7 -7
  118. package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
  119. package/dist/client-analytics/model/topSearch.d.ts +14 -14
  120. package/dist/client-analytics/model/topSearch.d.ts.map +1 -1
  121. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +38 -38
  122. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
  123. package/dist/client-analytics/model/topSearchesResponse.d.ts +7 -7
  124. package/dist/client-analytics/model/topSearchesResponse.d.ts.map +1 -1
  125. package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  126. package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
  127. package/dist/client-analytics/model/userWithDate.d.ts +10 -10
  128. package/dist/client-analytics/model/userWithDate.d.ts.map +1 -1
  129. package/dist/client-analytics/src/analyticsClient.d.ts +318 -318
  130. package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
  131. package/dist/client-personalization/model/clientMethodProps.d.ts +78 -78
  132. package/dist/client-personalization/model/clientMethodProps.d.ts.map +1 -1
  133. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +10 -10
  134. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts.map +1 -1
  135. package/dist/client-personalization/model/errorBase.d.ts +6 -6
  136. package/dist/client-personalization/model/errorBase.d.ts.map +1 -1
  137. package/dist/client-personalization/model/eventScoring.d.ts +14 -14
  138. package/dist/client-personalization/model/eventScoring.d.ts.map +1 -1
  139. package/dist/client-personalization/model/facetScoring.d.ts +10 -10
  140. package/dist/client-personalization/model/facetScoring.d.ts.map +1 -1
  141. package/dist/client-personalization/model/getUserTokenResponse.d.ts +14 -14
  142. package/dist/client-personalization/model/getUserTokenResponse.d.ts.map +1 -1
  143. package/dist/client-personalization/model/index.d.ts +8 -8
  144. package/dist/client-personalization/model/personalizationStrategyParams.d.ts +16 -16
  145. package/dist/client-personalization/model/personalizationStrategyParams.d.ts.map +1 -1
  146. package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts +6 -6
  147. package/dist/client-personalization/model/setPersonalizationStrategyResponse.d.ts.map +1 -1
  148. package/dist/client-personalization/src/personalizationClient.d.ts +112 -112
  149. package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
  150. package/dist/client-search/model/acl.d.ts +4 -4
  151. package/dist/client-search/model/acl.d.ts.map +1 -1
  152. package/dist/client-search/model/action.d.ts +4 -4
  153. package/dist/client-search/model/action.d.ts.map +1 -1
  154. package/dist/client-search/model/addApiKeyResponse.d.ts +10 -10
  155. package/dist/client-search/model/addApiKeyResponse.d.ts.map +1 -1
  156. package/dist/client-search/model/advancedSyntaxFeatures.d.ts +1 -1
  157. package/dist/client-search/model/advancedSyntaxFeatures.d.ts.map +1 -1
  158. package/dist/client-search/model/alternativesAsExact.d.ts +1 -1
  159. package/dist/client-search/model/alternativesAsExact.d.ts.map +1 -1
  160. package/dist/client-search/model/anchoring.d.ts +4 -4
  161. package/dist/client-search/model/anchoring.d.ts.map +1 -1
  162. package/dist/client-search/model/apiKey.d.ts +38 -38
  163. package/dist/client-search/model/apiKey.d.ts.map +1 -1
  164. package/dist/client-search/model/aroundPrecision.d.ts +6 -0
  165. package/dist/client-search/model/aroundPrecision.d.ts.map +1 -0
  166. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +5 -0
  167. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  168. package/dist/client-search/model/aroundRadius.d.ts +5 -5
  169. package/dist/client-search/model/aroundRadius.d.ts.map +1 -1
  170. package/dist/client-search/model/aroundRadiusAll.d.ts +1 -1
  171. package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
  172. package/dist/client-search/model/assignUserIdParams.d.ts +9 -9
  173. package/dist/client-search/model/assignUserIdParams.d.ts.map +1 -1
  174. package/dist/client-search/model/attributeToUpdate.d.ts +2 -2
  175. package/dist/client-search/model/attributeToUpdate.d.ts.map +1 -1
  176. package/dist/client-search/model/automaticFacetFilter.d.ts +17 -17
  177. package/dist/client-search/model/automaticFacetFilter.d.ts.map +1 -1
  178. package/dist/client-search/model/automaticFacetFilters.d.ts +5 -5
  179. package/dist/client-search/model/automaticFacetFilters.d.ts.map +1 -1
  180. package/dist/client-search/model/baseGetApiKeyResponse.d.ts +10 -10
  181. package/dist/client-search/model/baseGetApiKeyResponse.d.ts.map +1 -1
  182. package/dist/client-search/model/baseIndexSettings.d.ts +62 -58
  183. package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
  184. package/dist/client-search/model/baseSearchParams.d.ts +3 -3
  185. package/dist/client-search/model/baseSearchParams.d.ts.map +1 -1
  186. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +118 -122
  187. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  188. package/dist/client-search/model/baseSearchResponse.d.ts +95 -101
  189. package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
  190. package/dist/client-search/model/baseSearchResponseRedirect.d.ts +8 -0
  191. package/dist/client-search/model/baseSearchResponseRedirect.d.ts.map +1 -0
  192. package/dist/client-search/model/batchAssignUserIdsParams.d.ts +13 -13
  193. package/dist/client-search/model/batchAssignUserIdsParams.d.ts.map +1 -1
  194. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +14 -14
  195. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts.map +1 -1
  196. package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts +6 -6
  197. package/dist/client-search/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
  198. package/dist/client-search/model/batchParams.d.ts +7 -7
  199. package/dist/client-search/model/batchParams.d.ts.map +1 -1
  200. package/dist/client-search/model/batchRequest.d.ts +8 -8
  201. package/dist/client-search/model/batchRequest.d.ts.map +1 -1
  202. package/dist/client-search/model/batchResponse.d.ts +10 -10
  203. package/dist/client-search/model/batchResponse.d.ts.map +1 -1
  204. package/dist/client-search/model/batchWriteParams.d.ts +7 -7
  205. package/dist/client-search/model/batchWriteParams.d.ts.map +1 -1
  206. package/dist/client-search/model/browseParams.d.ts +3 -3
  207. package/dist/client-search/model/browseParams.d.ts.map +1 -1
  208. package/dist/client-search/model/browseParamsObject.d.ts +3 -3
  209. package/dist/client-search/model/browseParamsObject.d.ts.map +1 -1
  210. package/dist/client-search/model/browseResponse.d.ts +4 -4
  211. package/dist/client-search/model/browseResponse.d.ts.map +1 -1
  212. package/dist/client-search/model/builtInOperation.d.ts +11 -11
  213. package/dist/client-search/model/builtInOperation.d.ts.map +1 -1
  214. package/dist/client-search/model/builtInOperationType.d.ts +4 -4
  215. package/dist/client-search/model/builtInOperationType.d.ts.map +1 -1
  216. package/dist/client-search/model/clientMethodProps.d.ts +719 -714
  217. package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
  218. package/dist/client-search/model/condition.d.ts +16 -16
  219. package/dist/client-search/model/condition.d.ts.map +1 -1
  220. package/dist/client-search/model/consequence.d.ts +25 -25
  221. package/dist/client-search/model/consequence.d.ts.map +1 -1
  222. package/dist/client-search/model/consequenceHide.d.ts +9 -9
  223. package/dist/client-search/model/consequenceHide.d.ts.map +1 -1
  224. package/dist/client-search/model/consequenceParams.d.ts +4 -4
  225. package/dist/client-search/model/consequenceParams.d.ts.map +1 -1
  226. package/dist/client-search/model/consequenceQuery.d.ts +5 -5
  227. package/dist/client-search/model/consequenceQuery.d.ts.map +1 -1
  228. package/dist/client-search/model/consequenceQueryObject.d.ts +11 -11
  229. package/dist/client-search/model/consequenceQueryObject.d.ts.map +1 -1
  230. package/dist/client-search/model/createdAtResponse.d.ts +9 -9
  231. package/dist/client-search/model/createdAtResponse.d.ts.map +1 -1
  232. package/dist/client-search/model/cursor.d.ts +6 -6
  233. package/dist/client-search/model/cursor.d.ts.map +1 -1
  234. package/dist/client-search/model/deleteApiKeyResponse.d.ts +6 -6
  235. package/dist/client-search/model/deleteApiKeyResponse.d.ts.map +1 -1
  236. package/dist/client-search/model/deleteByParams.d.ts +27 -0
  237. package/dist/client-search/model/deleteByParams.d.ts.map +1 -0
  238. package/dist/client-search/model/deleteSourceResponse.d.ts +6 -6
  239. package/dist/client-search/model/deleteSourceResponse.d.ts.map +1 -1
  240. package/dist/client-search/model/deletedAtResponse.d.ts +13 -13
  241. package/dist/client-search/model/deletedAtResponse.d.ts.map +1 -1
  242. package/dist/client-search/model/dictionaryAction.d.ts +4 -4
  243. package/dist/client-search/model/dictionaryAction.d.ts.map +1 -1
  244. package/dist/client-search/model/dictionaryEntry.d.ts +27 -27
  245. package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
  246. package/dist/client-search/model/dictionaryEntryState.d.ts +4 -4
  247. package/dist/client-search/model/dictionaryEntryState.d.ts.map +1 -1
  248. package/dist/client-search/model/dictionaryLanguage.d.ts +9 -9
  249. package/dist/client-search/model/dictionaryLanguage.d.ts.map +1 -1
  250. package/dist/client-search/model/dictionarySettingsParams.d.ts +7 -7
  251. package/dist/client-search/model/dictionarySettingsParams.d.ts.map +1 -1
  252. package/dist/client-search/model/dictionaryType.d.ts +1 -1
  253. package/dist/client-search/model/dictionaryType.d.ts.map +1 -1
  254. package/dist/client-search/model/distinct.d.ts +4 -4
  255. package/dist/client-search/model/distinct.d.ts.map +1 -1
  256. package/dist/client-search/model/edit.d.ts +12 -12
  257. package/dist/client-search/model/edit.d.ts.map +1 -1
  258. package/dist/client-search/model/editType.d.ts +4 -4
  259. package/dist/client-search/model/editType.d.ts.map +1 -1
  260. package/dist/client-search/model/errorBase.d.ts +6 -6
  261. package/dist/client-search/model/errorBase.d.ts.map +1 -1
  262. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +4 -4
  263. package/dist/client-search/model/exactOnSingleWordQuery.d.ts.map +1 -1
  264. package/dist/client-search/model/facetFilters.d.ts +5 -5
  265. package/dist/client-search/model/facetFilters.d.ts.map +1 -1
  266. package/dist/client-search/model/facetHits.d.ts +14 -14
  267. package/dist/client-search/model/facetHits.d.ts.map +1 -1
  268. package/dist/client-search/model/facetOrdering.d.ts +12 -12
  269. package/dist/client-search/model/facetOrdering.d.ts.map +1 -1
  270. package/dist/client-search/model/facets.d.ts +9 -9
  271. package/dist/client-search/model/facets.d.ts.map +1 -1
  272. package/dist/client-search/model/facetsStats.d.ts +18 -18
  273. package/dist/client-search/model/facetsStats.d.ts.map +1 -1
  274. package/dist/client-search/model/fetchedIndex.d.ts +46 -46
  275. package/dist/client-search/model/fetchedIndex.d.ts.map +1 -1
  276. package/dist/client-search/model/getApiKeyResponse.d.ts +3 -3
  277. package/dist/client-search/model/getApiKeyResponse.d.ts.map +1 -1
  278. package/dist/client-search/model/getDictionarySettingsResponse.d.ts +4 -4
  279. package/dist/client-search/model/getDictionarySettingsResponse.d.ts.map +1 -1
  280. package/dist/client-search/model/getLogsResponse.d.ts +4 -4
  281. package/dist/client-search/model/getLogsResponse.d.ts.map +1 -1
  282. package/dist/client-search/model/getObjectsParams.d.ts +7 -7
  283. package/dist/client-search/model/getObjectsParams.d.ts.map +1 -1
  284. package/dist/client-search/model/getObjectsRequest.d.ts +17 -17
  285. package/dist/client-search/model/getObjectsRequest.d.ts.map +1 -1
  286. package/dist/client-search/model/getObjectsResponse.d.ts +6 -6
  287. package/dist/client-search/model/getObjectsResponse.d.ts.map +1 -1
  288. package/dist/client-search/model/getTaskResponse.d.ts +4 -4
  289. package/dist/client-search/model/getTaskResponse.d.ts.map +1 -1
  290. package/dist/client-search/model/getTopUserIdsResponse.d.ts +10 -10
  291. package/dist/client-search/model/getTopUserIdsResponse.d.ts.map +1 -1
  292. package/dist/client-search/model/hasPendingMappingsResponse.d.ts +10 -10
  293. package/dist/client-search/model/hasPendingMappingsResponse.d.ts.map +1 -1
  294. package/dist/client-search/model/highlightResult.d.ts +2 -2
  295. package/dist/client-search/model/highlightResult.d.ts.map +1 -1
  296. package/dist/client-search/model/highlightResultOption.d.ts +19 -19
  297. package/dist/client-search/model/highlightResultOption.d.ts.map +1 -1
  298. package/dist/client-search/model/hit.d.ts +22 -22
  299. package/dist/client-search/model/hit.d.ts.map +1 -1
  300. package/dist/client-search/model/ignorePlurals.d.ts +4 -4
  301. package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
  302. package/dist/client-search/model/index.d.ts +162 -154
  303. package/dist/client-search/model/index.d.ts.map +1 -1
  304. package/dist/client-search/model/indexSettings.d.ts +6 -6
  305. package/dist/client-search/model/indexSettings.d.ts.map +1 -1
  306. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +166 -160
  307. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  308. package/dist/client-search/model/languages.d.ts +9 -9
  309. package/dist/client-search/model/languages.d.ts.map +1 -1
  310. package/dist/client-search/model/listApiKeysResponse.d.ts +7 -7
  311. package/dist/client-search/model/listApiKeysResponse.d.ts.map +1 -1
  312. package/dist/client-search/model/listClustersResponse.d.ts +9 -9
  313. package/dist/client-search/model/listClustersResponse.d.ts.map +1 -1
  314. package/dist/client-search/model/listIndicesResponse.d.ts +11 -11
  315. package/dist/client-search/model/listIndicesResponse.d.ts.map +1 -1
  316. package/dist/client-search/model/listUserIdsResponse.d.ts +10 -10
  317. package/dist/client-search/model/listUserIdsResponse.d.ts.map +1 -1
  318. package/dist/client-search/model/log.d.ts +63 -63
  319. package/dist/client-search/model/log.d.ts.map +1 -1
  320. package/dist/client-search/model/logQuery.d.ts +14 -14
  321. package/dist/client-search/model/logQuery.d.ts.map +1 -1
  322. package/dist/client-search/model/logType.d.ts +1 -1
  323. package/dist/client-search/model/logType.d.ts.map +1 -1
  324. package/dist/client-search/model/matchLevel.d.ts +4 -4
  325. package/dist/client-search/model/matchLevel.d.ts.map +1 -1
  326. package/dist/client-search/model/matchedGeoLocation.d.ts +14 -14
  327. package/dist/client-search/model/matchedGeoLocation.d.ts.map +1 -1
  328. package/dist/client-search/model/mixedSearchFilters.d.ts +1 -1
  329. package/dist/client-search/model/mixedSearchFilters.d.ts.map +1 -1
  330. package/dist/client-search/model/mode.d.ts +5 -0
  331. package/dist/client-search/model/mode.d.ts.map +1 -0
  332. package/dist/client-search/model/multipleBatchRequest.d.ts +12 -12
  333. package/dist/client-search/model/multipleBatchRequest.d.ts.map +1 -1
  334. package/dist/client-search/model/multipleBatchResponse.d.ts +10 -10
  335. package/dist/client-search/model/multipleBatchResponse.d.ts.map +1 -1
  336. package/dist/client-search/model/numericFilters.d.ts +5 -5
  337. package/dist/client-search/model/numericFilters.d.ts.map +1 -1
  338. package/dist/client-search/model/operationIndexParams.d.ts +13 -13
  339. package/dist/client-search/model/operationIndexParams.d.ts.map +1 -1
  340. package/dist/client-search/model/operationType.d.ts +4 -4
  341. package/dist/client-search/model/operationType.d.ts.map +1 -1
  342. package/dist/client-search/model/optionalFilters.d.ts +5 -5
  343. package/dist/client-search/model/optionalFilters.d.ts.map +1 -1
  344. package/dist/client-search/model/params.d.ts +12 -12
  345. package/dist/client-search/model/params.d.ts.map +1 -1
  346. package/dist/client-search/model/personalization.d.ts +14 -14
  347. package/dist/client-search/model/personalization.d.ts.map +1 -1
  348. package/dist/client-search/model/promote.d.ts +3 -3
  349. package/dist/client-search/model/promote.d.ts.map +1 -1
  350. package/dist/client-search/model/promoteObjectID.d.ts +13 -13
  351. package/dist/client-search/model/promoteObjectID.d.ts.map +1 -1
  352. package/dist/client-search/model/promoteObjectIDs.d.ts +13 -13
  353. package/dist/client-search/model/promoteObjectIDs.d.ts.map +1 -1
  354. package/dist/client-search/model/queryType.d.ts +4 -4
  355. package/dist/client-search/model/queryType.d.ts.map +1 -1
  356. package/dist/client-search/model/rankingInfo.d.ts +50 -50
  357. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  358. package/dist/client-search/model/reRankingApplyFilter.d.ts +5 -5
  359. package/dist/client-search/model/reRankingApplyFilter.d.ts.map +1 -1
  360. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts +21 -0
  361. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  362. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts +7 -0
  363. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  364. package/dist/client-search/model/removeStopWords.d.ts +4 -4
  365. package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
  366. package/dist/client-search/model/removeUserIdResponse.d.ts +6 -6
  367. package/dist/client-search/model/removeUserIdResponse.d.ts.map +1 -1
  368. package/dist/client-search/model/removeWordsIfNoResults.d.ts +4 -4
  369. package/dist/client-search/model/removeWordsIfNoResults.d.ts.map +1 -1
  370. package/dist/client-search/model/renderingContent.d.ts +7 -7
  371. package/dist/client-search/model/renderingContent.d.ts.map +1 -1
  372. package/dist/client-search/model/replaceSourceResponse.d.ts +6 -6
  373. package/dist/client-search/model/replaceSourceResponse.d.ts.map +1 -1
  374. package/dist/client-search/model/rule.d.ts +29 -29
  375. package/dist/client-search/model/rule.d.ts.map +1 -1
  376. package/dist/client-search/model/saveObjectResponse.d.ts +14 -11
  377. package/dist/client-search/model/saveObjectResponse.d.ts.map +1 -1
  378. package/dist/client-search/model/saveSynonymResponse.d.ts +14 -14
  379. package/dist/client-search/model/saveSynonymResponse.d.ts.map +1 -1
  380. package/dist/client-search/model/scopeType.d.ts +1 -1
  381. package/dist/client-search/model/scopeType.d.ts.map +1 -1
  382. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +21 -21
  383. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  384. package/dist/client-search/model/searchForFacetValuesRequest.d.ts +14 -14
  385. package/dist/client-search/model/searchForFacetValuesRequest.d.ts.map +1 -1
  386. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +4 -4
  387. package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
  388. package/dist/client-search/model/searchForFacets.d.ts +3 -3
  389. package/dist/client-search/model/searchForFacets.d.ts.map +1 -1
  390. package/dist/client-search/model/searchForFacetsOptions.d.ts +20 -20
  391. package/dist/client-search/model/searchForFacetsOptions.d.ts.map +1 -1
  392. package/dist/client-search/model/searchForHits.d.ts +3 -3
  393. package/dist/client-search/model/searchForHits.d.ts.map +1 -1
  394. package/dist/client-search/model/searchForHitsOptions.d.ts +12 -12
  395. package/dist/client-search/model/searchForHitsOptions.d.ts.map +1 -1
  396. package/dist/client-search/model/searchHits.d.ts +12 -4
  397. package/dist/client-search/model/searchHits.d.ts.map +1 -1
  398. package/dist/client-search/model/searchMethodParams.d.ts +6 -6
  399. package/dist/client-search/model/searchMethodParams.d.ts.map +1 -1
  400. package/dist/client-search/model/searchParams.d.ts +3 -3
  401. package/dist/client-search/model/searchParams.d.ts.map +1 -1
  402. package/dist/client-search/model/searchParamsObject.d.ts +3 -3
  403. package/dist/client-search/model/searchParamsObject.d.ts.map +1 -1
  404. package/dist/client-search/model/searchParamsQuery.d.ts +6 -6
  405. package/dist/client-search/model/searchParamsQuery.d.ts.map +1 -1
  406. package/dist/client-search/model/searchParamsString.d.ts +6 -6
  407. package/dist/client-search/model/searchParamsString.d.ts.map +1 -1
  408. package/dist/client-search/model/searchQuery.d.ts +3 -3
  409. package/dist/client-search/model/searchQuery.d.ts.map +1 -1
  410. package/dist/client-search/model/searchResponse.d.ts +3 -3
  411. package/dist/client-search/model/searchResponse.d.ts.map +1 -1
  412. package/dist/client-search/model/searchResponses.d.ts +4 -4
  413. package/dist/client-search/model/searchResponses.d.ts.map +1 -1
  414. package/dist/client-search/model/searchResult.d.ts +4 -0
  415. package/dist/client-search/model/searchResult.d.ts.map +1 -0
  416. package/dist/client-search/model/searchRulesParams.d.ts +31 -31
  417. package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
  418. package/dist/client-search/model/searchRulesResponse.d.ts +19 -19
  419. package/dist/client-search/model/searchRulesResponse.d.ts.map +1 -1
  420. package/dist/client-search/model/searchStrategy.d.ts +4 -1
  421. package/dist/client-search/model/searchStrategy.d.ts.map +1 -1
  422. package/dist/client-search/model/searchSynonymsParams.d.ts +6 -6
  423. package/dist/client-search/model/searchSynonymsParams.d.ts.map +1 -1
  424. package/dist/client-search/model/searchSynonymsResponse.d.ts +11 -11
  425. package/dist/client-search/model/searchSynonymsResponse.d.ts.map +1 -1
  426. package/dist/client-search/model/searchTypeDefault.d.ts +4 -4
  427. package/dist/client-search/model/searchTypeDefault.d.ts.map +1 -1
  428. package/dist/client-search/model/searchTypeFacet.d.ts +4 -4
  429. package/dist/client-search/model/searchTypeFacet.d.ts.map +1 -1
  430. package/dist/client-search/model/searchUserIdsParams.d.ts +21 -21
  431. package/dist/client-search/model/searchUserIdsParams.d.ts.map +1 -1
  432. package/dist/client-search/model/searchUserIdsResponse.d.ts +26 -26
  433. package/dist/client-search/model/searchUserIdsResponse.d.ts.map +1 -1
  434. package/dist/client-search/model/semanticSearch.d.ts +10 -0
  435. package/dist/client-search/model/semanticSearch.d.ts.map +1 -0
  436. package/dist/client-search/model/snippetResult.d.ts +2 -2
  437. package/dist/client-search/model/snippetResult.d.ts.map +1 -1
  438. package/dist/client-search/model/snippetResultOption.d.ts +11 -11
  439. package/dist/client-search/model/snippetResultOption.d.ts.map +1 -1
  440. package/dist/client-search/model/sortRemainingBy.d.ts +4 -4
  441. package/dist/client-search/model/sortRemainingBy.d.ts.map +1 -1
  442. package/dist/client-search/model/source.d.ts +13 -13
  443. package/dist/client-search/model/source.d.ts.map +1 -1
  444. package/dist/client-search/model/standardEntries.d.ts +17 -17
  445. package/dist/client-search/model/standardEntries.d.ts.map +1 -1
  446. package/dist/client-search/model/synonymHit.d.ts +35 -37
  447. package/dist/client-search/model/synonymHit.d.ts.map +1 -1
  448. package/dist/client-search/model/synonymType.d.ts +4 -4
  449. package/dist/client-search/model/synonymType.d.ts.map +1 -1
  450. package/dist/client-search/model/tagFilters.d.ts +5 -5
  451. package/dist/client-search/model/tagFilters.d.ts.map +1 -1
  452. package/dist/client-search/model/taskStatus.d.ts +4 -1
  453. package/dist/client-search/model/taskStatus.d.ts.map +1 -1
  454. package/dist/client-search/model/timeRange.d.ts +10 -10
  455. package/dist/client-search/model/timeRange.d.ts.map +1 -1
  456. package/dist/client-search/model/typoTolerance.d.ts +5 -5
  457. package/dist/client-search/model/typoTolerance.d.ts.map +1 -1
  458. package/dist/client-search/model/typoToleranceEnum.d.ts +1 -1
  459. package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
  460. package/dist/client-search/model/updateApiKeyResponse.d.ts +10 -10
  461. package/dist/client-search/model/updateApiKeyResponse.d.ts.map +1 -1
  462. package/dist/client-search/model/updatedAtResponse.d.ts +13 -13
  463. package/dist/client-search/model/updatedAtResponse.d.ts.map +1 -1
  464. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +17 -17
  465. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
  466. package/dist/client-search/model/updatedRuleResponse.d.ts +14 -14
  467. package/dist/client-search/model/updatedRuleResponse.d.ts.map +1 -1
  468. package/dist/client-search/model/userHighlightResult.d.ts +11 -11
  469. package/dist/client-search/model/userHighlightResult.d.ts.map +1 -1
  470. package/dist/client-search/model/userHit.d.ts +24 -24
  471. package/dist/client-search/model/userHit.d.ts.map +1 -1
  472. package/dist/client-search/model/userId.d.ts +21 -21
  473. package/dist/client-search/model/userId.d.ts.map +1 -1
  474. package/dist/client-search/model/value.d.ts +8 -8
  475. package/dist/client-search/model/value.d.ts.map +1 -1
  476. package/dist/client-search/src/searchClient.d.ts +724 -723
  477. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  478. package/dist/lite/builds/browser.d.ts +5 -5
  479. package/dist/lite/builds/node.d.ts +5 -5
  480. package/dist/lite/{lite.cjs.js → lite.cjs} +183 -185
  481. package/dist/lite/lite.esm.browser.js +366 -416
  482. package/dist/lite/lite.esm.node.js +183 -183
  483. package/dist/lite/lite.umd.js +2 -2
  484. package/dist/lite/model/acl.d.ts +4 -4
  485. package/dist/lite/model/acl.d.ts.map +1 -1
  486. package/dist/lite/model/action.d.ts +4 -4
  487. package/dist/lite/model/action.d.ts.map +1 -1
  488. package/dist/lite/model/addApiKeyResponse.d.ts +10 -10
  489. package/dist/lite/model/addApiKeyResponse.d.ts.map +1 -1
  490. package/dist/lite/model/advancedSyntaxFeatures.d.ts +1 -1
  491. package/dist/lite/model/advancedSyntaxFeatures.d.ts.map +1 -1
  492. package/dist/lite/model/alternativesAsExact.d.ts +1 -1
  493. package/dist/lite/model/alternativesAsExact.d.ts.map +1 -1
  494. package/dist/lite/model/anchoring.d.ts +4 -4
  495. package/dist/lite/model/anchoring.d.ts.map +1 -1
  496. package/dist/lite/model/apiKey.d.ts +38 -38
  497. package/dist/lite/model/apiKey.d.ts.map +1 -1
  498. package/dist/lite/model/aroundPrecision.d.ts +6 -0
  499. package/dist/lite/model/aroundPrecision.d.ts.map +1 -0
  500. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +5 -0
  501. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  502. package/dist/lite/model/aroundRadius.d.ts +5 -5
  503. package/dist/lite/model/aroundRadius.d.ts.map +1 -1
  504. package/dist/lite/model/aroundRadiusAll.d.ts +1 -1
  505. package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
  506. package/dist/lite/model/attributeToUpdate.d.ts +2 -2
  507. package/dist/lite/model/attributeToUpdate.d.ts.map +1 -1
  508. package/dist/lite/model/automaticFacetFilter.d.ts +17 -17
  509. package/dist/lite/model/automaticFacetFilter.d.ts.map +1 -1
  510. package/dist/lite/model/automaticFacetFilters.d.ts +5 -5
  511. package/dist/lite/model/automaticFacetFilters.d.ts.map +1 -1
  512. package/dist/lite/model/baseGetApiKeyResponse.d.ts +10 -10
  513. package/dist/lite/model/baseGetApiKeyResponse.d.ts.map +1 -1
  514. package/dist/lite/model/baseIndexSettings.d.ts +62 -58
  515. package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
  516. package/dist/lite/model/baseSearchParams.d.ts +3 -3
  517. package/dist/lite/model/baseSearchParams.d.ts.map +1 -1
  518. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +118 -122
  519. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  520. package/dist/lite/model/baseSearchResponse.d.ts +95 -101
  521. package/dist/lite/model/baseSearchResponse.d.ts.map +1 -1
  522. package/dist/lite/model/baseSearchResponseRedirect.d.ts +8 -0
  523. package/dist/lite/model/baseSearchResponseRedirect.d.ts.map +1 -0
  524. package/dist/lite/model/browseParams.d.ts +3 -3
  525. package/dist/lite/model/browseParams.d.ts.map +1 -1
  526. package/dist/lite/model/browseParamsObject.d.ts +3 -3
  527. package/dist/lite/model/browseParamsObject.d.ts.map +1 -1
  528. package/dist/lite/model/browseResponse.d.ts +4 -4
  529. package/dist/lite/model/browseResponse.d.ts.map +1 -1
  530. package/dist/lite/model/builtInOperation.d.ts +11 -11
  531. package/dist/lite/model/builtInOperation.d.ts.map +1 -1
  532. package/dist/lite/model/builtInOperationType.d.ts +4 -4
  533. package/dist/lite/model/builtInOperationType.d.ts.map +1 -1
  534. package/dist/lite/model/clientMethodProps.d.ts +48 -48
  535. package/dist/lite/model/clientMethodProps.d.ts.map +1 -1
  536. package/dist/lite/model/condition.d.ts +16 -16
  537. package/dist/lite/model/condition.d.ts.map +1 -1
  538. package/dist/lite/model/consequence.d.ts +25 -25
  539. package/dist/lite/model/consequence.d.ts.map +1 -1
  540. package/dist/lite/model/consequenceHide.d.ts +9 -9
  541. package/dist/lite/model/consequenceHide.d.ts.map +1 -1
  542. package/dist/lite/model/consequenceParams.d.ts +4 -4
  543. package/dist/lite/model/consequenceParams.d.ts.map +1 -1
  544. package/dist/lite/model/consequenceQuery.d.ts +5 -5
  545. package/dist/lite/model/consequenceQuery.d.ts.map +1 -1
  546. package/dist/lite/model/consequenceQueryObject.d.ts +11 -11
  547. package/dist/lite/model/consequenceQueryObject.d.ts.map +1 -1
  548. package/dist/lite/model/cursor.d.ts +6 -6
  549. package/dist/lite/model/cursor.d.ts.map +1 -1
  550. package/dist/lite/model/deleteByParams.d.ts +27 -0
  551. package/dist/lite/model/deleteByParams.d.ts.map +1 -0
  552. package/dist/lite/model/dictionaryAction.d.ts +4 -4
  553. package/dist/lite/model/dictionaryAction.d.ts.map +1 -1
  554. package/dist/lite/model/dictionaryEntry.d.ts +27 -27
  555. package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
  556. package/dist/lite/model/dictionaryEntryState.d.ts +4 -4
  557. package/dist/lite/model/dictionaryEntryState.d.ts.map +1 -1
  558. package/dist/lite/model/dictionaryLanguage.d.ts +9 -9
  559. package/dist/lite/model/dictionaryLanguage.d.ts.map +1 -1
  560. package/dist/lite/model/dictionaryType.d.ts +1 -1
  561. package/dist/lite/model/dictionaryType.d.ts.map +1 -1
  562. package/dist/lite/model/distinct.d.ts +4 -4
  563. package/dist/lite/model/distinct.d.ts.map +1 -1
  564. package/dist/lite/model/edit.d.ts +12 -12
  565. package/dist/lite/model/edit.d.ts.map +1 -1
  566. package/dist/lite/model/editType.d.ts +4 -4
  567. package/dist/lite/model/editType.d.ts.map +1 -1
  568. package/dist/lite/model/errorBase.d.ts +6 -6
  569. package/dist/lite/model/errorBase.d.ts.map +1 -1
  570. package/dist/lite/model/exactOnSingleWordQuery.d.ts +4 -4
  571. package/dist/lite/model/exactOnSingleWordQuery.d.ts.map +1 -1
  572. package/dist/lite/model/facetFilters.d.ts +5 -5
  573. package/dist/lite/model/facetFilters.d.ts.map +1 -1
  574. package/dist/lite/model/facetHits.d.ts +15 -0
  575. package/dist/lite/model/facetHits.d.ts.map +1 -0
  576. package/dist/lite/model/facetOrdering.d.ts +12 -12
  577. package/dist/lite/model/facetOrdering.d.ts.map +1 -1
  578. package/dist/lite/model/facets.d.ts +9 -9
  579. package/dist/lite/model/facets.d.ts.map +1 -1
  580. package/dist/lite/model/facetsStats.d.ts +18 -18
  581. package/dist/lite/model/facetsStats.d.ts.map +1 -1
  582. package/dist/lite/model/fetchedIndex.d.ts +46 -46
  583. package/dist/lite/model/fetchedIndex.d.ts.map +1 -1
  584. package/dist/lite/model/getApiKeyResponse.d.ts +3 -3
  585. package/dist/lite/model/getApiKeyResponse.d.ts.map +1 -1
  586. package/dist/lite/model/highlightResult.d.ts +2 -2
  587. package/dist/lite/model/highlightResult.d.ts.map +1 -1
  588. package/dist/lite/model/highlightResultOption.d.ts +19 -19
  589. package/dist/lite/model/highlightResultOption.d.ts.map +1 -1
  590. package/dist/lite/model/hit.d.ts +22 -22
  591. package/dist/lite/model/hit.d.ts.map +1 -1
  592. package/dist/lite/model/ignorePlurals.d.ts +4 -4
  593. package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
  594. package/dist/lite/model/index.d.ts +117 -107
  595. package/dist/lite/model/index.d.ts.map +1 -1
  596. package/dist/lite/model/indexSettings.d.ts +6 -6
  597. package/dist/lite/model/indexSettings.d.ts.map +1 -1
  598. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +166 -160
  599. package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  600. package/dist/lite/model/languages.d.ts +9 -9
  601. package/dist/lite/model/languages.d.ts.map +1 -1
  602. package/dist/lite/model/listIndicesResponse.d.ts +11 -11
  603. package/dist/lite/model/listIndicesResponse.d.ts.map +1 -1
  604. package/dist/lite/model/logType.d.ts +1 -1
  605. package/dist/lite/model/logType.d.ts.map +1 -1
  606. package/dist/lite/model/matchLevel.d.ts +4 -4
  607. package/dist/lite/model/matchLevel.d.ts.map +1 -1
  608. package/dist/lite/model/matchedGeoLocation.d.ts +14 -14
  609. package/dist/lite/model/matchedGeoLocation.d.ts.map +1 -1
  610. package/dist/lite/model/mixedSearchFilters.d.ts +1 -1
  611. package/dist/lite/model/mixedSearchFilters.d.ts.map +1 -1
  612. package/dist/lite/model/mode.d.ts +5 -0
  613. package/dist/lite/model/mode.d.ts.map +1 -0
  614. package/dist/lite/model/numericFilters.d.ts +5 -5
  615. package/dist/lite/model/numericFilters.d.ts.map +1 -1
  616. package/dist/lite/model/operationType.d.ts +4 -4
  617. package/dist/lite/model/operationType.d.ts.map +1 -1
  618. package/dist/lite/model/optionalFilters.d.ts +5 -5
  619. package/dist/lite/model/optionalFilters.d.ts.map +1 -1
  620. package/dist/lite/model/params.d.ts +12 -12
  621. package/dist/lite/model/params.d.ts.map +1 -1
  622. package/dist/lite/model/personalization.d.ts +14 -14
  623. package/dist/lite/model/personalization.d.ts.map +1 -1
  624. package/dist/lite/model/promote.d.ts +3 -3
  625. package/dist/lite/model/promote.d.ts.map +1 -1
  626. package/dist/lite/model/promoteObjectID.d.ts +13 -13
  627. package/dist/lite/model/promoteObjectID.d.ts.map +1 -1
  628. package/dist/lite/model/promoteObjectIDs.d.ts +13 -13
  629. package/dist/lite/model/promoteObjectIDs.d.ts.map +1 -1
  630. package/dist/lite/model/queryType.d.ts +4 -4
  631. package/dist/lite/model/queryType.d.ts.map +1 -1
  632. package/dist/lite/model/rankingInfo.d.ts +50 -50
  633. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  634. package/dist/lite/model/reRankingApplyFilter.d.ts +5 -5
  635. package/dist/lite/model/reRankingApplyFilter.d.ts.map +1 -1
  636. package/dist/lite/model/redirectRuleIndexMetadata.d.ts +21 -0
  637. package/dist/lite/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  638. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts +7 -0
  639. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  640. package/dist/lite/model/removeStopWords.d.ts +4 -4
  641. package/dist/lite/model/removeStopWords.d.ts.map +1 -1
  642. package/dist/lite/model/removeWordsIfNoResults.d.ts +4 -4
  643. package/dist/lite/model/removeWordsIfNoResults.d.ts.map +1 -1
  644. package/dist/lite/model/renderingContent.d.ts +7 -7
  645. package/dist/lite/model/renderingContent.d.ts.map +1 -1
  646. package/dist/lite/model/rule.d.ts +29 -29
  647. package/dist/lite/model/rule.d.ts.map +1 -1
  648. package/dist/lite/model/scopeType.d.ts +1 -1
  649. package/dist/lite/model/scopeType.d.ts.map +1 -1
  650. package/dist/lite/model/searchForFacetValuesResponse.d.ts +5 -0
  651. package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -0
  652. package/dist/lite/model/searchForFacets.d.ts +3 -3
  653. package/dist/lite/model/searchForFacets.d.ts.map +1 -1
  654. package/dist/lite/model/searchForFacetsOptions.d.ts +20 -20
  655. package/dist/lite/model/searchForFacetsOptions.d.ts.map +1 -1
  656. package/dist/lite/model/searchForHits.d.ts +3 -3
  657. package/dist/lite/model/searchForHits.d.ts.map +1 -1
  658. package/dist/lite/model/searchForHitsOptions.d.ts +12 -12
  659. package/dist/lite/model/searchForHitsOptions.d.ts.map +1 -1
  660. package/dist/lite/model/searchHits.d.ts +12 -4
  661. package/dist/lite/model/searchHits.d.ts.map +1 -1
  662. package/dist/lite/model/searchMethodParams.d.ts +6 -6
  663. package/dist/lite/model/searchMethodParams.d.ts.map +1 -1
  664. package/dist/lite/model/searchParams.d.ts +3 -3
  665. package/dist/lite/model/searchParams.d.ts.map +1 -1
  666. package/dist/lite/model/searchParamsObject.d.ts +3 -3
  667. package/dist/lite/model/searchParamsObject.d.ts.map +1 -1
  668. package/dist/lite/model/searchParamsQuery.d.ts +6 -6
  669. package/dist/lite/model/searchParamsQuery.d.ts.map +1 -1
  670. package/dist/lite/model/searchParamsString.d.ts +6 -6
  671. package/dist/lite/model/searchParamsString.d.ts.map +1 -1
  672. package/dist/lite/model/searchQuery.d.ts +3 -3
  673. package/dist/lite/model/searchQuery.d.ts.map +1 -1
  674. package/dist/lite/model/searchResponse.d.ts +3 -3
  675. package/dist/lite/model/searchResponse.d.ts.map +1 -1
  676. package/dist/lite/model/searchResponses.d.ts +4 -4
  677. package/dist/lite/model/searchResponses.d.ts.map +1 -1
  678. package/dist/lite/model/searchResult.d.ts +4 -0
  679. package/dist/lite/model/searchResult.d.ts.map +1 -0
  680. package/dist/lite/model/searchStrategy.d.ts +4 -1
  681. package/dist/lite/model/searchStrategy.d.ts.map +1 -1
  682. package/dist/lite/model/searchSynonymsResponse.d.ts +11 -11
  683. package/dist/lite/model/searchSynonymsResponse.d.ts.map +1 -1
  684. package/dist/lite/model/searchTypeDefault.d.ts +4 -4
  685. package/dist/lite/model/searchTypeDefault.d.ts.map +1 -1
  686. package/dist/lite/model/searchTypeFacet.d.ts +4 -4
  687. package/dist/lite/model/searchTypeFacet.d.ts.map +1 -1
  688. package/dist/lite/model/semanticSearch.d.ts +10 -0
  689. package/dist/lite/model/semanticSearch.d.ts.map +1 -0
  690. package/dist/lite/model/snippetResult.d.ts +2 -2
  691. package/dist/lite/model/snippetResult.d.ts.map +1 -1
  692. package/dist/lite/model/snippetResultOption.d.ts +11 -11
  693. package/dist/lite/model/snippetResultOption.d.ts.map +1 -1
  694. package/dist/lite/model/sortRemainingBy.d.ts +4 -4
  695. package/dist/lite/model/sortRemainingBy.d.ts.map +1 -1
  696. package/dist/lite/model/source.d.ts +13 -13
  697. package/dist/lite/model/source.d.ts.map +1 -1
  698. package/dist/lite/model/standardEntries.d.ts +17 -17
  699. package/dist/lite/model/standardEntries.d.ts.map +1 -1
  700. package/dist/lite/model/synonymHit.d.ts +35 -37
  701. package/dist/lite/model/synonymHit.d.ts.map +1 -1
  702. package/dist/lite/model/synonymType.d.ts +4 -4
  703. package/dist/lite/model/synonymType.d.ts.map +1 -1
  704. package/dist/lite/model/tagFilters.d.ts +5 -5
  705. package/dist/lite/model/tagFilters.d.ts.map +1 -1
  706. package/dist/lite/model/taskStatus.d.ts +4 -1
  707. package/dist/lite/model/taskStatus.d.ts.map +1 -1
  708. package/dist/lite/model/timeRange.d.ts +10 -10
  709. package/dist/lite/model/timeRange.d.ts.map +1 -1
  710. package/dist/lite/model/typoTolerance.d.ts +5 -5
  711. package/dist/lite/model/typoTolerance.d.ts.map +1 -1
  712. package/dist/lite/model/typoToleranceEnum.d.ts +1 -1
  713. package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
  714. package/dist/lite/model/updatedRuleResponse.d.ts +14 -14
  715. package/dist/lite/model/updatedRuleResponse.d.ts.map +1 -1
  716. package/dist/lite/model/userId.d.ts +21 -21
  717. package/dist/lite/model/userId.d.ts.map +1 -1
  718. package/dist/lite/model/value.d.ts +8 -8
  719. package/dist/lite/model/value.d.ts.map +1 -1
  720. package/dist/lite/src/liteClient.d.ts +50 -50
  721. package/dist/lite/src/liteClient.d.ts.map +1 -1
  722. package/index.js +1 -1
  723. package/lite/builds/browser.ts +1 -1
  724. package/lite/builds/node.ts +1 -1
  725. package/lite/model/acl.ts +2 -2
  726. package/lite/model/action.ts +2 -2
  727. package/lite/model/addApiKeyResponse.ts +3 -3
  728. package/lite/model/advancedSyntaxFeatures.ts +1 -1
  729. package/lite/model/alternativesAsExact.ts +1 -1
  730. package/lite/model/anchoring.ts +2 -2
  731. package/lite/model/apiKey.ts +10 -10
  732. package/lite/model/aroundPrecision.ts +8 -0
  733. package/lite/model/aroundPrecisionFromValueInner.ts +7 -0
  734. package/lite/model/aroundRadius.ts +2 -2
  735. package/lite/model/aroundRadiusAll.ts +1 -1
  736. package/lite/model/attributeToUpdate.ts +1 -1
  737. package/lite/model/automaticFacetFilter.ts +1 -1
  738. package/lite/model/automaticFacetFilters.ts +1 -1
  739. package/lite/model/baseGetApiKeyResponse.ts +3 -3
  740. package/lite/model/baseIndexSettings.ts +19 -14
  741. package/lite/model/baseSearchParams.ts +1 -1
  742. package/lite/model/baseSearchParamsWithoutQuery.ts +38 -43
  743. package/lite/model/baseSearchResponse.ts +21 -28
  744. package/lite/model/baseSearchResponseRedirect.ts +10 -0
  745. package/lite/model/browseParams.ts +1 -1
  746. package/lite/model/browseParamsObject.ts +1 -1
  747. package/lite/model/browseResponse.ts +1 -1
  748. package/lite/model/builtInOperation.ts +2 -2
  749. package/lite/model/builtInOperationType.ts +2 -2
  750. package/lite/model/clientMethodProps.ts +4 -4
  751. package/lite/model/condition.ts +1 -1
  752. package/lite/model/consequence.ts +5 -5
  753. package/lite/model/consequenceHide.ts +3 -3
  754. package/lite/model/consequenceParams.ts +1 -1
  755. package/lite/model/consequenceQuery.ts +1 -1
  756. package/lite/model/consequenceQueryObject.ts +1 -1
  757. package/lite/model/cursor.ts +2 -2
  758. package/lite/model/deleteByParams.ts +36 -0
  759. package/lite/model/dictionaryAction.ts +1 -1
  760. package/lite/model/dictionaryEntry.ts +7 -7
  761. package/lite/model/dictionaryEntryState.ts +2 -2
  762. package/lite/model/dictionaryLanguage.ts +3 -3
  763. package/lite/model/dictionaryType.ts +1 -1
  764. package/lite/model/distinct.ts +2 -2
  765. package/lite/model/edit.ts +1 -1
  766. package/lite/model/editType.ts +1 -1
  767. package/lite/model/errorBase.ts +1 -1
  768. package/lite/model/exactOnSingleWordQuery.ts +2 -2
  769. package/lite/model/facetFilters.ts +2 -2
  770. package/lite/model/facetHits.ts +18 -0
  771. package/lite/model/facetOrdering.ts +3 -3
  772. package/lite/model/facets.ts +2 -2
  773. package/lite/model/facetsStats.ts +5 -5
  774. package/lite/model/fetchedIndex.ts +3 -3
  775. package/lite/model/getApiKeyResponse.ts +1 -1
  776. package/lite/model/highlightResult.ts +1 -1
  777. package/lite/model/highlightResultOption.ts +2 -2
  778. package/lite/model/hit.ts +2 -2
  779. package/lite/model/ignorePlurals.ts +2 -2
  780. package/lite/model/index.ts +12 -2
  781. package/lite/model/indexSettings.ts +2 -2
  782. package/lite/model/indexSettingsAsSearchParams.ts +53 -44
  783. package/lite/model/languages.ts +2 -2
  784. package/lite/model/listIndicesResponse.ts +2 -2
  785. package/lite/model/logType.ts +1 -1
  786. package/lite/model/matchLevel.ts +1 -1
  787. package/lite/model/matchedGeoLocation.ts +1 -1
  788. package/lite/model/mixedSearchFilters.ts +1 -1
  789. package/lite/model/mode.ts +6 -0
  790. package/lite/model/numericFilters.ts +2 -2
  791. package/lite/model/operationType.ts +2 -2
  792. package/lite/model/optionalFilters.ts +2 -2
  793. package/lite/model/params.ts +2 -2
  794. package/lite/model/personalization.ts +1 -1
  795. package/lite/model/promote.ts +1 -1
  796. package/lite/model/promoteObjectID.ts +4 -4
  797. package/lite/model/promoteObjectIDs.ts +4 -4
  798. package/lite/model/queryType.ts +2 -2
  799. package/lite/model/rankingInfo.ts +1 -1
  800. package/lite/model/reRankingApplyFilter.ts +2 -2
  801. package/lite/model/redirectRuleIndexMetadata.ts +27 -0
  802. package/lite/model/redirectRuleIndexMetadataData.ts +8 -0
  803. package/lite/model/removeStopWords.ts +2 -2
  804. package/lite/model/removeWordsIfNoResults.ts +2 -2
  805. package/lite/model/renderingContent.ts +2 -2
  806. package/lite/model/rule.ts +6 -6
  807. package/lite/model/scopeType.ts +1 -1
  808. package/lite/model/searchForFacetValuesResponse.ts +7 -0
  809. package/lite/model/searchForFacets.ts +1 -1
  810. package/lite/model/searchForFacetsOptions.ts +4 -4
  811. package/lite/model/searchForHits.ts +1 -1
  812. package/lite/model/searchForHitsOptions.ts +2 -2
  813. package/lite/model/searchHits.ts +11 -1
  814. package/lite/model/searchMethodParams.ts +1 -1
  815. package/lite/model/searchParams.ts +1 -1
  816. package/lite/model/searchParamsObject.ts +1 -1
  817. package/lite/model/searchParamsQuery.ts +2 -2
  818. package/lite/model/searchParamsString.ts +2 -2
  819. package/lite/model/searchQuery.ts +1 -1
  820. package/lite/model/searchResponse.ts +1 -1
  821. package/lite/model/searchResponses.ts +3 -3
  822. package/lite/model/searchResult.ts +8 -0
  823. package/lite/model/searchStrategy.ts +4 -1
  824. package/lite/model/searchSynonymsResponse.ts +3 -3
  825. package/lite/model/searchTypeDefault.ts +2 -2
  826. package/lite/model/searchTypeFacet.ts +2 -2
  827. package/lite/model/semanticSearch.ts +11 -0
  828. package/lite/model/snippetResult.ts +1 -1
  829. package/lite/model/snippetResultOption.ts +2 -2
  830. package/lite/model/sortRemainingBy.ts +2 -2
  831. package/lite/model/source.ts +4 -4
  832. package/lite/model/standardEntries.ts +5 -5
  833. package/lite/model/synonymHit.ts +7 -10
  834. package/lite/model/synonymType.ts +2 -2
  835. package/lite/model/tagFilters.ts +2 -2
  836. package/lite/model/taskStatus.ts +4 -1
  837. package/lite/model/timeRange.ts +1 -1
  838. package/lite/model/typoTolerance.ts +2 -2
  839. package/lite/model/typoToleranceEnum.ts +1 -1
  840. package/lite/model/updatedRuleResponse.ts +4 -4
  841. package/lite/model/userId.ts +3 -3
  842. package/lite/model/value.ts +1 -1
  843. package/lite/src/liteClient.ts +7 -7
  844. package/lite.js +1 -1
  845. package/package.json +22 -21
  846. package/dist/builds/models.d.ts.map +0 -1
  847. package/dist/client-search/model/synonymHitHighlightResult.d.ts +0 -12
  848. package/dist/client-search/model/synonymHitHighlightResult.d.ts.map +0 -1
  849. package/dist/lite/model/synonymHitHighlightResult.d.ts +0 -12
  850. package/dist/lite/model/synonymHitHighlightResult.d.ts.map +0 -1
  851. package/lite/model/synonymHitHighlightResult.ts +0 -15
@@ -1,715 +1,720 @@
1
- import type { CreateIterablePromise } from '@algolia/client-common';
2
- import type { ApiKey } from './apiKey';
3
- import type { AssignUserIdParams } from './assignUserIdParams';
4
- import type { AttributeToUpdate } from './attributeToUpdate';
5
- import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
6
- import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
7
- import type { BatchWriteParams } from './batchWriteParams';
8
- import type { BrowseParams } from './browseParams';
9
- import type { DictionaryType } from './dictionaryType';
10
- import type { IndexSettings } from './indexSettings';
11
- import type { LogType } from './logType';
12
- import type { OperationIndexParams } from './operationIndexParams';
13
- import type { Rule } from './rule';
14
- import type { SearchDictionaryEntriesParams } from './searchDictionaryEntriesParams';
15
- import type { SearchForFacetValuesRequest } from './searchForFacetValuesRequest';
16
- import type { SearchForFacetsOptions } from './searchForFacetsOptions';
17
- import type { SearchForHitsOptions } from './searchForHitsOptions';
18
- import type { SearchParams } from './searchParams';
19
- import type { SearchParamsObject } from './searchParamsObject';
20
- import type { SearchRulesParams } from './searchRulesParams';
21
- import type { SearchSynonymsParams } from './searchSynonymsParams';
22
- import type { Source } from './source';
23
- import type { SynonymHit } from './synonymHit';
24
- import type { SynonymType } from './synonymType';
25
- /**
26
- * Properties for the `addOrUpdateObject` method.
27
- */
28
- export declare type AddOrUpdateObjectProps = {
29
- /**
30
- * The index in which to perform the request.
31
- */
32
- indexName: string;
33
- /**
34
- * Unique identifier of an object.
35
- */
36
- objectID: string;
37
- /**
38
- * The Algolia object.
39
- */
40
- body: Record<string, any>;
41
- };
42
- /**
43
- * Properties for the `assignUserId` method.
44
- */
45
- export declare type AssignUserIdProps = {
46
- /**
47
- * UserID to assign.
48
- */
49
- xAlgoliaUserID: string;
50
- assignUserIdParams: AssignUserIdParams;
51
- };
52
- /**
53
- * Properties for the `batch` method.
54
- */
55
- export declare type BatchProps = {
56
- /**
57
- * The index in which to perform the request.
58
- */
59
- indexName: string;
60
- batchWriteParams: BatchWriteParams;
61
- };
62
- /**
63
- * Properties for the `batchAssignUserIds` method.
64
- */
65
- export declare type BatchAssignUserIdsProps = {
66
- /**
67
- * UserID to assign.
68
- */
69
- xAlgoliaUserID: string;
70
- batchAssignUserIdsParams: BatchAssignUserIdsParams;
71
- };
72
- /**
73
- * Properties for the `batchDictionaryEntries` method.
74
- */
75
- export declare type BatchDictionaryEntriesProps = {
76
- /**
77
- * The dictionary to search in.
78
- */
79
- dictionaryName: DictionaryType;
80
- batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
81
- };
82
- /**
83
- * Properties for the `browse` method.
84
- */
85
- export declare type BrowseProps = {
86
- /**
87
- * The index in which to perform the request.
88
- */
89
- indexName: string;
90
- browseParams?: BrowseParams;
91
- };
92
- /**
93
- * Properties for the `clearAllSynonyms` method.
94
- */
95
- export declare type ClearAllSynonymsProps = {
96
- /**
97
- * The index in which to perform the request.
98
- */
99
- indexName: string;
100
- /**
101
- * When true, changes are also propagated to replicas of the given indexName.
102
- */
103
- forwardToReplicas?: boolean;
104
- };
105
- /**
106
- * Properties for the `clearObjects` method.
107
- */
108
- export declare type ClearObjectsProps = {
109
- /**
110
- * The index in which to perform the request.
111
- */
112
- indexName: string;
113
- };
114
- /**
115
- * Properties for the `clearRules` method.
116
- */
117
- export declare type ClearRulesProps = {
118
- /**
119
- * The index in which to perform the request.
120
- */
121
- indexName: string;
122
- /**
123
- * When true, changes are also propagated to replicas of the given indexName.
124
- */
125
- forwardToReplicas?: boolean;
126
- };
127
- /**
128
- * Properties for the `del` method.
129
- */
130
- export declare type DelProps = {
131
- /**
132
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
133
- */
134
- path: string;
135
- /**
136
- * Query parameters to be applied to the current query.
137
- */
138
- parameters?: Record<string, any>;
139
- };
140
- /**
141
- * Properties for the `deleteApiKey` method.
142
- */
143
- export declare type DeleteApiKeyProps = {
144
- /**
145
- * API Key string.
146
- */
147
- key: string;
148
- };
149
- /**
150
- * Properties for the `deleteBy` method.
151
- */
152
- export declare type DeleteByProps = {
153
- /**
154
- * The index in which to perform the request.
155
- */
156
- indexName: string;
157
- searchParams: SearchParams;
158
- };
159
- /**
160
- * Properties for the `deleteIndex` method.
161
- */
162
- export declare type DeleteIndexProps = {
163
- /**
164
- * The index in which to perform the request.
165
- */
166
- indexName: string;
167
- };
168
- /**
169
- * Properties for the `deleteObject` method.
170
- */
171
- export declare type DeleteObjectProps = {
172
- /**
173
- * The index in which to perform the request.
174
- */
175
- indexName: string;
176
- /**
177
- * Unique identifier of an object.
178
- */
179
- objectID: string;
180
- };
181
- /**
182
- * Properties for the `deleteRule` method.
183
- */
184
- export declare type DeleteRuleProps = {
185
- /**
186
- * The index in which to perform the request.
187
- */
188
- indexName: string;
189
- /**
190
- * Unique identifier of an object.
191
- */
192
- objectID: string;
193
- /**
194
- * When true, changes are also propagated to replicas of the given indexName.
195
- */
196
- forwardToReplicas?: boolean;
197
- };
198
- /**
199
- * Properties for the `deleteSource` method.
200
- */
201
- export declare type DeleteSourceProps = {
202
- /**
203
- * The IP range of the source.
204
- */
205
- source: string;
206
- };
207
- /**
208
- * Properties for the `deleteSynonym` method.
209
- */
210
- export declare type DeleteSynonymProps = {
211
- /**
212
- * The index in which to perform the request.
213
- */
214
- indexName: string;
215
- /**
216
- * Unique identifier of an object.
217
- */
218
- objectID: string;
219
- /**
220
- * When true, changes are also propagated to replicas of the given indexName.
221
- */
222
- forwardToReplicas?: boolean;
223
- };
224
- /**
225
- * Properties for the `get` method.
226
- */
227
- export declare type GetProps = {
228
- /**
229
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
230
- */
231
- path: string;
232
- /**
233
- * Query parameters to be applied to the current query.
234
- */
235
- parameters?: Record<string, any>;
236
- };
237
- /**
238
- * Properties for the `getApiKey` method.
239
- */
240
- export declare type GetApiKeyProps = {
241
- /**
242
- * API Key string.
243
- */
244
- key: string;
245
- };
246
- /**
247
- * Properties for the `getLogs` method.
248
- */
249
- export declare type GetLogsProps = {
250
- /**
251
- * First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry.
252
- */
253
- offset?: number;
254
- /**
255
- * Maximum number of entries to retrieve. The maximum allowed value is 1000.
256
- */
257
- length?: number;
258
- /**
259
- * Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices.
260
- */
261
- indexName?: string;
262
- /**
263
- * Type of log entries to retrieve. When omitted, all log entries are retrieved.
264
- */
265
- type?: LogType;
266
- };
267
- /**
268
- * Properties for the `getObject` method.
269
- */
270
- export declare type GetObjectProps = {
271
- /**
272
- * The index in which to perform the request.
273
- */
274
- indexName: string;
275
- /**
276
- * Unique identifier of an object.
277
- */
278
- objectID: string;
279
- /**
280
- * List of attributes to retrieve. If not specified, all retrievable attributes are returned.
281
- */
282
- attributesToRetrieve?: string[];
283
- };
284
- /**
285
- * Properties for the `getRule` method.
286
- */
287
- export declare type GetRuleProps = {
288
- /**
289
- * The index in which to perform the request.
290
- */
291
- indexName: string;
292
- /**
293
- * Unique identifier of an object.
294
- */
295
- objectID: string;
296
- };
297
- /**
298
- * Properties for the `getSettings` method.
299
- */
300
- export declare type GetSettingsProps = {
301
- /**
302
- * The index in which to perform the request.
303
- */
304
- indexName: string;
305
- };
306
- /**
307
- * Properties for the `getSynonym` method.
308
- */
309
- export declare type GetSynonymProps = {
310
- /**
311
- * The index in which to perform the request.
312
- */
313
- indexName: string;
314
- /**
315
- * Unique identifier of an object.
316
- */
317
- objectID: string;
318
- };
319
- /**
320
- * Properties for the `getTask` method.
321
- */
322
- export declare type GetTaskProps = {
323
- /**
324
- * The index in which to perform the request.
325
- */
326
- indexName: string;
327
- /**
328
- * Unique identifier of an task. Numeric value (up to 64bits).
329
- */
330
- taskID: number;
331
- };
332
- /**
333
- * Properties for the `getUserId` method.
334
- */
335
- export declare type GetUserIdProps = {
336
- /**
337
- * UserID to assign.
338
- */
339
- userID: string;
340
- };
341
- /**
342
- * Properties for the `hasPendingMappings` method.
343
- */
344
- export declare type HasPendingMappingsProps = {
345
- /**
346
- * If the clusters pending mapping state should be on the response.
347
- */
348
- getClusters?: boolean;
349
- };
350
- /**
351
- * Properties for the `listIndices` method.
352
- */
353
- export declare type ListIndicesProps = {
354
- /**
355
- * 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).
356
- */
357
- page?: number;
358
- };
359
- /**
360
- * Properties for the `listUserIds` method.
361
- */
362
- export declare type ListUserIdsProps = {
363
- /**
364
- * 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).
365
- */
366
- page?: number;
367
- /**
368
- * Maximum number of objects to retrieve.
369
- */
370
- hitsPerPage?: number;
371
- };
372
- /**
373
- * Properties for the `operationIndex` method.
374
- */
375
- export declare type OperationIndexProps = {
376
- /**
377
- * The index in which to perform the request.
378
- */
379
- indexName: string;
380
- operationIndexParams: OperationIndexParams;
381
- };
382
- /**
383
- * Properties for the `partialUpdateObject` method.
384
- */
385
- export declare type PartialUpdateObjectProps = {
386
- /**
387
- * The index in which to perform the request.
388
- */
389
- indexName: string;
390
- /**
391
- * Unique identifier of an object.
392
- */
393
- objectID: string;
394
- /**
395
- * Map of attribute(s) to update.
396
- */
397
- attributesToUpdate: Record<string, AttributeToUpdate>;
398
- /**
399
- * Creates the record if it does not exist yet.
400
- */
401
- createIfNotExists?: boolean;
402
- };
403
- /**
404
- * Properties for the `post` method.
405
- */
406
- export declare type PostProps = {
407
- /**
408
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
409
- */
410
- path: string;
411
- /**
412
- * Query parameters to be applied to the current query.
413
- */
414
- parameters?: Record<string, any>;
415
- /**
416
- * The parameters to send with the custom request.
417
- */
418
- body?: Record<string, any>;
419
- };
420
- /**
421
- * Properties for the `put` method.
422
- */
423
- export declare type PutProps = {
424
- /**
425
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
426
- */
427
- path: string;
428
- /**
429
- * Query parameters to be applied to the current query.
430
- */
431
- parameters?: Record<string, any>;
432
- /**
433
- * The parameters to send with the custom request.
434
- */
435
- body?: Record<string, any>;
436
- };
437
- /**
438
- * Properties for the `removeUserId` method.
439
- */
440
- export declare type RemoveUserIdProps = {
441
- /**
442
- * UserID to assign.
443
- */
444
- userID: string;
445
- };
446
- /**
447
- * Properties for the `replaceSources` method.
448
- */
449
- export declare type ReplaceSourcesProps = {
450
- /**
451
- * The sources to allow.
452
- */
453
- source: Source[];
454
- };
455
- /**
456
- * Properties for the `restoreApiKey` method.
457
- */
458
- export declare type RestoreApiKeyProps = {
459
- /**
460
- * API Key string.
461
- */
462
- key: string;
463
- };
464
- /**
465
- * Properties for the `saveObject` method.
466
- */
467
- export declare type SaveObjectProps = {
468
- /**
469
- * The index in which to perform the request.
470
- */
471
- indexName: string;
472
- /**
473
- * The Algolia record.
474
- */
475
- body: Record<string, any>;
476
- };
477
- /**
478
- * Properties for the `saveRule` method.
479
- */
480
- export declare type SaveRuleProps = {
481
- /**
482
- * The index in which to perform the request.
483
- */
484
- indexName: string;
485
- /**
486
- * Unique identifier of an object.
487
- */
488
- objectID: string;
489
- rule: Rule;
490
- /**
491
- * When true, changes are also propagated to replicas of the given indexName.
492
- */
493
- forwardToReplicas?: boolean;
494
- };
495
- /**
496
- * Properties for the `saveRules` method.
497
- */
498
- export declare type SaveRulesProps = {
499
- /**
500
- * The index in which to perform the request.
501
- */
502
- indexName: string;
503
- rules: Rule[];
504
- /**
505
- * When true, changes are also propagated to replicas of the given indexName.
506
- */
507
- forwardToReplicas?: boolean;
508
- /**
509
- * When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
510
- */
511
- clearExistingRules?: boolean;
512
- };
513
- /**
514
- * Properties for the `saveSynonym` method.
515
- */
516
- export declare type SaveSynonymProps = {
517
- /**
518
- * The index in which to perform the request.
519
- */
520
- indexName: string;
521
- /**
522
- * Unique identifier of an object.
523
- */
524
- objectID: string;
525
- synonymHit: SynonymHit;
526
- /**
527
- * When true, changes are also propagated to replicas of the given indexName.
528
- */
529
- forwardToReplicas?: boolean;
530
- };
531
- /**
532
- * Properties for the `saveSynonyms` method.
533
- */
534
- export declare type SaveSynonymsProps = {
535
- /**
536
- * The index in which to perform the request.
537
- */
538
- indexName: string;
539
- synonymHit: SynonymHit[];
540
- /**
541
- * When true, changes are also propagated to replicas of the given indexName.
542
- */
543
- forwardToReplicas?: boolean;
544
- /**
545
- * Replace all synonyms of the index with the ones sent with this request.
546
- */
547
- replaceExistingSynonyms?: boolean;
548
- };
549
- /**
550
- * In v4, the search parameters are wrapped in a `params` parameter.
551
- *
552
- * @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
553
- */
554
- declare type LegacySearchParams = {
555
- params?: SearchParamsObject;
556
- };
557
- /**
558
- * In v4, the search parameters are wrapped in a `params` parameter.
559
- *
560
- * @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
561
- */
562
- declare type LegacySearchForFacets = LegacySearchParams & SearchForFacetsOptions;
563
- /**
564
- * In v4, the search parameters are wrapped in a `params` parameter.
565
- *
566
- * @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
567
- */
568
- declare type LegacySearchForHits = LegacySearchParams & SearchForHitsOptions;
569
- declare type LegacySearchQuery = LegacySearchForFacets | LegacySearchForHits;
570
- /**
571
- * Search method signature compatible with the `algoliasearch` v4 package. When using this signature, extra computation will be required to make it match the new signature.
572
- *
573
- * @deprecated This signature will be removed from the next major version, we recommend using the `SearchMethodParams` type for performances and future proof reasons.
574
- */
575
- export declare type LegacySearchMethodProps = LegacySearchQuery[];
576
- /**
577
- * Properties for the `searchDictionaryEntries` method.
578
- */
579
- export declare type SearchDictionaryEntriesProps = {
580
- /**
581
- * The dictionary to search in.
582
- */
583
- dictionaryName: DictionaryType;
584
- searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
585
- };
586
- /**
587
- * Properties for the `searchForFacetValues` method.
588
- */
589
- export declare type SearchForFacetValuesProps = {
590
- /**
591
- * The index in which to perform the request.
592
- */
593
- indexName: string;
594
- /**
595
- * The facet name.
596
- */
597
- facetName: string;
598
- searchForFacetValuesRequest?: SearchForFacetValuesRequest;
599
- };
600
- /**
601
- * Properties for the `searchRules` method.
602
- */
603
- export declare type SearchRulesProps = {
604
- /**
605
- * The index in which to perform the request.
606
- */
607
- indexName: string;
608
- searchRulesParams?: SearchRulesParams;
609
- };
610
- /**
611
- * Properties for the `searchSingleIndex` method.
612
- */
613
- export declare type SearchSingleIndexProps = {
614
- /**
615
- * The index in which to perform the request.
616
- */
617
- indexName: string;
618
- searchParams?: SearchParams;
619
- };
620
- /**
621
- * Properties for the `searchSynonyms` method.
622
- */
623
- export declare type SearchSynonymsProps = {
624
- /**
625
- * The index in which to perform the request.
626
- */
627
- indexName: string;
628
- /**
629
- * Only search for specific types of synonyms.
630
- */
631
- type?: SynonymType;
632
- /**
633
- * 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).
634
- */
635
- page?: number;
636
- /**
637
- * Maximum number of objects to retrieve.
638
- */
639
- hitsPerPage?: number;
640
- /**
641
- * The body of the the `searchSynonyms` method.
642
- */
643
- searchSynonymsParams?: SearchSynonymsParams;
644
- };
645
- /**
646
- * Properties for the `setSettings` method.
647
- */
648
- export declare type SetSettingsProps = {
649
- /**
650
- * The index in which to perform the request.
651
- */
652
- indexName: string;
653
- indexSettings: IndexSettings;
654
- /**
655
- * When true, changes are also propagated to replicas of the given indexName.
656
- */
657
- forwardToReplicas?: boolean;
658
- };
659
- /**
660
- * Properties for the `updateApiKey` method.
661
- */
662
- export declare type UpdateApiKeyProps = {
663
- /**
664
- * API Key string.
665
- */
666
- key: string;
667
- apiKey: ApiKey;
668
- };
669
- /**
670
- * The `browseObjects`, `browseRules`, `browseSynonyms` options.
671
- */
672
- export declare type BrowseOptions<T> = Partial<Pick<CreateIterablePromise<T>, 'validate'>> & Required<Pick<CreateIterablePromise<T>, 'aggregator'>>;
673
- declare type WaitForOptions = Partial<{
674
- /**
675
- * The maximum number of retries. 50 by default.
676
- */
677
- maxRetries: number;
678
- /**
679
- * The function to decide how long to wait between retries.
680
- */
681
- timeout: (retryCount: number) => number;
682
- }>;
683
- export declare type WaitForTaskOptions = WaitForOptions & {
684
- /**
685
- * The `indexName` where the operation was performed.
686
- */
687
- indexName: string;
688
- /**
689
- * The `taskID` returned by the method response.
690
- */
691
- taskID: number;
692
- };
693
- export declare type WaitForApiKeyOptions = WaitForOptions & {
694
- /**
695
- * The API Key.
696
- */
697
- key: string;
698
- } & ({
699
- /**
700
- * The operation that has been performed, used to compute the stop condition.
701
- */
702
- operation: 'add' | 'delete';
703
- apiKey?: never;
704
- } | {
705
- /**
706
- * The operation that has been performed, used to compute the stop condition.
707
- */
708
- operation: 'update';
709
- /**
710
- * The updated fields, used to compute the stop condition.
711
- */
712
- apiKey: Partial<ApiKey>;
713
- });
714
- export {};
1
+ import type { CreateIterablePromise } from '@algolia/client-common';
2
+ import type { ApiKey } from './apiKey';
3
+ import type { AssignUserIdParams } from './assignUserIdParams';
4
+ import type { AttributeToUpdate } from './attributeToUpdate';
5
+ import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
6
+ import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
7
+ import type { BatchWriteParams } from './batchWriteParams';
8
+ import type { BrowseParams } from './browseParams';
9
+ import type { DeleteByParams } from './deleteByParams';
10
+ import type { DictionaryType } from './dictionaryType';
11
+ import type { IndexSettings } from './indexSettings';
12
+ import type { LogType } from './logType';
13
+ import type { OperationIndexParams } from './operationIndexParams';
14
+ import type { Rule } from './rule';
15
+ import type { SearchDictionaryEntriesParams } from './searchDictionaryEntriesParams';
16
+ import type { SearchForFacetValuesRequest } from './searchForFacetValuesRequest';
17
+ import type { SearchForFacetsOptions } from './searchForFacetsOptions';
18
+ import type { SearchForHitsOptions } from './searchForHitsOptions';
19
+ import type { SearchParams } from './searchParams';
20
+ import type { SearchParamsObject } from './searchParamsObject';
21
+ import type { SearchRulesParams } from './searchRulesParams';
22
+ import type { SearchSynonymsParams } from './searchSynonymsParams';
23
+ import type { Source } from './source';
24
+ import type { SynonymHit } from './synonymHit';
25
+ import type { SynonymType } from './synonymType';
26
+ /**
27
+ * Properties for the `addOrUpdateObject` method.
28
+ */
29
+ export type AddOrUpdateObjectProps = {
30
+ /**
31
+ * Index on which to perform the request.
32
+ */
33
+ indexName: string;
34
+ /**
35
+ * Unique record (object) identifier.
36
+ */
37
+ objectID: string;
38
+ /**
39
+ * Algolia record.
40
+ */
41
+ body: Record<string, any>;
42
+ };
43
+ /**
44
+ * Properties for the `assignUserId` method.
45
+ */
46
+ export type AssignUserIdProps = {
47
+ /**
48
+ * UserID to assign.
49
+ */
50
+ xAlgoliaUserID: string;
51
+ assignUserIdParams: AssignUserIdParams;
52
+ };
53
+ /**
54
+ * Properties for the `batch` method.
55
+ */
56
+ export type BatchProps = {
57
+ /**
58
+ * Index on which to perform the request.
59
+ */
60
+ indexName: string;
61
+ batchWriteParams: BatchWriteParams;
62
+ };
63
+ /**
64
+ * Properties for the `batchAssignUserIds` method.
65
+ */
66
+ export type BatchAssignUserIdsProps = {
67
+ /**
68
+ * UserID to assign.
69
+ */
70
+ xAlgoliaUserID: string;
71
+ batchAssignUserIdsParams: BatchAssignUserIdsParams;
72
+ };
73
+ /**
74
+ * Properties for the `batchDictionaryEntries` method.
75
+ */
76
+ export type BatchDictionaryEntriesProps = {
77
+ /**
78
+ * Dictionary to search in.
79
+ */
80
+ dictionaryName: DictionaryType;
81
+ batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
82
+ };
83
+ /**
84
+ * Properties for the `browse` method.
85
+ */
86
+ export type BrowseProps = {
87
+ /**
88
+ * Index on which to perform the request.
89
+ */
90
+ indexName: string;
91
+ browseParams?: BrowseParams;
92
+ };
93
+ /**
94
+ * Properties for the `clearAllSynonyms` method.
95
+ */
96
+ export type ClearAllSynonymsProps = {
97
+ /**
98
+ * Index on which to perform the request.
99
+ */
100
+ indexName: string;
101
+ /**
102
+ * Indicates whether changed index settings are forwarded to the replica indices.
103
+ */
104
+ forwardToReplicas?: boolean;
105
+ };
106
+ /**
107
+ * Properties for the `clearObjects` method.
108
+ */
109
+ export type ClearObjectsProps = {
110
+ /**
111
+ * Index on which to perform the request.
112
+ */
113
+ indexName: string;
114
+ };
115
+ /**
116
+ * Properties for the `clearRules` method.
117
+ */
118
+ export type ClearRulesProps = {
119
+ /**
120
+ * Index on which to perform the request.
121
+ */
122
+ indexName: string;
123
+ /**
124
+ * Indicates whether changed index settings are forwarded to the replica indices.
125
+ */
126
+ forwardToReplicas?: boolean;
127
+ };
128
+ /**
129
+ * Properties for the `del` method.
130
+ */
131
+ export type DelProps = {
132
+ /**
133
+ * Path of the endpoint, anything after \"/1\" must be specified.
134
+ */
135
+ path: string;
136
+ /**
137
+ * Query parameters to apply to the current query.
138
+ */
139
+ parameters?: Record<string, any>;
140
+ };
141
+ /**
142
+ * Properties for the `deleteApiKey` method.
143
+ */
144
+ export type DeleteApiKeyProps = {
145
+ /**
146
+ * API key.
147
+ */
148
+ key: string;
149
+ };
150
+ /**
151
+ * Properties for the `deleteBy` method.
152
+ */
153
+ export type DeleteByProps = {
154
+ /**
155
+ * Index on which to perform the request.
156
+ */
157
+ indexName: string;
158
+ deleteByParams: DeleteByParams;
159
+ };
160
+ /**
161
+ * Properties for the `deleteIndex` method.
162
+ */
163
+ export type DeleteIndexProps = {
164
+ /**
165
+ * Index on which to perform the request.
166
+ */
167
+ indexName: string;
168
+ };
169
+ /**
170
+ * Properties for the `deleteObject` method.
171
+ */
172
+ export type DeleteObjectProps = {
173
+ /**
174
+ * Index on which to perform the request.
175
+ */
176
+ indexName: string;
177
+ /**
178
+ * Unique record (object) identifier.
179
+ */
180
+ objectID: string;
181
+ };
182
+ /**
183
+ * Properties for the `deleteRule` method.
184
+ */
185
+ export type DeleteRuleProps = {
186
+ /**
187
+ * Index on which to perform the request.
188
+ */
189
+ indexName: string;
190
+ /**
191
+ * Unique identifier of a rule object.
192
+ */
193
+ objectID: string;
194
+ /**
195
+ * Indicates whether changed index settings are forwarded to the replica indices.
196
+ */
197
+ forwardToReplicas?: boolean;
198
+ };
199
+ /**
200
+ * Properties for the `deleteSource` method.
201
+ */
202
+ export type DeleteSourceProps = {
203
+ /**
204
+ * IP address range of the source.
205
+ */
206
+ source: string;
207
+ };
208
+ /**
209
+ * Properties for the `deleteSynonym` method.
210
+ */
211
+ export type DeleteSynonymProps = {
212
+ /**
213
+ * Index on which to perform the request.
214
+ */
215
+ indexName: string;
216
+ /**
217
+ * Unique identifier of a synonym object.
218
+ */
219
+ objectID: string;
220
+ /**
221
+ * Indicates whether changed index settings are forwarded to the replica indices.
222
+ */
223
+ forwardToReplicas?: boolean;
224
+ };
225
+ /**
226
+ * Properties for the `get` method.
227
+ */
228
+ export type GetProps = {
229
+ /**
230
+ * Path of the endpoint, anything after \"/1\" must be specified.
231
+ */
232
+ path: string;
233
+ /**
234
+ * Query parameters to apply to the current query.
235
+ */
236
+ parameters?: Record<string, any>;
237
+ };
238
+ /**
239
+ * Properties for the `getApiKey` method.
240
+ */
241
+ export type GetApiKeyProps = {
242
+ /**
243
+ * API key.
244
+ */
245
+ key: string;
246
+ };
247
+ /**
248
+ * Properties for the `getLogs` method.
249
+ */
250
+ export type GetLogsProps = {
251
+ /**
252
+ * First log entry to retrieve. Sorted by decreasing date with 0 being the most recent.
253
+ */
254
+ offset?: number;
255
+ /**
256
+ * Maximum number of entries to retrieve.
257
+ */
258
+ length?: number;
259
+ /**
260
+ * Index for which log entries should be retrieved. When omitted, log entries are retrieved for all indices.
261
+ */
262
+ indexName?: string;
263
+ /**
264
+ * Type of log entries to retrieve. When omitted, all log entries are retrieved.
265
+ */
266
+ type?: LogType;
267
+ };
268
+ /**
269
+ * Properties for the `getObject` method.
270
+ */
271
+ export type GetObjectProps = {
272
+ /**
273
+ * Index on which to perform the request.
274
+ */
275
+ indexName: string;
276
+ /**
277
+ * Unique record (object) identifier.
278
+ */
279
+ objectID: string;
280
+ /**
281
+ * 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.
282
+ */
283
+ attributesToRetrieve?: string[];
284
+ };
285
+ /**
286
+ * Properties for the `getRule` method.
287
+ */
288
+ export type GetRuleProps = {
289
+ /**
290
+ * Index on which to perform the request.
291
+ */
292
+ indexName: string;
293
+ /**
294
+ * Unique identifier of a rule object.
295
+ */
296
+ objectID: string;
297
+ };
298
+ /**
299
+ * Properties for the `getSettings` method.
300
+ */
301
+ export type GetSettingsProps = {
302
+ /**
303
+ * Index on which to perform the request.
304
+ */
305
+ indexName: string;
306
+ };
307
+ /**
308
+ * Properties for the `getSynonym` method.
309
+ */
310
+ export type GetSynonymProps = {
311
+ /**
312
+ * Index on which to perform the request.
313
+ */
314
+ indexName: string;
315
+ /**
316
+ * Unique identifier of a synonym object.
317
+ */
318
+ objectID: string;
319
+ };
320
+ /**
321
+ * Properties for the `getTask` method.
322
+ */
323
+ export type GetTaskProps = {
324
+ /**
325
+ * Index on which to perform the request.
326
+ */
327
+ indexName: string;
328
+ /**
329
+ * Unique task identifier.
330
+ */
331
+ taskID: number;
332
+ };
333
+ /**
334
+ * Properties for the `getUserId` method.
335
+ */
336
+ export type GetUserIdProps = {
337
+ /**
338
+ * UserID to assign.
339
+ */
340
+ userID: string;
341
+ };
342
+ /**
343
+ * Properties for the `hasPendingMappings` method.
344
+ */
345
+ export type HasPendingMappingsProps = {
346
+ /**
347
+ * Indicates whether to include the cluster\'s pending mapping state in the response.
348
+ */
349
+ getClusters?: boolean;
350
+ };
351
+ /**
352
+ * Properties for the `listIndices` method.
353
+ */
354
+ export type ListIndicesProps = {
355
+ /**
356
+ * 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.
357
+ */
358
+ page?: number;
359
+ /**
360
+ * Maximum number of hits per page.
361
+ */
362
+ hitsPerPage?: number;
363
+ };
364
+ /**
365
+ * Properties for the `listUserIds` method.
366
+ */
367
+ export type ListUserIdsProps = {
368
+ /**
369
+ * 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.
370
+ */
371
+ page?: number;
372
+ /**
373
+ * Maximum number of hits per page.
374
+ */
375
+ hitsPerPage?: number;
376
+ };
377
+ /**
378
+ * Properties for the `operationIndex` method.
379
+ */
380
+ export type OperationIndexProps = {
381
+ /**
382
+ * Index on which to perform the request.
383
+ */
384
+ indexName: string;
385
+ operationIndexParams: OperationIndexParams;
386
+ };
387
+ /**
388
+ * Properties for the `partialUpdateObject` method.
389
+ */
390
+ export type PartialUpdateObjectProps = {
391
+ /**
392
+ * Index on which to perform the request.
393
+ */
394
+ indexName: string;
395
+ /**
396
+ * Unique record (object) identifier.
397
+ */
398
+ objectID: string;
399
+ /**
400
+ * Object with attributes to update.
401
+ */
402
+ attributesToUpdate: Record<string, AttributeToUpdate>;
403
+ /**
404
+ * Indicates whether to create a new record if it doesn\'t exist yet.
405
+ */
406
+ createIfNotExists?: boolean;
407
+ };
408
+ /**
409
+ * Properties for the `post` method.
410
+ */
411
+ export type PostProps = {
412
+ /**
413
+ * Path of the endpoint, anything after \"/1\" must be specified.
414
+ */
415
+ path: string;
416
+ /**
417
+ * Query parameters to apply to the current query.
418
+ */
419
+ parameters?: Record<string, any>;
420
+ /**
421
+ * Parameters to send with the custom request.
422
+ */
423
+ body?: Record<string, any>;
424
+ };
425
+ /**
426
+ * Properties for the `put` method.
427
+ */
428
+ export type PutProps = {
429
+ /**
430
+ * Path of the endpoint, anything after \"/1\" must be specified.
431
+ */
432
+ path: string;
433
+ /**
434
+ * Query parameters to apply to the current query.
435
+ */
436
+ parameters?: Record<string, any>;
437
+ /**
438
+ * Parameters to send with the custom request.
439
+ */
440
+ body?: Record<string, any>;
441
+ };
442
+ /**
443
+ * Properties for the `removeUserId` method.
444
+ */
445
+ export type RemoveUserIdProps = {
446
+ /**
447
+ * UserID to assign.
448
+ */
449
+ userID: string;
450
+ };
451
+ /**
452
+ * Properties for the `replaceSources` method.
453
+ */
454
+ export type ReplaceSourcesProps = {
455
+ /**
456
+ * Allowed sources.
457
+ */
458
+ source: Source[];
459
+ };
460
+ /**
461
+ * Properties for the `restoreApiKey` method.
462
+ */
463
+ export type RestoreApiKeyProps = {
464
+ /**
465
+ * API key.
466
+ */
467
+ key: string;
468
+ };
469
+ /**
470
+ * Properties for the `saveObject` method.
471
+ */
472
+ export type SaveObjectProps = {
473
+ /**
474
+ * Index on which to perform the request.
475
+ */
476
+ indexName: string;
477
+ /**
478
+ * The Algolia record.
479
+ */
480
+ body: Record<string, any>;
481
+ };
482
+ /**
483
+ * Properties for the `saveRule` method.
484
+ */
485
+ export type SaveRuleProps = {
486
+ /**
487
+ * Index on which to perform the request.
488
+ */
489
+ indexName: string;
490
+ /**
491
+ * Unique identifier of a rule object.
492
+ */
493
+ objectID: string;
494
+ rule: Rule;
495
+ /**
496
+ * Indicates whether changed index settings are forwarded to the replica indices.
497
+ */
498
+ forwardToReplicas?: boolean;
499
+ };
500
+ /**
501
+ * Properties for the `saveRules` method.
502
+ */
503
+ export type SaveRulesProps = {
504
+ /**
505
+ * Index on which to perform the request.
506
+ */
507
+ indexName: string;
508
+ rules: Rule[];
509
+ /**
510
+ * Indicates whether changed index settings are forwarded to the replica indices.
511
+ */
512
+ forwardToReplicas?: boolean;
513
+ /**
514
+ * Indicates whether existing rules should be deleted before adding this batch.
515
+ */
516
+ clearExistingRules?: boolean;
517
+ };
518
+ /**
519
+ * Properties for the `saveSynonym` method.
520
+ */
521
+ export type SaveSynonymProps = {
522
+ /**
523
+ * Index on which to perform the request.
524
+ */
525
+ indexName: string;
526
+ /**
527
+ * Unique identifier of a synonym object.
528
+ */
529
+ objectID: string;
530
+ synonymHit: SynonymHit;
531
+ /**
532
+ * Indicates whether changed index settings are forwarded to the replica indices.
533
+ */
534
+ forwardToReplicas?: boolean;
535
+ };
536
+ /**
537
+ * Properties for the `saveSynonyms` method.
538
+ */
539
+ export type SaveSynonymsProps = {
540
+ /**
541
+ * Index on which to perform the request.
542
+ */
543
+ indexName: string;
544
+ synonymHit: SynonymHit[];
545
+ /**
546
+ * Indicates whether changed index settings are forwarded to the replica indices.
547
+ */
548
+ forwardToReplicas?: boolean;
549
+ /**
550
+ * Indicates whether to replace all synonyms in the index with the ones sent with this request.
551
+ */
552
+ replaceExistingSynonyms?: boolean;
553
+ };
554
+ /**
555
+ * In v4, the search parameters are wrapped in a `params` parameter.
556
+ *
557
+ * @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
558
+ */
559
+ type LegacySearchParams = {
560
+ params?: SearchParamsObject;
561
+ };
562
+ /**
563
+ * In v4, the search parameters are wrapped in a `params` parameter.
564
+ *
565
+ * @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
566
+ */
567
+ type LegacySearchForFacets = LegacySearchParams & SearchForFacetsOptions;
568
+ /**
569
+ * In v4, the search parameters are wrapped in a `params` parameter.
570
+ *
571
+ * @deprecated The `search` method now accepts flat `searchParams` at the root of the method.
572
+ */
573
+ type LegacySearchForHits = LegacySearchParams & SearchForHitsOptions;
574
+ type LegacySearchQuery = LegacySearchForFacets | LegacySearchForHits;
575
+ /**
576
+ * Search method signature compatible with the `algoliasearch` v4 package. When using this signature, extra computation will be required to make it match the new signature.
577
+ *
578
+ * @deprecated This signature will be removed from the next major version, we recommend using the `SearchMethodParams` type for performances and future proof reasons.
579
+ */
580
+ export type LegacySearchMethodProps = LegacySearchQuery[];
581
+ /**
582
+ * Properties for the `searchDictionaryEntries` method.
583
+ */
584
+ export type SearchDictionaryEntriesProps = {
585
+ /**
586
+ * Dictionary to search in.
587
+ */
588
+ dictionaryName: DictionaryType;
589
+ searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
590
+ };
591
+ /**
592
+ * Properties for the `searchForFacetValues` method.
593
+ */
594
+ export type SearchForFacetValuesProps = {
595
+ /**
596
+ * Index on which to perform the request.
597
+ */
598
+ indexName: string;
599
+ /**
600
+ * Facet name.
601
+ */
602
+ facetName: string;
603
+ searchForFacetValuesRequest?: SearchForFacetValuesRequest;
604
+ };
605
+ /**
606
+ * Properties for the `searchRules` method.
607
+ */
608
+ export type SearchRulesProps = {
609
+ /**
610
+ * Index on which to perform the request.
611
+ */
612
+ indexName: string;
613
+ searchRulesParams?: SearchRulesParams;
614
+ };
615
+ /**
616
+ * Properties for the `searchSingleIndex` method.
617
+ */
618
+ export type SearchSingleIndexProps = {
619
+ /**
620
+ * Index on which to perform the request.
621
+ */
622
+ indexName: string;
623
+ searchParams?: SearchParams;
624
+ };
625
+ /**
626
+ * Properties for the `searchSynonyms` method.
627
+ */
628
+ export type SearchSynonymsProps = {
629
+ /**
630
+ * Index on which to perform the request.
631
+ */
632
+ indexName: string;
633
+ /**
634
+ * Search for specific [types of synonyms](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#the-different-types-of-synonyms).
635
+ */
636
+ type?: SynonymType;
637
+ /**
638
+ * Returns the requested page number (the first page is 0). Page size is set by `hitsPerPage`. When null, there\'s no pagination.
639
+ */
640
+ page?: number;
641
+ /**
642
+ * Maximum number of hits per page.
643
+ */
644
+ hitsPerPage?: number;
645
+ /**
646
+ * Body of the `searchSynonyms` operation.
647
+ */
648
+ searchSynonymsParams?: SearchSynonymsParams;
649
+ };
650
+ /**
651
+ * Properties for the `setSettings` method.
652
+ */
653
+ export type SetSettingsProps = {
654
+ /**
655
+ * Index on which to perform the request.
656
+ */
657
+ indexName: string;
658
+ indexSettings: IndexSettings;
659
+ /**
660
+ * Indicates whether changed index settings are forwarded to the replica indices.
661
+ */
662
+ forwardToReplicas?: boolean;
663
+ };
664
+ /**
665
+ * Properties for the `updateApiKey` method.
666
+ */
667
+ export type UpdateApiKeyProps = {
668
+ /**
669
+ * API key.
670
+ */
671
+ key: string;
672
+ apiKey: ApiKey;
673
+ };
674
+ /**
675
+ * The `browseObjects`, `browseRules`, `browseSynonyms` options.
676
+ */
677
+ export type BrowseOptions<T> = Partial<Pick<CreateIterablePromise<T>, 'validate'>> & Required<Pick<CreateIterablePromise<T>, 'aggregator'>>;
678
+ type WaitForOptions = Partial<{
679
+ /**
680
+ * The maximum number of retries. 50 by default.
681
+ */
682
+ maxRetries: number;
683
+ /**
684
+ * The function to decide how long to wait between retries.
685
+ */
686
+ timeout: (retryCount: number) => number;
687
+ }>;
688
+ export type WaitForTaskOptions = WaitForOptions & {
689
+ /**
690
+ * The `indexName` where the operation was performed.
691
+ */
692
+ indexName: string;
693
+ /**
694
+ * The `taskID` returned by the method response.
695
+ */
696
+ taskID: number;
697
+ };
698
+ export type WaitForApiKeyOptions = WaitForOptions & {
699
+ /**
700
+ * The API Key.
701
+ */
702
+ key: string;
703
+ } & ({
704
+ /**
705
+ * The operation that has been performed, used to compute the stop condition.
706
+ */
707
+ operation: 'add' | 'delete';
708
+ apiKey?: never;
709
+ } | {
710
+ /**
711
+ * The operation that has been performed, used to compute the stop condition.
712
+ */
713
+ operation: 'update';
714
+ /**
715
+ * The updated fields, used to compute the stop condition.
716
+ */
717
+ apiKey: Partial<ApiKey>;
718
+ });
719
+ export {};
715
720
  //# sourceMappingURL=clientMethodProps.d.ts.map