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

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