algoliasearch 5.0.0-alpha.99 → 5.0.0-beta.2

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 (522) hide show
  1. package/builds/browser.ts +10 -17
  2. package/builds/node.ts +58 -15
  3. package/dist/algoliasearch/builds/browser.d.ts +10 -5
  4. package/dist/algoliasearch/builds/browser.d.ts.map +1 -1
  5. package/dist/algoliasearch/builds/node.d.ts +28 -6
  6. package/dist/algoliasearch/builds/node.d.ts.map +1 -1
  7. package/dist/algoliasearch.cjs +752 -387
  8. package/dist/algoliasearch.esm.browser.js +724 -393
  9. package/dist/algoliasearch.esm.node.js +753 -388
  10. package/dist/algoliasearch.umd.js +2 -2
  11. package/dist/client-abtesting/model/aBTest.d.ts +14 -29
  12. package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
  13. package/dist/client-abtesting/model/aBTestConfiguration.d.ts +12 -0
  14. package/dist/client-abtesting/model/aBTestConfiguration.d.ts.map +1 -0
  15. package/dist/client-abtesting/model/aBTestResponse.d.ts +3 -3
  16. package/dist/client-abtesting/model/abTestsVariant.d.ts +3 -3
  17. package/dist/client-abtesting/model/addABTestsRequest.d.ts +1 -1
  18. package/dist/client-abtesting/model/clientMethodProps.d.ts +7 -7
  19. package/dist/client-abtesting/model/{currenciesValue.d.ts → currency.d.ts} +2 -2
  20. package/dist/client-abtesting/model/currency.d.ts.map +1 -0
  21. package/dist/client-abtesting/model/customSearchParams.d.ts +1 -1
  22. package/dist/client-abtesting/model/effect.d.ts +5 -0
  23. package/dist/client-abtesting/model/effect.d.ts.map +1 -0
  24. package/dist/client-abtesting/model/emptySearch.d.ts +10 -0
  25. package/dist/client-abtesting/model/emptySearch.d.ts.map +1 -0
  26. package/dist/client-abtesting/model/index.d.ts +7 -1
  27. package/dist/client-abtesting/model/index.d.ts.map +1 -1
  28. package/dist/client-abtesting/model/listABTestsResponse.d.ts +2 -2
  29. package/dist/client-abtesting/model/listABTestsResponse.d.ts.map +1 -1
  30. package/dist/client-abtesting/model/minimumDetectableEffect.d.ts +12 -0
  31. package/dist/client-abtesting/model/minimumDetectableEffect.d.ts.map +1 -0
  32. package/dist/client-abtesting/model/outliers.d.ts +10 -0
  33. package/dist/client-abtesting/model/outliers.d.ts.map +1 -0
  34. package/dist/client-abtesting/model/status.d.ts +5 -0
  35. package/dist/client-abtesting/model/status.d.ts.map +1 -0
  36. package/dist/client-abtesting/model/variant.d.ts +29 -25
  37. package/dist/client-abtesting/model/variant.d.ts.map +1 -1
  38. package/dist/client-abtesting/src/abtestingClient.d.ts +28 -26
  39. package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
  40. package/dist/client-analytics/model/clickPositionsInner.d.ts +14 -0
  41. package/dist/client-analytics/model/clickPositionsInner.d.ts.map +1 -0
  42. package/dist/client-analytics/model/clientMethodProps.d.ts +161 -90
  43. package/dist/client-analytics/model/clientMethodProps.d.ts.map +1 -1
  44. package/dist/client-analytics/model/currenciesValue.d.ts +14 -0
  45. package/dist/client-analytics/model/currenciesValue.d.ts.map +1 -0
  46. package/dist/client-analytics/model/dailyAddToCartRates.d.ts +19 -0
  47. package/dist/client-analytics/model/dailyAddToCartRates.d.ts.map +1 -0
  48. package/dist/client-analytics/model/dailyAverageClicks.d.ts +15 -0
  49. package/dist/client-analytics/model/dailyAverageClicks.d.ts.map +1 -0
  50. package/dist/client-analytics/model/dailyClickThroughRates.d.ts +19 -0
  51. package/dist/client-analytics/model/dailyClickThroughRates.d.ts.map +1 -0
  52. package/dist/client-analytics/model/dailyConversionRates.d.ts +19 -0
  53. package/dist/client-analytics/model/dailyConversionRates.d.ts.map +1 -0
  54. package/dist/client-analytics/model/dailyNoClickRates.d.ts +19 -0
  55. package/dist/client-analytics/model/dailyNoClickRates.d.ts.map +1 -0
  56. package/dist/client-analytics/model/dailyNoResultsRates.d.ts +19 -0
  57. package/dist/client-analytics/model/dailyNoResultsRates.d.ts.map +1 -0
  58. package/dist/client-analytics/model/dailyPurchaseRates.d.ts +19 -0
  59. package/dist/client-analytics/model/dailyPurchaseRates.d.ts.map +1 -0
  60. package/dist/client-analytics/model/dailyRevenue.d.ts +12 -0
  61. package/dist/client-analytics/model/dailyRevenue.d.ts.map +1 -0
  62. package/dist/client-analytics/model/dailySearches.d.ts +11 -0
  63. package/dist/client-analytics/model/dailySearches.d.ts.map +1 -0
  64. package/dist/client-analytics/model/dailySearchesNoClicks.d.ts +15 -0
  65. package/dist/client-analytics/model/dailySearchesNoClicks.d.ts.map +1 -0
  66. package/dist/client-analytics/model/dailySearchesNoResults.d.ts +15 -0
  67. package/dist/client-analytics/model/dailySearchesNoResults.d.ts.map +1 -0
  68. package/dist/client-analytics/model/dailyUsers.d.ts +11 -0
  69. package/dist/client-analytics/model/dailyUsers.d.ts.map +1 -0
  70. package/dist/client-analytics/model/getAddToCartRateResponse.d.ts +20 -0
  71. package/dist/client-analytics/model/getAddToCartRateResponse.d.ts.map +1 -0
  72. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts +6 -6
  73. package/dist/client-analytics/model/getAverageClickPositionResponse.d.ts.map +1 -1
  74. package/dist/client-analytics/model/getClickPositionsResponse.d.ts +3 -3
  75. package/dist/client-analytics/model/getClickPositionsResponse.d.ts.map +1 -1
  76. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts +7 -7
  77. package/dist/client-analytics/model/getClickThroughRateResponse.d.ts.map +1 -1
  78. package/dist/client-analytics/model/getConversionRateResponse.d.ts +20 -0
  79. package/dist/client-analytics/model/getConversionRateResponse.d.ts.map +1 -0
  80. package/dist/client-analytics/model/getNoClickRateResponse.d.ts +6 -6
  81. package/dist/client-analytics/model/getNoClickRateResponse.d.ts.map +1 -1
  82. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts +6 -6
  83. package/dist/client-analytics/model/getNoResultsRateResponse.d.ts.map +1 -1
  84. package/dist/client-analytics/model/getPurchaseRateResponse.d.ts +20 -0
  85. package/dist/client-analytics/model/getPurchaseRateResponse.d.ts.map +1 -0
  86. package/dist/client-analytics/model/getRevenue.d.ts +13 -0
  87. package/dist/client-analytics/model/getRevenue.d.ts.map +1 -0
  88. package/dist/client-analytics/model/getSearchesCountResponse.d.ts +3 -3
  89. package/dist/client-analytics/model/getSearchesCountResponse.d.ts.map +1 -1
  90. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts +3 -3
  91. package/dist/client-analytics/model/getSearchesNoClicksResponse.d.ts.map +1 -1
  92. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts +3 -3
  93. package/dist/client-analytics/model/getSearchesNoResultsResponse.d.ts.map +1 -1
  94. package/dist/client-analytics/model/getStatusResponse.d.ts +2 -2
  95. package/dist/client-analytics/model/getStatusResponse.d.ts.map +1 -1
  96. package/dist/client-analytics/model/getTopCountriesResponse.d.ts +1 -1
  97. package/dist/client-analytics/model/getTopFilterAttributesResponse.d.ts +1 -1
  98. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts +2 -4
  99. package/dist/client-analytics/model/getTopFilterForAttribute.d.ts.map +1 -1
  100. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts +2 -2
  101. package/dist/client-analytics/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
  102. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts +2 -4
  103. package/dist/client-analytics/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  104. package/dist/client-analytics/model/getTopHitsResponse.d.ts +2 -1
  105. package/dist/client-analytics/model/getTopHitsResponse.d.ts.map +1 -1
  106. package/dist/client-analytics/model/getTopSearchesResponse.d.ts +2 -1
  107. package/dist/client-analytics/model/getTopSearchesResponse.d.ts.map +1 -1
  108. package/dist/client-analytics/model/getUsersCountResponse.d.ts +4 -4
  109. package/dist/client-analytics/model/getUsersCountResponse.d.ts.map +1 -1
  110. package/dist/client-analytics/model/index.d.ts +23 -11
  111. package/dist/client-analytics/model/index.d.ts.map +1 -1
  112. package/dist/client-analytics/model/operator.d.ts +5 -0
  113. package/dist/client-analytics/model/operator.d.ts.map +1 -0
  114. package/dist/client-analytics/model/orderBy.d.ts +1 -1
  115. package/dist/client-analytics/model/topCountry.d.ts +1 -1
  116. package/dist/client-analytics/model/topHit.d.ts +1 -1
  117. package/dist/client-analytics/model/topHitWithAnalytics.d.ts +9 -9
  118. package/dist/client-analytics/model/topHitWithAnalytics.d.ts.map +1 -1
  119. package/dist/client-analytics/model/topHitWithRevenueAnalytics.d.ts +52 -0
  120. package/dist/client-analytics/model/topHitWithRevenueAnalytics.d.ts.map +1 -0
  121. package/dist/client-analytics/model/topHitsResponse.d.ts +1 -1
  122. package/dist/client-analytics/model/topHitsResponseWithAnalytics.d.ts +1 -1
  123. package/dist/client-analytics/model/topHitsResponseWithRevenueAnalytics.d.ts +8 -0
  124. package/dist/client-analytics/model/topHitsResponseWithRevenueAnalytics.d.ts.map +1 -0
  125. package/dist/client-analytics/model/topSearch.d.ts +3 -3
  126. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +17 -12
  127. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
  128. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts +65 -0
  129. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts.map +1 -0
  130. package/dist/client-analytics/model/topSearchesResponse.d.ts +1 -1
  131. package/dist/client-analytics/model/topSearchesResponseWithAnalytics.d.ts +1 -1
  132. package/dist/client-analytics/model/topSearchesResponseWithRevenueAnalytics.d.ts +8 -0
  133. package/dist/client-analytics/model/topSearchesResponseWithRevenueAnalytics.d.ts.map +1 -0
  134. package/dist/client-analytics/src/analyticsClient.d.ts +211 -138
  135. package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
  136. package/dist/client-personalization/model/clientMethodProps.d.ts +2 -2
  137. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +2 -2
  138. package/dist/client-personalization/model/eventScoring.d.ts +4 -6
  139. package/dist/client-personalization/model/eventScoring.d.ts.map +1 -1
  140. package/dist/client-personalization/model/eventType.d.ts +5 -0
  141. package/dist/client-personalization/model/eventType.d.ts.map +1 -0
  142. package/dist/client-personalization/model/facetScoring.d.ts +2 -2
  143. package/dist/client-personalization/model/getUserTokenResponse.d.ts +3 -3
  144. package/dist/client-personalization/model/index.d.ts +1 -0
  145. package/dist/client-personalization/model/index.d.ts.map +1 -1
  146. package/dist/client-personalization/model/personalizationStrategyParams.d.ts +3 -3
  147. package/dist/client-personalization/src/personalizationClient.d.ts +19 -19
  148. package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
  149. package/dist/client-search/model/acl.d.ts +1 -1
  150. package/dist/client-search/model/action.d.ts +1 -1
  151. package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
  152. package/dist/client-search/model/anchoring.d.ts +1 -1
  153. package/dist/client-search/model/apiKey.d.ts +8 -8
  154. package/dist/client-search/model/apiKeyOperation.d.ts +2 -0
  155. package/dist/client-search/model/apiKeyOperation.d.ts.map +1 -0
  156. package/dist/client-search/model/aroundPrecision.d.ts +1 -1
  157. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +9 -0
  158. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  159. package/dist/client-search/model/aroundRadius.d.ts +1 -1
  160. package/dist/client-search/model/aroundRadiusAll.d.ts +3 -0
  161. package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
  162. package/dist/client-search/model/automaticFacetFilter.d.ts +4 -4
  163. package/dist/client-search/model/automaticFacetFilters.d.ts +1 -1
  164. package/dist/client-search/model/baseGetApiKeyResponse.d.ts +1 -1
  165. package/dist/client-search/model/baseIndexSettings.d.ts +22 -17
  166. package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
  167. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +26 -29
  168. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  169. package/dist/client-search/model/baseSearchResponse.d.ts +10 -6
  170. package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
  171. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +3 -3
  172. package/dist/client-search/model/batchResponse.d.ts +2 -2
  173. package/dist/client-search/model/builtInOperation.d.ts +2 -2
  174. package/dist/client-search/model/builtInOperationType.d.ts +1 -1
  175. package/dist/client-search/model/clientMethodProps.d.ts +124 -65
  176. package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
  177. package/dist/client-search/model/condition.d.ts +7 -3
  178. package/dist/client-search/model/condition.d.ts.map +1 -1
  179. package/dist/client-search/model/consequence.d.ts +5 -5
  180. package/dist/client-search/model/consequenceHide.d.ts +2 -2
  181. package/dist/client-search/model/consequenceQuery.d.ts +1 -1
  182. package/dist/client-search/model/consequenceQueryObject.d.ts +2 -2
  183. package/dist/client-search/model/createdAtResponse.d.ts +1 -1
  184. package/dist/client-search/model/cursor.d.ts +1 -1
  185. package/dist/client-search/model/deleteApiKeyResponse.d.ts +1 -1
  186. package/dist/client-search/model/deleteByParams.d.ts +4 -4
  187. package/dist/client-search/model/deleteSourceResponse.d.ts +1 -1
  188. package/dist/client-search/model/deletedAtResponse.d.ts +2 -2
  189. package/dist/client-search/model/dictionaryEntry.d.ts +6 -8
  190. package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
  191. package/dist/client-search/model/dictionaryEntryState.d.ts +1 -1
  192. package/dist/client-search/model/dictionaryLanguage.d.ts +2 -2
  193. package/dist/client-search/model/dictionarySettingsParams.d.ts +1 -1
  194. package/dist/client-search/model/distinct.d.ts +1 -1
  195. package/dist/client-search/model/edit.d.ts +1 -1
  196. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
  197. package/dist/client-search/model/facetFilters.d.ts +2 -3
  198. package/dist/client-search/model/facetFilters.d.ts.map +1 -1
  199. package/dist/client-search/model/facetHits.d.ts +2 -2
  200. package/dist/client-search/model/facetOrdering.d.ts +2 -2
  201. package/dist/client-search/model/facets.d.ts +2 -2
  202. package/dist/client-search/model/fetchedIndex.d.ts +1 -1
  203. package/dist/client-search/model/getObjectsRequest.d.ts +3 -3
  204. package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
  205. package/dist/client-search/model/hasPendingMappingsResponse.d.ts +1 -1
  206. package/dist/client-search/model/highlightResult.d.ts +1 -1
  207. package/dist/client-search/model/highlightResult.d.ts.map +1 -1
  208. package/dist/client-search/model/highlightResultOption.d.ts +3 -3
  209. package/dist/client-search/model/hit.d.ts +4 -4
  210. package/dist/client-search/model/ignorePlurals.d.ts +3 -2
  211. package/dist/client-search/model/ignorePlurals.d.ts.map +1 -1
  212. package/dist/client-search/model/index.d.ts +4 -1
  213. package/dist/client-search/model/index.d.ts.map +1 -1
  214. package/dist/client-search/model/indexSettings.d.ts +1 -1
  215. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +32 -35
  216. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  217. package/dist/client-search/model/log.d.ts +11 -11
  218. package/dist/client-search/model/logQuery.d.ts +1 -1
  219. package/dist/client-search/model/matchLevel.d.ts +1 -1
  220. package/dist/client-search/model/mode.d.ts +1 -1
  221. package/dist/client-search/model/multipleBatchRequest.d.ts +1 -1
  222. package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
  223. package/dist/client-search/model/numericFilters.d.ts +2 -3
  224. package/dist/client-search/model/numericFilters.d.ts.map +1 -1
  225. package/dist/client-search/model/operationIndexParams.d.ts +2 -2
  226. package/dist/client-search/model/operationType.d.ts +1 -1
  227. package/dist/client-search/model/optionalFilters.d.ts +2 -3
  228. package/dist/client-search/model/optionalFilters.d.ts.map +1 -1
  229. package/dist/client-search/model/params.d.ts +1 -1
  230. package/dist/client-search/model/promoteObjectID.d.ts +2 -2
  231. package/dist/client-search/model/promoteObjectIDs.d.ts +2 -2
  232. package/dist/client-search/model/queryType.d.ts +1 -1
  233. package/dist/client-search/model/rankingInfo.d.ts +10 -7
  234. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  235. package/dist/client-search/model/reRankingApplyFilter.d.ts +2 -3
  236. package/dist/client-search/model/reRankingApplyFilter.d.ts.map +1 -1
  237. package/dist/client-search/model/removeStopWords.d.ts +3 -2
  238. package/dist/client-search/model/removeStopWords.d.ts.map +1 -1
  239. package/dist/client-search/model/removeUserIdResponse.d.ts +1 -1
  240. package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
  241. package/dist/client-search/model/renderingContent.d.ts +1 -1
  242. package/dist/client-search/model/replaceSourceResponse.d.ts +1 -1
  243. package/dist/client-search/model/rule.d.ts +5 -5
  244. package/dist/client-search/model/saveObjectResponse.d.ts +3 -3
  245. package/dist/client-search/model/saveSynonymResponse.d.ts +2 -2
  246. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +5 -7
  247. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  248. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts +20 -0
  249. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  250. package/dist/client-search/model/searchForFacetValuesRequest.d.ts +1 -1
  251. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +4 -1
  252. package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
  253. package/dist/client-search/model/searchForFacetsOptions.d.ts +2 -2
  254. package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
  255. package/dist/client-search/model/searchHits.d.ts +6 -3
  256. package/dist/client-search/model/searchHits.d.ts.map +1 -1
  257. package/dist/client-search/model/searchParamsObject.d.ts +3 -0
  258. package/dist/client-search/model/searchParamsObject.d.ts.map +1 -1
  259. package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
  260. package/dist/client-search/model/searchRulesParams.d.ts +4 -8
  261. package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
  262. package/dist/client-search/model/searchRulesResponse.d.ts +2 -2
  263. package/dist/client-search/model/searchStrategy.d.ts +1 -1
  264. package/dist/client-search/model/searchSynonymsParams.d.ts +2 -2
  265. package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
  266. package/dist/client-search/model/searchUserIdsParams.d.ts +1 -1
  267. package/dist/client-search/model/searchUserIdsResponse.d.ts +3 -3
  268. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +25 -0
  269. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts.map +1 -0
  270. package/dist/client-search/model/semanticSearch.d.ts +2 -2
  271. package/dist/client-search/model/snippetResult.d.ts +1 -1
  272. package/dist/client-search/model/snippetResult.d.ts.map +1 -1
  273. package/dist/client-search/model/snippetResultOption.d.ts +2 -2
  274. package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
  275. package/dist/client-search/model/supportedLanguage.d.ts +5 -0
  276. package/dist/client-search/model/supportedLanguage.d.ts.map +1 -0
  277. package/dist/client-search/model/tagFilters.d.ts +2 -3
  278. package/dist/client-search/model/tagFilters.d.ts.map +1 -1
  279. package/dist/client-search/model/taskStatus.d.ts +1 -1
  280. package/dist/client-search/model/timeRange.d.ts +2 -2
  281. package/dist/client-search/model/typoTolerance.d.ts +1 -1
  282. package/dist/client-search/model/typoToleranceEnum.d.ts +3 -0
  283. package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
  284. package/dist/client-search/model/updateApiKeyResponse.d.ts +1 -1
  285. package/dist/client-search/model/updatedAtResponse.d.ts +2 -2
  286. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +3 -3
  287. package/dist/client-search/model/updatedRuleResponse.d.ts +3 -3
  288. package/dist/client-search/model/userHit.d.ts +1 -1
  289. package/dist/client-search/model/userId.d.ts +1 -1
  290. package/dist/client-search/model/value.d.ts +1 -1
  291. package/dist/client-search/src/searchClient.d.ts +324 -202
  292. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  293. package/dist/lite/builds/browser.d.ts +14 -3
  294. package/dist/lite/builds/browser.d.ts.map +1 -1
  295. package/dist/lite/builds/node.d.ts +14 -3
  296. package/dist/lite/builds/node.d.ts.map +1 -1
  297. package/dist/lite/lite.cjs +8 -6
  298. package/dist/lite/lite.esm.browser.js +13 -14
  299. package/dist/lite/lite.esm.node.js +8 -6
  300. package/dist/lite/lite.umd.js +2 -2
  301. package/dist/lite/model/acl.d.ts +1 -1
  302. package/dist/lite/model/action.d.ts +1 -1
  303. package/dist/lite/model/addApiKeyResponse.d.ts +1 -1
  304. package/dist/lite/model/anchoring.d.ts +1 -1
  305. package/dist/lite/model/apiKey.d.ts +8 -8
  306. package/dist/lite/model/apiKeyOperation.d.ts +2 -0
  307. package/dist/lite/model/apiKeyOperation.d.ts.map +1 -0
  308. package/dist/lite/model/aroundPrecision.d.ts +1 -1
  309. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +9 -0
  310. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  311. package/dist/lite/model/aroundRadius.d.ts +1 -1
  312. package/dist/lite/model/aroundRadiusAll.d.ts +3 -0
  313. package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
  314. package/dist/lite/model/automaticFacetFilter.d.ts +4 -4
  315. package/dist/lite/model/automaticFacetFilters.d.ts +1 -1
  316. package/dist/lite/model/baseGetApiKeyResponse.d.ts +1 -1
  317. package/dist/lite/model/baseIndexSettings.d.ts +22 -17
  318. package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
  319. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +26 -29
  320. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  321. package/dist/lite/model/baseSearchResponse.d.ts +10 -6
  322. package/dist/lite/model/baseSearchResponse.d.ts.map +1 -1
  323. package/dist/lite/model/builtInOperation.d.ts +2 -2
  324. package/dist/lite/model/builtInOperationType.d.ts +1 -1
  325. package/dist/lite/model/condition.d.ts +7 -3
  326. package/dist/lite/model/condition.d.ts.map +1 -1
  327. package/dist/lite/model/consequence.d.ts +5 -5
  328. package/dist/lite/model/consequenceHide.d.ts +2 -2
  329. package/dist/lite/model/consequenceQuery.d.ts +1 -1
  330. package/dist/lite/model/consequenceQueryObject.d.ts +2 -2
  331. package/dist/lite/model/cursor.d.ts +1 -1
  332. package/dist/lite/model/deleteByParams.d.ts +4 -4
  333. package/dist/lite/model/dictionaryEntry.d.ts +6 -8
  334. package/dist/lite/model/dictionaryEntry.d.ts.map +1 -1
  335. package/dist/lite/model/dictionaryEntryState.d.ts +1 -1
  336. package/dist/lite/model/dictionaryLanguage.d.ts +2 -2
  337. package/dist/lite/model/distinct.d.ts +1 -1
  338. package/dist/lite/model/edit.d.ts +1 -1
  339. package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
  340. package/dist/lite/model/facetFilters.d.ts +2 -3
  341. package/dist/lite/model/facetFilters.d.ts.map +1 -1
  342. package/dist/lite/model/facetHits.d.ts +2 -2
  343. package/dist/lite/model/facetOrdering.d.ts +2 -2
  344. package/dist/lite/model/facets.d.ts +2 -2
  345. package/dist/lite/model/fetchedIndex.d.ts +1 -1
  346. package/dist/lite/model/highlightResult.d.ts +1 -1
  347. package/dist/lite/model/highlightResult.d.ts.map +1 -1
  348. package/dist/lite/model/highlightResultOption.d.ts +3 -3
  349. package/dist/lite/model/hit.d.ts +4 -4
  350. package/dist/lite/model/ignorePlurals.d.ts +3 -2
  351. package/dist/lite/model/ignorePlurals.d.ts.map +1 -1
  352. package/dist/lite/model/index.d.ts +4 -1
  353. package/dist/lite/model/index.d.ts.map +1 -1
  354. package/dist/lite/model/indexSettings.d.ts +1 -1
  355. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +32 -35
  356. package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  357. package/dist/lite/model/matchLevel.d.ts +1 -1
  358. package/dist/lite/model/mode.d.ts +1 -1
  359. package/dist/lite/model/numericFilters.d.ts +2 -3
  360. package/dist/lite/model/numericFilters.d.ts.map +1 -1
  361. package/dist/lite/model/operationType.d.ts +1 -1
  362. package/dist/lite/model/optionalFilters.d.ts +2 -3
  363. package/dist/lite/model/optionalFilters.d.ts.map +1 -1
  364. package/dist/lite/model/params.d.ts +1 -1
  365. package/dist/lite/model/promoteObjectID.d.ts +2 -2
  366. package/dist/lite/model/promoteObjectIDs.d.ts +2 -2
  367. package/dist/lite/model/queryType.d.ts +1 -1
  368. package/dist/lite/model/rankingInfo.d.ts +10 -7
  369. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  370. package/dist/lite/model/reRankingApplyFilter.d.ts +2 -3
  371. package/dist/lite/model/reRankingApplyFilter.d.ts.map +1 -1
  372. package/dist/lite/model/removeStopWords.d.ts +3 -2
  373. package/dist/lite/model/removeStopWords.d.ts.map +1 -1
  374. package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
  375. package/dist/lite/model/renderingContent.d.ts +1 -1
  376. package/dist/lite/model/rule.d.ts +5 -5
  377. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +20 -0
  378. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  379. package/dist/lite/model/searchForFacetValuesResponse.d.ts +4 -1
  380. package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -1
  381. package/dist/lite/model/searchForFacetsOptions.d.ts +2 -2
  382. package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
  383. package/dist/lite/model/searchHits.d.ts +6 -3
  384. package/dist/lite/model/searchHits.d.ts.map +1 -1
  385. package/dist/lite/model/searchParamsObject.d.ts +3 -0
  386. package/dist/lite/model/searchParamsObject.d.ts.map +1 -1
  387. package/dist/lite/model/searchParamsQuery.d.ts +1 -1
  388. package/dist/lite/model/searchStrategy.d.ts +1 -1
  389. package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
  390. package/dist/lite/model/securedAPIKeyRestrictions.d.ts +25 -0
  391. package/dist/lite/model/securedAPIKeyRestrictions.d.ts.map +1 -0
  392. package/dist/lite/model/semanticSearch.d.ts +2 -2
  393. package/dist/lite/model/snippetResult.d.ts +1 -1
  394. package/dist/lite/model/snippetResult.d.ts.map +1 -1
  395. package/dist/lite/model/snippetResultOption.d.ts +2 -2
  396. package/dist/lite/model/sortRemainingBy.d.ts +1 -1
  397. package/dist/lite/model/supportedLanguage.d.ts +5 -0
  398. package/dist/lite/model/supportedLanguage.d.ts.map +1 -0
  399. package/dist/lite/model/tagFilters.d.ts +2 -3
  400. package/dist/lite/model/tagFilters.d.ts.map +1 -1
  401. package/dist/lite/model/taskStatus.d.ts +1 -1
  402. package/dist/lite/model/timeRange.d.ts +2 -2
  403. package/dist/lite/model/typoTolerance.d.ts +1 -1
  404. package/dist/lite/model/typoToleranceEnum.d.ts +3 -0
  405. package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
  406. package/dist/lite/model/updatedRuleResponse.d.ts +3 -3
  407. package/dist/lite/model/userId.d.ts +1 -1
  408. package/dist/lite/model/value.d.ts +1 -1
  409. package/dist/lite/src/liteClient.d.ts +6 -9
  410. package/dist/lite/src/liteClient.d.ts.map +1 -1
  411. package/lite/builds/browser.ts +11 -6
  412. package/lite/builds/node.ts +10 -5
  413. package/lite/model/acl.ts +1 -1
  414. package/lite/model/action.ts +1 -1
  415. package/lite/model/addApiKeyResponse.ts +1 -1
  416. package/lite/model/anchoring.ts +1 -1
  417. package/lite/model/apiKey.ts +8 -8
  418. package/lite/model/{mixedSearchFilters.ts → apiKeyOperation.ts} +1 -1
  419. package/lite/model/aroundPrecision.ts +1 -1
  420. package/lite/model/aroundPrecisionFromValueInner.ts +9 -0
  421. package/lite/model/aroundRadius.ts +1 -1
  422. package/lite/model/aroundRadiusAll.ts +3 -0
  423. package/lite/model/automaticFacetFilter.ts +4 -4
  424. package/lite/model/automaticFacetFilters.ts +1 -1
  425. package/lite/model/baseGetApiKeyResponse.ts +1 -1
  426. package/lite/model/baseIndexSettings.ts +24 -17
  427. package/lite/model/baseSearchParamsWithoutQuery.ts +26 -30
  428. package/lite/model/baseSearchResponse.ts +11 -6
  429. package/lite/model/builtInOperation.ts +2 -2
  430. package/lite/model/builtInOperationType.ts +1 -1
  431. package/lite/model/condition.ts +8 -3
  432. package/lite/model/consequence.ts +5 -5
  433. package/lite/model/consequenceHide.ts +2 -2
  434. package/lite/model/consequenceQuery.ts +1 -1
  435. package/lite/model/consequenceQueryObject.ts +2 -2
  436. package/lite/model/cursor.ts +1 -1
  437. package/lite/model/deleteByParams.ts +4 -4
  438. package/lite/model/dictionaryEntry.ts +6 -8
  439. package/lite/model/dictionaryEntryState.ts +1 -1
  440. package/lite/model/dictionaryLanguage.ts +2 -2
  441. package/lite/model/distinct.ts +1 -1
  442. package/lite/model/edit.ts +1 -1
  443. package/lite/model/exactOnSingleWordQuery.ts +1 -1
  444. package/lite/model/facetFilters.ts +2 -4
  445. package/lite/model/facetHits.ts +2 -2
  446. package/lite/model/facetOrdering.ts +2 -2
  447. package/lite/model/facets.ts +2 -2
  448. package/lite/model/fetchedIndex.ts +1 -1
  449. package/lite/model/highlightResult.ts +1 -0
  450. package/lite/model/highlightResultOption.ts +3 -3
  451. package/lite/model/hit.ts +4 -4
  452. package/lite/model/ignorePlurals.ts +4 -2
  453. package/lite/model/index.ts +4 -1
  454. package/lite/model/indexSettings.ts +1 -1
  455. package/lite/model/indexSettingsAsSearchParams.ts +32 -36
  456. package/lite/model/matchLevel.ts +1 -1
  457. package/lite/model/mode.ts +1 -1
  458. package/lite/model/numericFilters.ts +2 -4
  459. package/lite/model/operationType.ts +1 -1
  460. package/lite/model/optionalFilters.ts +2 -4
  461. package/lite/model/params.ts +1 -1
  462. package/lite/model/promoteObjectID.ts +2 -2
  463. package/lite/model/promoteObjectIDs.ts +2 -2
  464. package/lite/model/queryType.ts +1 -1
  465. package/lite/model/rankingInfo.ts +10 -7
  466. package/lite/model/reRankingApplyFilter.ts +2 -4
  467. package/lite/model/removeStopWords.ts +4 -2
  468. package/lite/model/removeWordsIfNoResults.ts +1 -1
  469. package/lite/model/renderingContent.ts +1 -1
  470. package/lite/model/rule.ts +5 -5
  471. package/lite/model/searchDictionaryEntriesResponse.ts +25 -0
  472. package/lite/model/searchForFacetValuesResponse.ts +4 -1
  473. package/lite/model/searchForFacetsOptions.ts +2 -2
  474. package/lite/model/searchForHitsOptions.ts +1 -1
  475. package/lite/model/searchHits.ts +6 -3
  476. package/lite/model/searchParamsObject.ts +3 -0
  477. package/lite/model/searchParamsQuery.ts +1 -1
  478. package/lite/model/searchStrategy.ts +1 -1
  479. package/lite/model/searchSynonymsResponse.ts +2 -2
  480. package/lite/model/securedAPIKeyRestrictions.ts +32 -0
  481. package/lite/model/semanticSearch.ts +2 -2
  482. package/lite/model/snippetResult.ts +2 -1
  483. package/lite/model/snippetResultOption.ts +2 -2
  484. package/lite/model/sortRemainingBy.ts +1 -1
  485. package/lite/model/supportedLanguage.ts +74 -0
  486. package/lite/model/tagFilters.ts +2 -4
  487. package/lite/model/taskStatus.ts +1 -1
  488. package/lite/model/timeRange.ts +2 -2
  489. package/lite/model/typoTolerance.ts +1 -1
  490. package/lite/model/typoToleranceEnum.ts +3 -0
  491. package/lite/model/updatedRuleResponse.ts +3 -3
  492. package/lite/model/userId.ts +1 -1
  493. package/lite/model/value.ts +1 -1
  494. package/lite/src/liteClient.ts +8 -12
  495. package/package.json +14 -14
  496. package/dist/client-abtesting/model/currenciesValue.d.ts.map +0 -1
  497. package/dist/client-analytics/model/averageClickEvent.d.ts +0 -15
  498. package/dist/client-analytics/model/averageClickEvent.d.ts.map +0 -1
  499. package/dist/client-analytics/model/clickPosition.d.ts +0 -11
  500. package/dist/client-analytics/model/clickPosition.d.ts.map +0 -1
  501. package/dist/client-analytics/model/clickThroughRateEvent.d.ts +0 -19
  502. package/dist/client-analytics/model/clickThroughRateEvent.d.ts.map +0 -1
  503. package/dist/client-analytics/model/conversionRateEvent.d.ts +0 -19
  504. package/dist/client-analytics/model/conversionRateEvent.d.ts.map +0 -1
  505. package/dist/client-analytics/model/getConversationRateResponse.d.ts +0 -20
  506. package/dist/client-analytics/model/getConversationRateResponse.d.ts.map +0 -1
  507. package/dist/client-analytics/model/noClickRateEvent.d.ts +0 -19
  508. package/dist/client-analytics/model/noClickRateEvent.d.ts.map +0 -1
  509. package/dist/client-analytics/model/noResultsRateEvent.d.ts +0 -19
  510. package/dist/client-analytics/model/noResultsRateEvent.d.ts.map +0 -1
  511. package/dist/client-analytics/model/searchEvent.d.ts +0 -11
  512. package/dist/client-analytics/model/searchEvent.d.ts.map +0 -1
  513. package/dist/client-analytics/model/searchNoClickEvent.d.ts +0 -15
  514. package/dist/client-analytics/model/searchNoClickEvent.d.ts.map +0 -1
  515. package/dist/client-analytics/model/searchNoResultEvent.d.ts +0 -15
  516. package/dist/client-analytics/model/searchNoResultEvent.d.ts.map +0 -1
  517. package/dist/client-analytics/model/userWithDate.d.ts +0 -11
  518. package/dist/client-analytics/model/userWithDate.d.ts.map +0 -1
  519. package/dist/client-search/model/mixedSearchFilters.d.ts +0 -2
  520. package/dist/client-search/model/mixedSearchFilters.d.ts.map +0 -1
  521. package/dist/lite/model/mixedSearchFilters.d.ts +0 -2
  522. package/dist/lite/model/mixedSearchFilters.d.ts.map +0 -1
