@algolia/recommend 5.0.0-alpha.1 → 5.0.0-alpha.100

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 (319) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +5 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
  6. package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
  7. package/dist/model/alternativesAsExact.d.ts +1 -1
  8. package/dist/model/alternativesAsExact.d.ts.map +1 -1
  9. package/dist/model/anchoring.d.ts +5 -0
  10. package/dist/model/anchoring.d.ts.map +1 -0
  11. package/dist/model/aroundPrecision.d.ts +6 -0
  12. package/dist/model/aroundPrecision.d.ts.map +1 -0
  13. package/dist/model/aroundPrecisionFromValueInner.d.ts +5 -0
  14. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  15. package/dist/model/aroundRadius.d.ts +5 -5
  16. package/dist/model/aroundRadius.d.ts.map +1 -1
  17. package/dist/model/aroundRadiusAll.d.ts +1 -1
  18. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  19. package/dist/model/automaticFacetFilter.d.ts +18 -0
  20. package/dist/model/automaticFacetFilter.d.ts.map +1 -0
  21. package/dist/model/automaticFacetFilters.d.ts +6 -0
  22. package/dist/model/automaticFacetFilters.d.ts.map +1 -0
  23. package/dist/model/baseRecommendRequest.d.ts +14 -17
  24. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  25. package/dist/model/baseRecommendationsQuery.d.ts +12 -0
  26. package/dist/model/baseRecommendationsQuery.d.ts.map +1 -0
  27. package/dist/model/baseRecommendedForYouQuery.d.ts +8 -0
  28. package/dist/model/baseRecommendedForYouQuery.d.ts.map +1 -0
  29. package/dist/model/baseRecommendedForYouQueryParameters.d.ts +7 -0
  30. package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +1 -0
  31. package/dist/model/baseSearchParams.d.ts +3 -3
  32. package/dist/model/baseSearchParams.d.ts.map +1 -1
  33. package/dist/model/baseSearchParamsWithoutQuery.d.ts +118 -122
  34. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  35. package/dist/model/baseSearchResponse.d.ts +105 -101
  36. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  37. package/dist/model/baseTrendingFacetsQuery.d.ts +9 -0
  38. package/dist/model/baseTrendingFacetsQuery.d.ts.map +1 -0
  39. package/dist/model/baseTrendingItemsQuery.d.ts +16 -0
  40. package/dist/model/baseTrendingItemsQuery.d.ts.map +1 -0
  41. package/dist/model/clientMethodProps.d.ts +127 -60
  42. package/dist/model/clientMethodProps.d.ts.map +1 -1
  43. package/dist/model/condition.d.ts +17 -0
  44. package/dist/model/condition.d.ts.map +1 -0
  45. package/dist/model/consequence.d.ts +26 -0
  46. package/dist/model/consequence.d.ts.map +1 -0
  47. package/dist/model/consequenceHide.d.ts +10 -0
  48. package/dist/model/consequenceHide.d.ts.map +1 -0
  49. package/dist/model/consequenceParams.d.ts +5 -0
  50. package/dist/model/consequenceParams.d.ts.map +1 -0
  51. package/dist/model/consequenceQuery.d.ts +6 -0
  52. package/dist/model/consequenceQuery.d.ts.map +1 -0
  53. package/dist/model/consequenceQueryObject.d.ts +12 -0
  54. package/dist/model/consequenceQueryObject.d.ts.map +1 -0
  55. package/dist/model/deletedAtResponse.d.ts +14 -0
  56. package/dist/model/deletedAtResponse.d.ts.map +1 -0
  57. package/dist/model/distinct.d.ts +5 -0
  58. package/dist/model/distinct.d.ts.map +1 -0
  59. package/dist/model/edit.d.ts +13 -0
  60. package/dist/model/edit.d.ts.map +1 -0
  61. package/dist/model/editType.d.ts +5 -0
  62. package/dist/model/editType.d.ts.map +1 -0
  63. package/dist/model/errorBase.d.ts +6 -6
  64. package/dist/model/errorBase.d.ts.map +1 -1
  65. package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
  66. package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
  67. package/dist/model/exhaustive.d.ts +26 -0
  68. package/dist/model/exhaustive.d.ts.map +1 -0
  69. package/dist/model/facetFilters.d.ts +5 -5
  70. package/dist/model/facetFilters.d.ts.map +1 -1
  71. package/dist/model/facetOrdering.d.ts +12 -12
  72. package/dist/model/facetOrdering.d.ts.map +1 -1
  73. package/dist/model/facets.d.ts +9 -9
  74. package/dist/model/facets.d.ts.map +1 -1
  75. package/dist/model/facetsStats.d.ts +18 -18
  76. package/dist/model/facetsStats.d.ts.map +1 -1
  77. package/dist/model/getRecommendTaskResponse.d.ts +5 -0
  78. package/dist/model/getRecommendTaskResponse.d.ts.map +1 -0
  79. package/dist/model/getRecommendationsParams.d.ts +10 -10
  80. package/dist/model/getRecommendationsParams.d.ts.map +1 -1
  81. package/dist/model/getRecommendationsResponse.d.ts +4 -4
  82. package/dist/model/getRecommendationsResponse.d.ts.map +1 -1
  83. package/dist/model/highlightResult.d.ts +2 -2
  84. package/dist/model/highlightResult.d.ts.map +1 -1
  85. package/dist/model/highlightResultOption.d.ts +19 -19
  86. package/dist/model/highlightResultOption.d.ts.map +1 -1
  87. package/dist/model/ignorePlurals.d.ts +4 -4
  88. package/dist/model/ignorePlurals.d.ts.map +1 -1
  89. package/dist/model/index.d.ts +94 -52
  90. package/dist/model/index.d.ts.map +1 -1
  91. package/dist/model/indexSettingsAsSearchParams.d.ts +162 -158
  92. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  93. package/dist/model/matchLevel.d.ts +4 -4
  94. package/dist/model/matchLevel.d.ts.map +1 -1
  95. package/dist/model/matchedGeoLocation.d.ts +14 -14
  96. package/dist/model/matchedGeoLocation.d.ts.map +1 -1
  97. package/dist/model/mixedSearchFilters.d.ts +1 -1
  98. package/dist/model/mixedSearchFilters.d.ts.map +1 -1
  99. package/dist/model/mode.d.ts +5 -0
  100. package/dist/model/mode.d.ts.map +1 -0
  101. package/dist/model/numericFilters.d.ts +5 -5
  102. package/dist/model/numericFilters.d.ts.map +1 -1
  103. package/dist/model/optionalFilters.d.ts +5 -5
  104. package/dist/model/optionalFilters.d.ts.map +1 -1
  105. package/dist/model/params.d.ts +13 -0
  106. package/dist/model/params.d.ts.map +1 -0
  107. package/dist/model/personalization.d.ts +14 -14
  108. package/dist/model/personalization.d.ts.map +1 -1
  109. package/dist/model/promote.d.ts +4 -0
  110. package/dist/model/promote.d.ts.map +1 -0
  111. package/dist/model/promoteObjectID.d.ts +14 -0
  112. package/dist/model/promoteObjectID.d.ts.map +1 -0
  113. package/dist/model/promoteObjectIDs.d.ts +14 -0
  114. package/dist/model/promoteObjectIDs.d.ts.map +1 -0
  115. package/dist/model/queryType.d.ts +4 -4
  116. package/dist/model/queryType.d.ts.map +1 -1
  117. package/dist/model/rankingInfo.d.ts +50 -50
  118. package/dist/model/rankingInfo.d.ts.map +1 -1
  119. package/dist/model/reRankingApplyFilter.d.ts +5 -5
  120. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  121. package/dist/model/recommendHit.d.ts +26 -26
  122. package/dist/model/recommendHit.d.ts.map +1 -1
  123. package/dist/model/recommendModels.d.ts +2 -0
  124. package/dist/model/recommendModels.d.ts.map +1 -0
  125. package/dist/model/recommendationModels.d.ts +4 -4
  126. package/dist/model/recommendationModels.d.ts.map +1 -1
  127. package/dist/model/recommendationsHit.d.ts +4 -0
  128. package/dist/model/recommendationsHit.d.ts.map +1 -0
  129. package/dist/model/recommendationsHits.d.ts +13 -0
  130. package/dist/model/recommendationsHits.d.ts.map +1 -0
  131. package/dist/model/recommendationsQuery.d.ts +4 -0
  132. package/dist/model/recommendationsQuery.d.ts.map +1 -0
  133. package/dist/model/recommendationsRequest.d.ts +5 -3
  134. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  135. package/dist/model/recommendationsResults.d.ts +4 -0
  136. package/dist/model/recommendationsResults.d.ts.map +1 -0
  137. package/dist/model/recommendedForYouModel.d.ts +5 -0
  138. package/dist/model/recommendedForYouModel.d.ts.map +1 -0
  139. package/dist/model/recommendedForYouQuery.d.ts +4 -0
  140. package/dist/model/recommendedForYouQuery.d.ts.map +1 -0
  141. package/dist/model/recommendedForYouQueryParameters.d.ts +4 -0
  142. package/dist/model/recommendedForYouQueryParameters.d.ts.map +1 -0
  143. package/dist/model/redirect.d.ts +8 -0
  144. package/dist/model/redirect.d.ts.map +1 -0
  145. package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
  146. package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  147. package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
  148. package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  149. package/dist/model/removeStopWords.d.ts +4 -4
  150. package/dist/model/removeStopWords.d.ts.map +1 -1
  151. package/dist/model/removeWordsIfNoResults.d.ts +4 -4
  152. package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
  153. package/dist/model/renderingContent.d.ts +7 -7
  154. package/dist/model/renderingContent.d.ts.map +1 -1
  155. package/dist/model/ruleResponse.d.ts +27 -0
  156. package/dist/model/ruleResponse.d.ts.map +1 -0
  157. package/dist/model/ruleResponseMetadata.d.ts +7 -0
  158. package/dist/model/ruleResponseMetadata.d.ts.map +1 -0
  159. package/dist/model/searchParamsObject.d.ts +3 -3
  160. package/dist/model/searchParamsObject.d.ts.map +1 -1
  161. package/dist/model/searchParamsQuery.d.ts +6 -6
  162. package/dist/model/searchParamsQuery.d.ts.map +1 -1
  163. package/dist/model/searchRecommendRulesParams.d.ts +26 -0
  164. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -0
  165. package/dist/model/searchRecommendRulesResponse.d.ts +20 -0
  166. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -0
  167. package/dist/model/semanticSearch.d.ts +10 -0
  168. package/dist/model/semanticSearch.d.ts.map +1 -0
  169. package/dist/model/snippetResult.d.ts +2 -2
  170. package/dist/model/snippetResult.d.ts.map +1 -1
  171. package/dist/model/snippetResultOption.d.ts +11 -11
  172. package/dist/model/snippetResultOption.d.ts.map +1 -1
  173. package/dist/model/sortRemainingBy.d.ts +4 -4
  174. package/dist/model/sortRemainingBy.d.ts.map +1 -1
  175. package/dist/model/tagFilters.d.ts +5 -5
  176. package/dist/model/tagFilters.d.ts.map +1 -1
  177. package/dist/model/taskStatus.d.ts +5 -0
  178. package/dist/model/taskStatus.d.ts.map +1 -0
  179. package/dist/model/trendingFacetHit.d.ts +18 -0
  180. package/dist/model/trendingFacetHit.d.ts.map +1 -0
  181. package/dist/model/trendingFacetsModel.d.ts +5 -0
  182. package/dist/model/trendingFacetsModel.d.ts.map +1 -0
  183. package/dist/model/trendingFacetsQuery.d.ts +4 -0
  184. package/dist/model/trendingFacetsQuery.d.ts.map +1 -0
  185. package/dist/model/trendingItemsModel.d.ts +5 -0
  186. package/dist/model/trendingItemsModel.d.ts.map +1 -0
  187. package/dist/model/trendingItemsQuery.d.ts +4 -0
  188. package/dist/model/trendingItemsQuery.d.ts.map +1 -0
  189. package/dist/model/typoTolerance.d.ts +5 -5
  190. package/dist/model/typoTolerance.d.ts.map +1 -1
  191. package/dist/model/typoToleranceEnum.d.ts +1 -1
  192. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  193. package/dist/model/value.d.ts +8 -8
  194. package/dist/model/value.d.ts.map +1 -1
  195. package/dist/recommend.cjs +387 -0
  196. package/dist/recommend.esm.browser.js +588 -460
  197. package/dist/recommend.esm.node.js +376 -222
  198. package/dist/recommend.umd.js +2 -2
  199. package/dist/src/recommendClient.d.ts +135 -70
  200. package/dist/src/recommendClient.d.ts.map +1 -1
  201. package/index.js +1 -1
  202. package/model/advancedSyntaxFeatures.ts +1 -1
  203. package/model/alternativesAsExact.ts +1 -1
  204. package/model/anchoring.ts +6 -0
  205. package/model/aroundPrecision.ts +8 -0
  206. package/model/aroundPrecisionFromValueInner.ts +7 -0
  207. package/model/aroundRadius.ts +2 -2
  208. package/model/aroundRadiusAll.ts +1 -1
  209. package/model/automaticFacetFilter.ts +21 -0
  210. package/model/automaticFacetFilters.ts +8 -0
  211. package/model/baseRecommendRequest.ts +7 -9
  212. package/model/baseRecommendationsQuery.ts +17 -0
  213. package/model/baseRecommendedForYouQuery.ts +12 -0
  214. package/model/baseRecommendedForYouQueryParameters.ts +8 -0
  215. package/model/baseSearchParams.ts +1 -1
  216. package/model/baseSearchParamsWithoutQuery.ts +69 -42
  217. package/model/baseSearchResponse.ts +61 -31
  218. package/model/baseTrendingFacetsQuery.ts +12 -0
  219. package/model/baseTrendingItemsQuery.ts +22 -0
  220. package/model/clientMethodProps.ts +91 -19
  221. package/model/condition.ts +22 -0
  222. package/model/consequence.ts +32 -0
  223. package/model/consequenceHide.ts +11 -0
  224. package/model/consequenceParams.ts +9 -0
  225. package/model/consequenceQuery.ts +8 -0
  226. package/model/consequenceQueryObject.ts +15 -0
  227. package/model/deletedAtResponse.ts +16 -0
  228. package/model/distinct.ts +6 -0
  229. package/model/edit.ts +17 -0
  230. package/model/editType.ts +6 -0
  231. package/model/errorBase.ts +1 -1
  232. package/model/exactOnSingleWordQuery.ts +2 -2
  233. package/model/exhaustive.ts +31 -0
  234. package/model/facetFilters.ts +2 -2
  235. package/model/facetOrdering.ts +4 -3
  236. package/model/facets.ts +2 -2
  237. package/model/facetsStats.ts +8 -5
  238. package/model/getRecommendTaskResponse.ts +7 -0
  239. package/model/getRecommendationsParams.ts +3 -3
  240. package/model/getRecommendationsResponse.ts +3 -3
  241. package/model/highlightResult.ts +5 -2
  242. package/model/highlightResultOption.ts +5 -2
  243. package/model/ignorePlurals.ts +2 -2
  244. package/model/index.ts +50 -8
  245. package/model/indexSettingsAsSearchParams.ts +92 -44
  246. package/model/matchLevel.ts +1 -1
  247. package/model/matchedGeoLocation.ts +3 -1
  248. package/model/mixedSearchFilters.ts +1 -1
  249. package/model/mode.ts +6 -0
  250. package/model/numericFilters.ts +2 -2
  251. package/model/optionalFilters.ts +2 -2
  252. package/model/params.ts +18 -0
  253. package/model/personalization.ts +3 -1
  254. package/model/promote.ts +6 -0
  255. package/model/promoteObjectID.ts +16 -0
  256. package/model/promoteObjectIDs.ts +16 -0
  257. package/model/queryType.ts +2 -2
  258. package/model/rankingInfo.ts +13 -1
  259. package/model/reRankingApplyFilter.ts +2 -2
  260. package/model/recommendHit.ts +9 -4
  261. package/model/recommendModels.ts +7 -0
  262. package/model/recommendationModels.ts +2 -2
  263. package/model/recommendationsHit.ts +6 -0
  264. package/model/recommendationsHits.ts +17 -0
  265. package/model/recommendationsQuery.ts +7 -0
  266. package/model/recommendationsRequest.ts +10 -4
  267. package/model/recommendationsResults.ts +6 -0
  268. package/model/recommendedForYouModel.ts +6 -0
  269. package/model/recommendedForYouQuery.ts +7 -0
  270. package/model/recommendedForYouQueryParameters.ts +7 -0
  271. package/model/redirect.ts +10 -0
  272. package/model/redirectRuleIndexMetadata.ts +27 -0
  273. package/model/redirectRuleIndexMetadataData.ts +8 -0
  274. package/model/removeStopWords.ts +2 -2
  275. package/model/removeWordsIfNoResults.ts +2 -2
  276. package/model/renderingContent.ts +2 -2
  277. package/model/ruleResponse.ts +34 -0
  278. package/model/ruleResponseMetadata.ts +8 -0
  279. package/model/searchParamsObject.ts +1 -1
  280. package/model/searchParamsQuery.ts +2 -2
  281. package/model/searchRecommendRulesParams.ts +31 -0
  282. package/model/searchRecommendRulesResponse.ts +25 -0
  283. package/model/semanticSearch.ts +11 -0
  284. package/model/snippetResult.ts +5 -2
  285. package/model/snippetResultOption.ts +3 -2
  286. package/model/sortRemainingBy.ts +2 -2
  287. package/model/tagFilters.ts +2 -2
  288. package/model/taskStatus.ts +6 -0
  289. package/model/trendingFacetHit.ts +21 -0
  290. package/model/trendingFacetsModel.ts +6 -0
  291. package/model/trendingFacetsQuery.ts +7 -0
  292. package/model/trendingItemsModel.ts +6 -0
  293. package/model/trendingItemsQuery.ts +6 -0
  294. package/model/typoTolerance.ts +2 -2
  295. package/model/typoToleranceEnum.ts +1 -1
  296. package/model/value.ts +2 -1
  297. package/package.json +32 -13
  298. package/dist/model/baseRecommendationRequest.d.ts +0 -9
  299. package/dist/model/baseRecommendationRequest.d.ts.map +0 -1
  300. package/dist/model/baseTrendingRequest.d.ts +0 -13
  301. package/dist/model/baseTrendingRequest.d.ts.map +0 -1
  302. package/dist/model/recommendHits.d.ts +0 -5
  303. package/dist/model/recommendHits.d.ts.map +0 -1
  304. package/dist/model/recommendationRequest.d.ts +0 -4
  305. package/dist/model/recommendationRequest.d.ts.map +0 -1
  306. package/dist/model/recommendationsResponse.d.ts +0 -4
  307. package/dist/model/recommendationsResponse.d.ts.map +0 -1
  308. package/dist/model/trendingModels.d.ts +0 -5
  309. package/dist/model/trendingModels.d.ts.map +0 -1
  310. package/dist/model/trendingRequest.d.ts +0 -4
  311. package/dist/model/trendingRequest.d.ts.map +0 -1
  312. package/dist/recommend.cjs.js +0 -235
  313. package/model/baseRecommendationRequest.ts +0 -11
  314. package/model/baseTrendingRequest.ts +0 -15
  315. package/model/recommendHits.ts +0 -7
  316. package/model/recommendationRequest.ts +0 -7
  317. package/model/recommendationsResponse.ts +0 -6
  318. package/model/trendingModels.ts +0 -6
  319. package/model/trendingRequest.ts +0 -6