@@ -7,42 +7,42 @@ import type { Acl } from './acl';
7
7
  */
8
8
  export type ApiKey = {
9
9
  /**
10
- * [Permissions](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl) associated with the key.
10
+ * Permissions that determine the type of API requests this key can make. The required ACL is listed in each endpoint\'s reference. For more information, see [access control list](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl).
11
11
  */
12
12
  acl: Acl[];
13
13
 
14
14
  /**
15
- * Description of an API key for you and your team members.
15
+ * Description of an API key to help you identify this API key.
16
16
  */
17
17
  description?: string;
18
18
 
19
19
  /**
20
- * Restricts this API key to a list of indices or index patterns. If the list is empty, all indices are allowed. Specify either an exact index name or a pattern with a leading or trailing wildcard character (or both). For example: - `dev_*` matches all indices starting with \"dev_\" - `*_dev` matches all indices ending with \"_dev\" - `*_products_*` matches all indices containing \"_products_\".
20
+ * Index names or patterns that this API key can access. By default, an API key can access all indices in the same application. You can use leading and trailing wildcard characters (`*`): - `dev_*` matches all indices starting with \"dev_\". - `*_dev` matches all indices ending with \"_dev\". - `*_products_*` matches all indices containing \"_products_\".
21
21
  */
22
22
  indexes?: string[];
23
23
 
24
24
  /**
25
- * Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced. > **Note**: Use this parameter to protect you from third-party attempts to retrieve your entire content by massively querying the index.
25
+ * Maximum number of results this API key can retrieve in one query. By default, there\'s no limit.
26
26
  */
27
27
  maxHitsPerQuery?: number;
28
28
 
29
29
  /**
30
- * Maximum number of API calls per hour allowed from a given IP address or [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/). Each time an API call is performed with this key, a check is performed. If there were more than the specified number of calls within the last hour, the API returns an error with the status code `429` (Too Many Requests). > **Note**: Use this parameter to protect you from third-party attempts to retrieve your entire content by massively querying the index.
30
+ * Maximum number of API requests allowed per IP address or [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) per hour. If this limit is reached, the API returns an error with status code `429`. By default, there\'s no limit.
31
31
  */
32
32
  maxQueriesPerIPPerHour?: number;
33
33
 
34
34
  /**
35
- * Force some [query parameters](https://www.algolia.com/doc/api-reference/api-parameters/) to be applied for each query made with this API key. It\'s a URL-encoded query string.
35
+ * Query parameters to add when making API requests with this API key. To restrict this API key to specific IP addresses, add the `restrictSources` parameter. You can only add a single source, but you can provide a range of IP addresses. Creating an API key fails if the request is made from an IP address that\'s outside the restricted range.
36
36
  */
37
37
  queryParameters?: string;
38
38
 
39
39
  /**
40
- * Restrict this API key to specific [referrers](https://www.algolia.com/doc/guides/security/api-keys/in-depth/api-key-restrictions/#http-referrers). If empty, all referrers are allowed. For example: - `https://algolia.com/_*` matches all referrers starting with \"https://algolia.com/\" - `*.algolia.com` matches all referrers ending with \".algolia.com\" - `*algolia.com*` allows everything in the domain \"algolia.com\".
40
+ * Allowed HTTP referrers for this API key. By default, all referrers are allowed. You can use leading and trailing wildcard characters (`*`): - `https://algolia.com/_*` allows all referrers starting with \"https://algolia.com/\" - `*.algolia.com` allows all referrers ending with \".algolia.com\" - `*algolia.com*` allows all referrers in the domain \"algolia.com\". Like all HTTP headers, referrers can be spoofed. Don\'t rely on them to secure your data. For more information, see [HTTP referrer restrictions](https://www.algolia.com/doc/guides/security/security-best-practices/#http-referrers-restrictions).
41
41
  */
42
42
  referers?: string[];
43
43
 
44
44
  /**
45
- * Validity duration of a key (in seconds). The key will automatically be removed after this time has expired. The default value of 0 never expires. Short-lived API keys are useful to grant temporary access to your data. For example, in mobile apps, you can\'t [control when users update your app](https://www.algolia.com/doc/guides/security/security-best-practices/#use-secured-api-keys-in-mobile-apps). So instead of encoding keys into your app as you would for a web app, you should dynamically fetch them from your mobile app\'s backend.
45
+ * Duration (in seconds) after which the API key expires. By default, API keys don\'t expire.
46
46
  */
47
47
  validity?: number;
48
48
  };
@@ -1,3 +1,3 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- export type MixedSearchFilters = string[] | string;
3
+ export type ApiKeyOperation = 'add' | 'delete' | 'update';
@@ -3,6 +3,6 @@
3
3
  import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner';
4
4
 
5
5
  /**
6
- * Precision of a geographical search (in meters), to [group results that are more or less the same distance from a central point](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/in-depth/geo-ranking-precision/).
6
+ * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
7
7
  */
8
8
  export type AroundPrecision = AroundPrecisionFromValueInner[] | number;
@@ -1,7 +1,16 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
+ /**
4
+ * Range object with lower and upper values in meters to define custom ranges.
5
+ */
3
6
  export type AroundPrecisionFromValueInner = {
7
+ /**
8
+ * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
9
+ */
4
10
  from?: number;
5
11
 
12
+ /**
13
+ * Upper boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
14
+ */
6
15
  value?: number;
7
16
  };
@@ -3,6 +3,6 @@
3
3
  import type { AroundRadiusAll } from './aroundRadiusAll';
4
4
 
5
5
  /**
6
- * [Maximum radius](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#increase-the-search-radius) for a geographical search (in meters).
6
+ * Maximum radius for a search around a central location. This parameter works in combination with the `aroundLatLng` and `aroundLatLngViaIP` parameters. By default, the search radius is determined automatically from the density of hits around the central location. The search radius is small if there are many hits close to the central coordinates.
7
7
  */