@@ -1,14 +1,16 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  export type MatchedGeoLocation = {
4
4
  /**
5
5
  * Latitude of the matched location.
6
6
  */
7
7
  lat?: number;
8
+
8
9
  /**
9
10
  * Longitude of the matched location.
10
11
  */
11
12
  lng?: number;
13
+
12
14
  /**
13
15
  * Distance between the matched location and the search location (in meters).
14
16
  */
@@ -1,3 +1,3 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  export type MixedSearchFilters = string[] | string;
package/model/mode.ts ADDED
@@ -0,0 +1,6 @@
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
+
3
+ /**
4
+ * Search mode the index will use to query for results.
5
+ */
6
+ export type Mode = 'keywordSearch' | 'neuralSearch';
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  import type { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * Filter on numeric attributes.
6
+ * [Filter on numeric attributes](https://www.algolia.com/doc/api-reference/api-parameters/numericFilters/).
7
7
  */
8
8
  export type NumericFilters = MixedSearchFilters[] | string;
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  import type { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * Create filters for ranking purposes, where records that match the filter are ranked higher, or lower in the case of a negative optional filter.
6
+ * Create filters to boost or demote records. Records that match the filter are ranked higher for positive and lower for negative optional filters. In contrast to regular filters, records that don\'t match the optional filter are still included in the results, only their ranking is affected.
7
7
  */
8
8
  export type OptionalFilters = MixedSearchFilters[] | string;
@@ -0,0 +1,18 @@
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
+
3
+ import type { AutomaticFacetFilters } from './automaticFacetFilters';
4
+ import type { ConsequenceQuery } from './consequenceQuery';
5
+ import type { RenderingContent } from './renderingContent';
6
+
7
+ /**
8
+ * Additional search parameters.
9
+ */
10
+ export type Params = {
11
+ query?: ConsequenceQuery;
12
+
13
+ automaticFacetFilters?: AutomaticFacetFilters;
14
+
15
+ automaticOptionalFacetFilters?: AutomaticFacetFilters;
16
+
17
+ renderingContent?: RenderingContent;
18
+ };
@@ -1,14 +1,16 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  export type Personalization = {
4
4
  /**
5
5
  * The score of the filters.
6
6
  */
7
7
  filtersScore?: number;
8
+
8
9
  /**
9
10
  * The score of the ranking.
10
11
  */
11
12
  rankingScore?: number;
13
+
12
14
  /**
13
15
  * The score of the event.
14
16
  */
@@ -0,0 +1,6 @@
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
+
3
+ import type { PromoteObjectID } from './promoteObjectID';
4
+ import type { PromoteObjectIDs } from './promoteObjectIDs';
5
+
6
+ export type Promote = PromoteObjectID | PromoteObjectIDs;
@@ -0,0 +1,16 @@
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
+
3
+ /**
4
+ * Record to promote.
5
+ */
6
+ export type PromoteObjectID = {
7
+ /**
8
+ * Unique identifier of the record to promote.
9
+ */
10
+ objectID: string;
11
+
12
+ /**
13
+ * The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
14
+ */
15
+ position: number;
16
+ };
@@ -0,0 +1,16 @@
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
+
3
+ /**
4
+ * Records to promote.
5
+ */
6
+ export type PromoteObjectIDs = {
7
+ /**
8
+ * Unique identifiers of the records to promote.
9
+ */
10
+ objectIDs: string[];
11
+
12
+ /**
13
+ * The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
14
+ */
15
+ position: number;
16
+ };
@@ -1,6 +1,6 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * Controls if and how query words are interpreted as prefixes.
4
+ * Determines how query words are [interpreted as prefixes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
5
5
  */
6
6
  export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  import type { MatchedGeoLocation } from './matchedGeoLocation';
4
4
  import type { Personalization } from './personalization';
@@ -8,44 +8,56 @@ export type RankingInfo = {
8
8
  * This field is reserved for advanced usage.
9
9
  */
10
10
  filters: number;
11
+
11
12
  /**
12
13
  * Position of the most important matched attribute in the attributes to index list.
13
14
  */
14
15
  firstMatchedWord: number;
16
+
15
17
  /**
16
18
  * Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters).
17
19
  */
18
20
  geoDistance: number;
21
+
19
22
  /**
20
23
  * Precision used when computing the geo distance, in meters.
21
24
  */
22
25
  geoPrecision?: number;
26
+
23
27
  matchedGeoLocation?: MatchedGeoLocation;
28
+
24
29
  personalization?: Personalization;
30
+
25
31
  /**
26
32
  * Number of exactly matched words.
27
33
  */
28
34
  nbExactWords: number;
35
+
29
36
  /**
30
37
  * Number of typos encountered when matching the record.
31
38
  */
32
39
  nbTypos: number;
40
+
33
41
  /**
34
42
  * Present and set to true if a Rule promoted the hit.
35
43
  */
36
44
  promoted: boolean;
45
+
37
46
  /**
38
47
  * When the query contains more than one word, the sum of the distances between matched words (in meters).
39
48
  */
40
49
  proximityDistance?: number;
50
+
41
51
  /**
42
52
  * Custom ranking for the object, expressed as a single integer value.
43
53
  */
44
54
  userScore: number;
55
+
45
56
  /**
46
57
  * Number of matched words, including prefixes and typos.
47
58
  */
48
59
  words: number;
60
+
49
61
  /**
50
62
  * Wether the record are promoted by the re-ranking strategy.
51
63
  */
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  import type { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking.
6
+ * When [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) is enabled, only records that match these filters will be affected by Dynamic Re-Ranking.
7
7
  */
8
8
  export type ReRankingApplyFilter = MixedSearchFilters[] | string;
@@ -1,29 +1,34 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  import type { HighlightResult } from './highlightResult';
4
4
  import type { RankingInfo } from './rankingInfo';
5
5
  import type { SnippetResult } from './snippetResult';
6
6
 
7
7
  /**
8
- * A Recommend hit.
8
+ * Recommend hit.
9
9
  */
10
10
  export type RecommendHit = Record<string, any> & {
11
11
  /**
12
- * Unique identifier of the object.
12
+ * Unique object identifier.
13
13
  */
14
14
  objectID: string;
15
+
15
16
  /**
16
17
  * Show highlighted section and words matched on a query.
17
18
  */
18
19
  _highlightResult?: Record<string, HighlightResult>;
20
+
19
21
  /**
20
22
  * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
21
23
  */
22
24
  _snippetResult?: Record<string, SnippetResult>;
25
+
23
26
  _rankingInfo?: RankingInfo;
27
+
24
28
  _distinctSeqID?: number;
29
+
25
30
  /**
26
- * The recommendation score.
31
+ * Recommendation score.
27
32
  */
28
33
  _score: number;
29
34
  };
@@ -0,0 +1,7 @@
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
+
3
+ export type RecommendModels =
4
+ | 'bought-together'
5
+ | 'related-products'
6
+ | 'trending-facets'
7
+ | 'trending-items';
@@ -1,6 +1,6 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * The recommendation model to use.
4
+ * Recommendation model.
5
5
  */
6
6
  export type RecommendationModels = 'bought-together' | 'related-products';
@@ -0,0 +1,6 @@
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
+
3
+ import type { RecommendHit } from './recommendHit';
4
+ import type { TrendingFacetHit } from './trendingFacetHit';
5
+
6
+ export type RecommendationsHit = RecommendHit | TrendingFacetHit;
@@ -0,0 +1,17 @@
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
+
3
+ import type { RecommendationsHit } from './recommendationsHit';
4
+
5
+ export type RecommendationsHits = {
6
+ hits: RecommendationsHit[];
7
+
8
+ /**
9
+ * Text to search for in an index.
10
+ */
11
+ query?: string;
12
+
13
+ /**
14
+ * URL-encoded string of all search parameters.
15
+ */
16
+ params?: string;
17
+ };
@@ -0,0 +1,7 @@
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
+
3
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
4
+ import type { BaseRecommendationsQuery } from './baseRecommendationsQuery';
5
+
6
+ export type RecommendationsQuery = BaseRecommendationsQuery &
7
+ BaseRecommendRequest;
@@ -1,6 +1,12 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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 { RecommendationRequest } from './recommendationRequest';
4
- import type { TrendingRequest } from './trendingRequest';
3
+ import type { RecommendationsQuery } from './recommendationsQuery';
4
+ import type { RecommendedForYouQuery } from './recommendedForYouQuery';
5
+ import type { TrendingFacetsQuery } from './trendingFacetsQuery';
6
+ import type { TrendingItemsQuery } from './trendingItemsQuery';
5
7
 
6
- export type RecommendationsRequest = RecommendationRequest | TrendingRequest;
8
+ export type RecommendationsRequest =
9
+ | RecommendationsQuery
10
+ | RecommendedForYouQuery
11
+ | TrendingFacetsQuery
12
+ | TrendingItemsQuery;
@@ -0,0 +1,6 @@
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
+
3
+ import type { BaseSearchResponse } from './baseSearchResponse';
4
+ import type { RecommendationsHits } from './recommendationsHits';
5
+
6
+ export type RecommendationsResults = BaseSearchResponse & RecommendationsHits;
@@ -0,0 +1,6 @@
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
+
3
+ /**
4
+ * Recommended for you model.
5
+ */
6
+ export type RecommendedForYouModel = 'recommended-for-you';
@@ -0,0 +1,7 @@
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
+
3
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
4
+ import type { BaseRecommendedForYouQuery } from './baseRecommendedForYouQuery';
5
+
6
+ export type RecommendedForYouQuery = BaseRecommendedForYouQuery &
7
+ BaseRecommendRequest;
@@ -0,0 +1,7 @@
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
+
3
+ import type { BaseRecommendedForYouQueryParameters } from './baseRecommendedForYouQueryParameters';
4
+ import type { SearchParamsObject } from './searchParamsObject';
5
+
6
+ export type RecommendedForYouQueryParameters =
7
+ BaseRecommendedForYouQueryParameters & SearchParamsObject;
@@ -0,0 +1,10 @@
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
+
3
+ import type { RedirectRuleIndexMetadata } from './redirectRuleIndexMetadata';
4
+
5
+ /**
6
+ * [Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
7
+ */
8
+ export type Redirect = {
9
+ index?: RedirectRuleIndexMetadata[];
10
+ };
@@ -0,0 +1,27 @@
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
+
3
+ import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData';
4
+
5
+ export type RedirectRuleIndexMetadata = {
6
+ /**
7
+ * Source index for the redirect rule.
8
+ */
9
+ source: string;
10
+
11
+ /**
12
+ * Destination index for the redirect rule.
13
+ */
14
+ dest: string;
15
+
16
+ /**
17
+ * Reason for the redirect rule.
18
+ */
19
+ reason: string;
20
+
21
+ /**
22
+ * Redirect rule status.
23
+ */
24
+ succeed: boolean;
25
+
26
+ data: RedirectRuleIndexMetadataData;
27
+ };
@@ -0,0 +1,8 @@
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
+
3
+ /**
4
+ * Redirect rule data.
5
+ */
6
+ export type RedirectRuleIndexMetadataData = {
7
+ ruleObjectID: string;
8
+ };
@@ -1,6 +1,6 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * Removes stop (common) words from the query before executing it. RemoveStopWords is used in conjunction with the queryLanguages setting. List: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the stop word functionality, ensuring that stop words are removed from consideration in a search. The languages supported here are either every language, or those set by queryLanguages. False: disables stop word functionality, allowing stop words to be taken into account in a search.
4
+ * Removes stop (common) words from the query before executing it. `removeStopWords` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which stop words should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the stop words feature, ensuring that stop words are removed from consideration in a search. The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the stop words feature, allowing stop words to be taken into account in a search.
5
5
  */
6
6
  export type RemoveStopWords = string[] | boolean;
@@ -1,7 +1,7 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
- * Selects a strategy to remove words from the query when it doesn\'t match any hits.
4
+ * Strategy to [remove words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/) from the query when it doesn\'t match any hits.
5
5
  */
6
6
  export type RemoveWordsIfNoResults =
7
7
  | 'allOptional'
@@ -1,9 +1,9 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  import type { FacetOrdering } from './facetOrdering';
4
4
 
5
5
  /**
6
- * Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules.
6
+ * Extra content for the search UI, for example, to control the [ordering and display of facets](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/merchandising-facets/#merchandise-facets-and-their-values-in-the-manual-editor). You can set a default value and dynamically override it with [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/).
7
7
  */
8
8
  export type RenderingContent = {
9
9
  facetOrdering?: FacetOrdering;
@@ -0,0 +1,34 @@
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
+
3
+ import type { Condition } from './condition';
4
+ import type { Consequence } from './consequence';
5
+ import type { RuleResponseMetadata } from './ruleResponseMetadata';
6
+
7
+ /**
8
+ * Rule object.
9
+ */
10
+ export type RuleResponse = {
11
+ _metadata?: RuleResponseMetadata;
12
+
13
+ /**
14
+ * Unique identifier for a rule object.
15
+ */
16
+ objectID: string;
17
+
18
+ /**
19
+ * [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule.
20
+ */
21
+ conditions?: Condition[];
22
+
23
+ consequence?: Consequence;
24
+
25
+ /**
26
+ * Description of the rule\'s purpose. This can be helpful for display in the Algolia dashboard.
27
+ */
28
+ description?: string;
29
+
30
+ /**
31
+ * Indicates whether to enable the rule. If it isn\'t enabled, it isn\'t applied at query time.
32
+ */
33
+ enabled?: boolean;
34
+ };
@@ -0,0 +1,8 @@
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
+
3
+ export type RuleResponseMetadata = {
4
+ /**
5
+ * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
6
+ */
7
+ lastUpdate?: string;
8
+ };
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  import type { BaseSearchParams } from './baseSearchParams';
4
4
  import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  export type SearchParamsQuery = {
4
4
  /**
5
- * The text to search in the index.
5
+ * Text to search for in an index.
6
6
  */
7
7
  query?: string;
8
8
  };
@@ -0,0 +1,31 @@
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
+
3
+ /**
4
+ * Recommend rules search parameters.
5
+ */
6
+ export type SearchRecommendRulesParams = {
7
+ /**
8
+ * Full-text query.
9
+ */
10
+ query?: string;
11
+
12
+ /**
13
+ * Restricts responses to the specified [contextual rule](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#creating-contextual-rules).
14
+ */
15
+ context?: string;
16
+
17
+ /**
18
+ * Requested page (the first page is page 0).
19
+ */
20
+ page?: number;
21
+
22
+ /**
23
+ * Maximum number of hits per page.
24
+ */
25
+ hitsPerPage?: number;
26
+
27
+ /**
28
+ * Restricts responses to enabled rules. When absent (default), _all_ rules are retrieved.
29
+ */
30
+ enabled?: boolean | null;
31
+ };
@@ -0,0 +1,25 @@
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
+
3
+ import type { RuleResponse } from './ruleResponse';
4
+
5
+ export type SearchRecommendRulesResponse = {
6
+ /**
7
+ * Fetched rules.
8
+ */
9
+ hits: RuleResponse[];
10
+
11
+ /**
12
+ * Number of hits the search query matched.
13
+ */
14
+ nbHits: number;
15
+
16
+ /**
17
+ * Page to retrieve (the first page is `0`, not `1`).
18
+ */
19
+ page: number;
20
+
21
+ /**
22
+ * Number of pages of results for the current query.
23
+ */
24
+ nbPages: number;
25
+ };
@@ -0,0 +1,11 @@
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
+
3
+ /**
4
+ * Settings for the semantic search part of NeuralSearch. Only used when `mode` is _neuralSearch_.
5
+ */
6
+ export type SemanticSearch = {
7
+ /**
8
+ * Indices from which to collect click and conversion events. If null, the current index and replica group will be used as the event source.
9
+ */
10
+ eventSources?: string[] | null;
11
+ };
@@ -1,5 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  import type { SnippetResultOption } from './snippetResultOption';
4
4
 
5
- export type SnippetResult = SnippetResultOption | SnippetResultOption[];
5
+ export type SnippetResult =
6
+ | Record<string, SnippetResultOption>
7
+ | SnippetResultOption
8
+ | SnippetResultOption[];
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
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
  import type { MatchLevel } from './matchLevel';
4
4
 
@@ -7,8 +7,9 @@ import type { MatchLevel } from './matchLevel';
7
7
  */
8
8
  export type SnippetResultOption = {
9
9
  /**
10
- * Markup text with occurrences highlighted.
10
+ * Markup text with `facetQuery` matches highlighted.
11
11
  */
12
12
  value: string;
13
+
13
14
  matchLevel: MatchLevel;
14
15
  };