8
8
  export type AroundRadius = AroundRadiusAll | number;
@@ -1,3 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
+ /**
4
+ * Return all records with a valid `_geoloc` attribute. Don\'t filter by distance.
5
+ */
3
6
  export type AroundRadiusAll = 'all';
@@ -1,21 +1,21 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Automatic facet Filter.
4
+ * Filter or optional filter to be applied to the search.
5
5
  */
6
6
  export type AutomaticFacetFilter = {
7
7
  /**
8
- * Attribute to filter on. This must match a facet placeholder in the Rule\'s pattern.
8
+ * Facet name to be applied as filter. The name must match placeholders in the `pattern` parameter. For example, with `pattern: {facet:genre}`, `automaticFacetFilters` must be `genre`.
9
9
  */
10
10
  facet: string;
11
11
 
12
12
  /**
13
- * Score for the filter. Typically used for optional or disjunctive filters.
13
+ * Filter scores to give different weights to individual filters.
14
14
  */
15
15
  score?: number;
16
16
 
17
17
  /**
18
- * Whether the filter is disjunctive (true) or conjunctive (false).
18
+ * Whether the filter is disjunctive or conjunctive. If true the filter has multiple matches, multiple occurences are combined with the logical `OR` operation. If false, multiple occurences are combined with the logical `AND` operation.
19
19
  */
20
20
  disjunctive?: boolean;
21
21
  };
@@ -3,6 +3,6 @@
3
3
  import type { AutomaticFacetFilter } from './automaticFacetFilter';
4
4
 
5
5
  /**
6
- * Names of facets to which automatic filtering must be applied; they must match the facet name of a facet value placeholder in the query pattern.
6
+ * Filter to be applied to the search. You can use this to respond to search queries that match a facet value. For example, if users search for \"comedy\", which matches a facet value of the \"genre\" facet, you can filter the results to show the top-ranked comedy movies.
7
7
  */
8
8
  export type AutomaticFacetFilters = AutomaticFacetFilter[] | string[];
@@ -7,7 +7,7 @@ export type BaseGetApiKeyResponse = {
7
7
  value?: string;
8
8
 
9
9
  /**
10
- * Timestamp of creation in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time).
10
+ * Timestamp when the object was created, in milliseconds since the Unix epoch.
11
11
  */
12
12
  createdAt: number;
13
13
  };
@@ -1,83 +1,90 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
+ import type { SupportedLanguage } from './supportedLanguage';
4
+
3
5
  export type BaseIndexSettings = {
4
6
  /**
5
- * Creates [replicas](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/), which are copies of a primary index with the same records but different settings.
7
+ * Attributes used for [faceting](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/). Facets are attributes that let you categorize search results. They can be used for filtering search results. By default, no attribute is used for faceting. Attribute names are case-sensitive. **Modifiers** - `filterOnly(\"ATTRIBUTE\")`. Allows using this attribute as a filter, but doesn\'t evalue the facet values. - `searchable(\"ATTRIBUTE\")`. Allows searching for facet values. - `afterDistinct(\"ATTRIBUTE\")`. Evaluates the facet count _after_ deduplication with `distinct`. This ensures accurate facet counts. You can apply this modifier to searchable facets: `afterDistinct(searchable(ATTRIBUTE))`.
8
+ */
9
+ attributesForFaceting?: string[];
10
+
11
+ /**
12
+ * Creates [replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/). Replicas are copies of a primary index with the same records but different settings, synonyms, or rules. If you want to offer a different ranking or sorting of your search results, you\'ll use replica indices. All index operations on a primary index are automatically forwarded to its replicas. To add a replica index, you must provide the complete set of replicas to this parameter. If you omit a replica from this list, the replica turns into a regular, standalone index that will no longer by synced with the primary index. **Modifier** - `virtual(\"REPLICA\")`. Create a virtual replica, Virtual replicas don\'t increase the number of records and are optimized for [Relevant sorting](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/relevant-sort/).
6
13
  */
7
14
  replicas?: string[];
8
15
 
9
16
  /**
10
- * Maximum number of hits accessible through pagination.
17
+ * Maximum number of search results that can be obtained through pagination. Higher pagination limits might slow down your search. For pagination limits above 1,000, the sorting of results beyond the 1,000th hit can\'t be guaranteed.
11
18
  */
12
19
  paginationLimitedTo?: number;
13
20
 
14
21
  /**
15
- * Attributes that can\'t be retrieved at query time.
22
+ * Attributes that can\'t be retrieved at query time. This can be useful if you want to use an attribute for ranking or to [restrict access](https://www.algolia.com/doc/guides/security/api-keys/how-to/user-restricted-access-to-data/), but don\'t want to include it in the search results. Attribute names are case-sensitive.
16
23
  */
17
24
  unretrievableAttributes?: string[];
18
25
 
19
26
  /**
20
- * Words for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/).
27
+ * Words for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). This also turns off [word splitting and concatenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) for the specified words.
21
28
  */
22
29
  disableTypoToleranceOnWords?: string[];
23
30
 
24
31
  /**
25
- * Attributes in your index to which [Japanese transliteration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#japanese-transliteration-and-type-ahead) applies. This will ensure that words indexed in Katakana or Kanji can also be searched in Hiragana.
32
+ * Attributes, for which you want to support [Japanese transliteration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#japanese-transliteration-and-type-ahead). Transliteration supports searching in any of the Japanese writing systems. To support transliteration, you must set the indexing language to Japanese. Attribute names are case-sensitive.
26
33
  */
27
34
  attributesToTransliterate?: string[];
28
35
 
29
36
  /**
30
- * Attributes on which to split [camel case](https://wikipedia.org/wiki/Camel_case) words.
37
+ * Attributes for which to split [camel case](https://wikipedia.org/wiki/Camel_case) words. Attribute names are case-sensitive.
31
38
  */
32
39
  camelCaseAttributes?: string[];
33
40
 
34
41
  /**
35
- * Attributes in your index to which [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding) applies.
42
+ * Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, \"firefighter\". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`).
36
43
  */
37
44
  decompoundedAttributes?: Record<string, any>;
38
45
 
39
46
  /**
40
- * Set the languages of your index, for language-specific processing steps such as [tokenization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/tokenization/) and [normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
47
+ * Languages for language-specific processing steps, such as word detection and dictionary settings. **You should always specify an indexing language.** If you don\'t specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
41
48
  */
42
- indexLanguages?: string[];
49
+ indexLanguages?: SupportedLanguage[];
43
50
 
44
51
  /**
45
- * Attributes for which you want to turn off [prefix matching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#adjusting-prefix-search).
52
+ * Searchable attributes for which you want to turn off [prefix matching](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/#adjusting-prefix-search). Attribute names are case-sensitive.
46
53
  */
47
54
  disablePrefixOnAttributes?: string[];
48
55
 
49
56
  /**
50
- * Incidates whether the engine compresses arrays with exclusively non-negative integers. When enabled, the compressed arrays may be reordered.
57
+ * Whether arrays with exclusively non-negative integers should be compressed for better performance. If true, the compressed arrays may be reordered.
51
58
  */
52
59
  allowCompressionOfIntegerArray?: boolean;
53
60
 
54
61
  /**
55
- * Numeric attributes that can be used as [numerical filters](https://www.algolia.com/doc/guides/managing-results/rules/detecting-intent/how-to/applying-a-custom-filter-for-a-specific-query/#numerical-filters).
62
+ * Numeric attributes that can be used as [numerical filters](https://www.algolia.com/doc/guides/managing-results/rules/detecting-intent/how-to/applying-a-custom-filter-for-a-specific-query/#numerical-filters). Attribute names are case-sensitive. By default, all numeric attributes are available as numerical filters. For faster indexing, reduce the number of numeric attributes. If you want to turn off filtering for all numeric attributes, specifiy an attribute that doesn\'t exist in your index, such as `NO_NUMERIC_FILTERING`. **Modifier** - `equalOnly(\"ATTRIBUTE\")`. Support only filtering based on equality comparisons `=` and `!=`.
56
63
  */
57
64
  numericAttributesForFiltering?: string[];
58
65
 
59
66
  /**
60
- * Controls which separators are added to an Algolia index as part of [normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean). Separators are all non-letter characters except spaces and currency characters, such as $€£¥.
67
+ * Controls which separators are indexed. Separators are all non-letter characters except spaces and currency characters, such as $€£¥. By default, separator characters aren\'t indexed. With `separatorsToIndex`, Algolia treats separator characters as separate words. For example, a search for `C#` would report two matches.
61
68
  */
62
69
  separatorsToIndex?: string;
63
70
 
64
71
  /**
65
- * [Attributes used for searching](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/), including determining [if matches at the beginning of a word are important (ordered) or not (unordered)](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/how-to/configuring-searchable-attributes-the-right-way/#understanding-word-position).
72
+ * Attributes used for searching. Attribute names are case-sensitive. By default, all attributes are searchable and the [Attribute](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#attribute) ranking criterion is turned off. With a non-empty list, Algolia only returns results with matches in the selected attributes. In addition, the Attribute ranking criterion is turned on: matches in attributes that are higher in the list of `searchableAttributes` rank first. To make matches in two attributes rank equally, include them in a comma-separated string, such as `\"title,alternate_title\"`. Attributes with the same priority are always unordered. For more information, see [Searchable attributes](https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/how-to/setting-searchable-attributes/). **Modifier** - `unordered(\"ATTRIBUTE\")`. Ignore the position of a match within the attribute. Without modifier, matches at the beginning of an attribute rank higer than matches at the end.
66
73
  */
67
74
  searchableAttributes?: string[];
68
75
 
69
76
  /**
70
- * Lets you store custom data in your indices.
77
+ * An object with custom data. You can store up to 32&nbsp;kB as custom data.
71
78
  */
72
79
  userData?: any | null;
73
80
 
74
81
  /**
75
- * A list of characters and their normalized replacements to override Algolia\'s default [normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
82
+ * Characters and their normalized replacements. This overrides Algolia\'s default [normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/).
76
83
  */
77
84
  customNormalization?: Record<string, Record<string, string>>;
78
85
 
79
86
  /**
80
- * Name of the deduplication attribute to be used with Algolia\'s [_distinct_ feature](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/#introducing-algolias-distinct-feature).
87
+ * Attribute that should be used to establish groups of results. Attribute names are case-sensitive. All records with the same value for this attribute are considered a group. You can combine `attributeForDistinct` with the `distinct` search parameter to control how many items per group are included in the search results. If you want to use the same attribute also for faceting, use the `afterDistinct` modifier of the `attributesForFaceting` setting. This applies faceting _after_ deduplication, which will result in accurate facet counts.
81
88
  */
82
89
  attributeForDistinct?: string;
83
90
  };
@@ -5,16 +5,17 @@ import type { AroundRadius } from './aroundRadius';
5
5
  import type { FacetFilters } from './facetFilters';
6
6
  import type { NumericFilters } from './numericFilters';
7
7
  import type { OptionalFilters } from './optionalFilters';
8
+ import type { SupportedLanguage } from './supportedLanguage';
8
9
  import type { TagFilters } from './tagFilters';
9
10
 
10
11
  export type BaseSearchParamsWithoutQuery = {
11
12
  /**
12
- * Overrides the query parameter and performs a more generic search.
13
+ * Keywords to be used instead of the search query to conduct a more broader search. Using the `similarQuery` parameter changes other settings: - `queryType` is set to `prefixNone`. - `removeStopWords` is set to true. - `words` is set as the first ranking criterion. - All remaining words are treated as `optionalWords`. Since the `similarQuery` is supposed to do a broad search, they usually return many results. Combine it with `filters` to narrow down the list of results.
13
14
  */
14
15
  similarQuery?: string;
15
16
 
16
17
  /**
17
- * [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
18
+ * Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
18
19
  */
19
20
  filters?: string;
20
21
 
@@ -27,47 +28,47 @@ export type BaseSearchParamsWithoutQuery = {
27
28
  tagFilters?: TagFilters;
28
29
 
29
30
  /**
30
- * Determines how to calculate [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores). If `false`, maximum score is kept. If `true`, score is summed.
31
+ * Whether to sum all filter scores. If true, all filter scores are summed. Otherwise, the maximum filter score is kept. For more information, see [filter scores](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filter-scoring/#accumulating-scores-with-sumorfiltersscores).
31
32
  */
32
33
  sumOrFiltersScores?: boolean;
33
34
 
34
35
  /**
35
- * Restricts a query to only look at a subset of your [searchable attributes](https://www.algolia.com/doc/guides/managing-results/must-do/searchable-attributes/).
36
+ * Restricts a search to a subset of your searchable attributes. Attribute names are case-sensitive.
36
37
  */
37
38
  restrictSearchableAttributes?: string[];
38
39
 
39
40
  /**
40
- * Returns [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts), their facet values, and the number of matching facet values.
41
+ * Facets for which to retrieve facet values that match the search criteria and the number of matching facet values. To retrieve all facets, use the wildcard character `*`. For more information, see [facets](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#contextual-facet-values-and-counts).
41
42
  */
42
43
  facets?: string[];
43
44
 
44
45
  /**
45
- * Forces faceting to be applied after [de-duplication](https://www.algolia.com/doc/guides/managing-results/refine-results/grouping/) (with the distinct feature). Alternatively, the `afterDistinct` [modifier](https://www.algolia.com/doc/api-reference/api-parameters/attributesForFaceting/#modifiers) of `attributesForFaceting` allows for more granular control.
46
+ * Whether faceting should be applied after deduplication with `distinct`. This leads to accurate facet counts when using faceting in combination with `distinct`. It\'s usually better to use `afterDistinct` modifiers in the `attributesForFaceting` setting, as `facetingAfterDistinct` only computes correct facet counts if all records have the same facet values for the `attributeForDistinct`.
46
47
  */
47
48
  facetingAfterDistinct?: boolean;
48
49
 
49
50
  /**
50
- * Page to retrieve (the first page is `0`, not `1`).
51
+ * Page of search results to retrieve.
51
52
  */
52
53
  page?: number;
53
54
 
54
55
  /**
55
- * Specifies the offset of the first hit to return. > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
56
+ * Position of the first hit to retrieve.
56
57
  */
57
58
  offset?: number;
58
59
 
59
60
  /**
60
- * Sets the number of hits to retrieve (for use with `offset`). > **Note**: Using `page` and `hitsPerPage` is the recommended method for [paging results](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/). However, you can use `offset` and `length` to implement [an alternative approach to paging](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/#retrieving-a-subset-of-records-with-offset-and-length).
61
+ * Number of hits to retrieve (used in combination with `offset`).
61
62
  */
62
63
  length?: number;
63
64
 
64
65
  /**
65
- * Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.
66
+ * Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
66
67
  */
67
68
  aroundLatLng?: string;
68
69
 
69
70
  /**
70
- * Search for entries around a location. The location is automatically computed from the requester\'s IP address.
71
+ * Whether to obtain the coordinates from the request\'s IP address.
71
72
  */
72
73
  aroundLatLngViaIP?: boolean;
73
74
 
@@ -76,62 +77,57 @@ export type BaseSearchParamsWithoutQuery = {
76
77
  aroundPrecision?: AroundPrecision;
77
78
 
78
79
  /**
79
- * Minimum radius (in meters) used for a geographical search when `aroundRadius` isn\'t set.
80
+ * Minimum radius (in meters) for a search around a location when `aroundRadius` isn\'t set.
80
81
  */
81
82
  minimumAroundRadius?: number;
82
83
 
83
84
  /**
84
- * Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
85
+ * Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
85
86
  */
86
87
  insideBoundingBox?: number[][];
87
88
 
88
89
  /**
89
- * Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
90
+ * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored if you also specify `insideBoundingBox`.
90
91
  */
91
92
  insidePolygon?: number[][];
92
93
 
93
94
  /**
94
- * Changes the default values of parameters that work best for a natural language query, such as `ignorePlurals`, `removeStopWords`, `removeWordsIfNoResults`, `analyticsTags`, and `ruleContexts`. These parameters work well together when the query consists of fuller natural language strings instead of keywords, for example when processing voice search queries.
95
+ * ISO language codes that adjust settings that are useful for processing natural language queries (as opposed to keyword searches): - Sets `removeStopWords` and `ignorePlurals` to the list of provided languages. - Sets `removeWordsIfNoResults` to `allOptional`. - Adds a `natural_language` attribute to `ruleContexts` and `analyticsTags`.
95
96
  */
96
- naturalLanguages?: string[];
97
+ naturalLanguages?: SupportedLanguage[];
97
98
 
98
99
  /**
99
- * Assigns [rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) to search queries.
100
+ * Assigns a rule context to the search query. [Rule contexts](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#whats-a-context) are strings that you can use to trigger matching rules.
100
101
  */
101
102
  ruleContexts?: string[];
102
103
 
103
104
  /**
104
- * Defines how much [Personalization affects results](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
105
+ * Impact that Personalization should have on this search. The higher this value is, the more Personalization determines the ranking compared to other factors. For more information, see [Understanding Personalization impact](https://www.algolia.com/doc/guides/personalization/personalizing-results/in-depth/configuring-personalization/#understanding-personalization-impact).
105
106
  */
106
107
  personalizationImpact?: number;
107
108
 
108
109
  /**
109
- * Associates a [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) with the current search.
110
+ * Unique pseudonymous or anonymous user identifier. This helps with analytics and click and conversion events. For more information, see [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
110
111
  */
111
112
  userToken?: string;
112
113
 
113
114
  /**
114
- * Incidates whether the search response includes [detailed ranking information](https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/understanding-the-api-response/#ranking-information).
115
+ * Whether the search response should include detailed ranking information.
115
116
  */
116
117
  getRankingInfo?: boolean;
117
118
 
118
119
  /**
119
- * Enriches the API\'s response with information about how the query was processed.
120
- */
121
- explain?: string[];
122
-
123
- /**
124
- * Whether to take into account an index\'s synonyms for a particular search.
120
+ * Whether to take into account an index\'s synonyms for this search.
125
121
  */
126
122
  synonyms?: boolean;
127
123
 
128
124
  /**
129
- * Indicates whether a query ID parameter is included in the search response. This is required for [tracking click and conversion events](https://www.algolia.com/doc/guides/sending-events/concepts/event-types/#events-related-to-algolia-requests).
125
+ * Whether to include a `queryID` attribute in the response. The query ID is a unique identifier for a search query and is required for tracking [click and conversion events](https://www.algolia.com/guides/sending-events/getting-started/).
130
126
  */
131
127
  clickAnalytics?: boolean;
132
128
 
133
129
  /**
134
- * Indicates whether this query will be included in [analytics](https://www.algolia.com/doc/guides/search-analytics/guides/exclude-queries/).
130
+ * Whether this search will be included in Analytics.
135
131
  */
136
132
  analytics?: boolean;
137
133
 
@@ -141,12 +137,12 @@ export type BaseSearchParamsWithoutQuery = {
141
137
  analyticsTags?: string[];
142
138
 
143
139
  /**
144
- * Whether to include or exclude a query from the processing-time percentile computation.
140
+ * Whether to include this search when calculating processing-time percentiles.
145
141
  */
146
142
  percentileComputation?: boolean;
147
143
 
148
144
  /**
149
- * Incidates whether this search will be considered in A/B testing.
145
+ * Whether to enable A/B testing for this search.
150
146
  */
151
147
  enableABTest?: boolean;
152
148
  };
@@ -22,7 +22,7 @@ export type BaseSearchResponse = Record<string, any> & {
22
22
  aroundLatLng?: string;
23
23
 
24
24
  /**
25
- * Automatically-computed radius.
25
+ * Distance from a central coordinate provided by `aroundLatLng`.
26
26
  */
27
27
  automaticRadius?: string;
28
28
 
@@ -44,7 +44,7 @@ export type BaseSearchResponse = Record<string, any> & {
44
44
  exhaustiveTypo?: boolean;
45
45
 
46
46
  /**
47
- * Mapping of each facet name to the corresponding facet counts.
47
+ * Facet counts.
48
48
  */
49
49
  facets?: Record<string, Record<string, number>>;
50
50
 
@@ -74,12 +74,12 @@ export type BaseSearchResponse = Record<string, any> & {
74
74
  message?: string;
75
75
 
76
76
  /**
77
- * Number of hits the search query matched.
77
+ * Number of results (hits).
78
78
  */
79
79
  nbHits: number;
80
80
 
81
81
  /**
82
- * Number of pages of results for the current query.
82
+ * Number of pages of results.
83
83
  */
84
84
  nbPages: number;
85
85
 
@@ -89,7 +89,7 @@ export type BaseSearchResponse = Record<string, any> & {
89
89
  nbSortedHits?: number;
90
90
 
91
91
  /**
92
- * Page to retrieve (the first page is `0`, not `1`).
92
+ * Page of search results to retrieve.
93
93
  */
94
94
  page: number;
95
95
 
@@ -128,7 +128,12 @@ export type BaseSearchResponse = Record<string, any> & {
128
128
  serverUsed?: string;
129
129
 
130
130
  /**
131
- * Lets you store custom data in your indices.
131
+ * An object with custom data. You can store up to 32&nbsp;kB as custom data.
132
132
  */
133
133
  userData?: any | null;
134
+
135
+ /**
136
+ * Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
137
+ */
138
+ queryID?: string;
134
139
  };
@@ -3,13 +3,13 @@
3
3
  import type { BuiltInOperationType } from './builtInOperationType';
4
4
 
5
5
  /**
6
- * To update an attribute without pushing the entire record, you can use these built-in operations.
6
+ * Update to perform on the attribute.
7
7
  */
8
8
  export type BuiltInOperation = {
9
9
  _operation: BuiltInOperationType;
10
10
 
11
11
  /**
12
- * Value that corresponds to the operation, for example an `Increment` or `Decrement` step, `Add` or `Remove` value.
12
+ * Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `Add` or `Remove` value.
13
13
  */
14
14
  value: string;
15
15
  };
@@ -1,7 +1,7 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Operation to apply to the attribute.
4
+ * How to change the attribute.
5
5
  */
6
6
  export type BuiltInOperationType =
7
7
  | 'Add'
@@ -4,19 +4,24 @@ import type { Anchoring } from './anchoring';
4
4
 
5
5
  export type Condition = {
6
6
  /**
7
- * Query pattern syntax.
7
+ * Query pattern that triggers the rule. You can use either a literal string, or a special pattern `{facet:ATTRIBUTE}`, where `ATTRIBUTE` is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, with `pattern: {facet:genre}`, the rule is triggered when users search for a genre, such as \"comedy\".
8
8
  */
9
9
  pattern?: string;
10
10
 
11
11
  anchoring?: Anchoring;
12
12
 
13
13
  /**
14
- * Whether the pattern matches on plurals, synonyms, and typos.
14
+ * Whether the pattern should match plurals, synonyms, and typos.
15
15
  */
16
16
  alternatives?: boolean;
17
17
 
18
18
  /**
19
- * Rule context format: [A-Za-z0-9_-]+).
19
+ * An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
20
20
  */
21
21
  context?: string;
22
+
23
+ /**
24
+ * Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
25
+ */
26
+ filters?: string;
22
27
  };
@@ -5,28 +5,28 @@ import type { ConsequenceParams } from './consequenceParams';
5
5
  import type { Promote } from './promote';
6
6
 
7
7
  /**
8
- * [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences) of a rule.
8
+ * Effect of the rule. For more information, see [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences).
9
9
  */
10
10
  export type Consequence = {
11
11
  params?: ConsequenceParams;
12
12
 
13
13
  /**
14
- * Records to promote.
14
+ * Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each.
15
15
  */
16
16
  promote?: Promote[];
17
17
 
18
18
  /**
19
- * Only use in combination with the `promote` consequence. When `true`, promoted results will be restricted to match the filters of the current search. When `false`, the promoted results will show up regardless of the filters.
19
+ * Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won\'t be shown.
20
20
  */
21
21
  filterPromotes?: boolean;
22
22
 
23
23
  /**
24
- * Records to hide. By default, you can hide up to 50 records per rule.
24
+ * Records you want to hide from the search results.
25
25
  */
26
26
  hide?: ConsequenceHide[];
27
27
 
28
28
  /**
29
- * Custom JSON object that will be appended to the userData array in the response. This object isn\'t interpreted by the API. It\'s limited to 1kB of minified JSON.
29
+ * A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1&nbsp;kB of minified JSON.
30
30
  */
31
31
  userData?: any | null;
32
32
  };