@algolia/recommend 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 (275) hide show
  1. package/dist/builds/browser.d.ts +21 -3
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +21 -3
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/model/aroundPrecision.d.ts +1 -1
  6. package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
  7. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  8. package/dist/model/aroundRadius.d.ts +1 -1
  9. package/dist/model/aroundRadiusAll.d.ts +3 -0
  10. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  11. package/dist/model/autoFacetFilter.d.ts +14 -0
  12. package/dist/model/autoFacetFilter.d.ts.map +1 -0
  13. package/dist/model/baseRecommendRequest.d.ts +6 -4
  14. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  15. package/dist/model/baseSearchParamsWithoutQuery.d.ts +26 -29
  16. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  17. package/dist/model/baseSearchResponse.d.ts +10 -6
  18. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  19. package/dist/model/boughtTogetherQuery.d.ts +4 -0
  20. package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
  21. package/dist/model/clientMethodProps.d.ts +11 -11
  22. package/dist/model/condition.d.ts +6 -9
  23. package/dist/model/condition.d.ts.map +1 -1
  24. package/dist/model/consequence.d.ts +9 -17
  25. package/dist/model/consequence.d.ts.map +1 -1
  26. package/dist/model/deletedAtResponse.d.ts +2 -2
  27. package/dist/model/distinct.d.ts +1 -1
  28. package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
  29. package/dist/model/facetFilters.d.ts +2 -3
  30. package/dist/model/facetFilters.d.ts.map +1 -1
  31. package/dist/model/facetOrdering.d.ts +2 -2
  32. package/dist/model/facets.d.ts +2 -2
  33. package/dist/model/fallbackParams.d.ts +3 -0
  34. package/dist/model/fallbackParams.d.ts.map +1 -0
  35. package/dist/model/fbtModel.d.ts +5 -0
  36. package/dist/model/fbtModel.d.ts.map +1 -0
  37. package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
  38. package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
  39. package/dist/model/getRecommendationsParams.d.ts +2 -2
  40. package/dist/model/hideConsequenceObject.d.ts +10 -0
  41. package/dist/model/hideConsequenceObject.d.ts.map +1 -0
  42. package/dist/model/highlightResult.d.ts +1 -1
  43. package/dist/model/highlightResult.d.ts.map +1 -1
  44. package/dist/model/highlightResultOption.d.ts +3 -3
  45. package/dist/model/ignorePlurals.d.ts +3 -2
  46. package/dist/model/ignorePlurals.d.ts.map +1 -1
  47. package/dist/model/index.d.ts +21 -24
  48. package/dist/model/index.d.ts.map +1 -1
  49. package/dist/model/indexSettingsAsSearchParams.d.ts +32 -35
  50. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  51. package/dist/model/lookingSimilar.d.ts +11 -0
  52. package/dist/model/lookingSimilar.d.ts.map +1 -0
  53. package/dist/model/lookingSimilarModel.d.ts +5 -0
  54. package/dist/model/lookingSimilarModel.d.ts.map +1 -0
  55. package/dist/model/lookingSimilarQuery.d.ts +4 -0
  56. package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
  57. package/dist/model/matchLevel.d.ts +1 -1
  58. package/dist/model/mode.d.ts +1 -1
  59. package/dist/model/numericFilters.d.ts +2 -3
  60. package/dist/model/numericFilters.d.ts.map +1 -1
  61. package/dist/model/optionalFilters.d.ts +2 -3
  62. package/dist/model/optionalFilters.d.ts.map +1 -1
  63. package/dist/model/paramsConsequence.d.ts +19 -0
  64. package/dist/model/paramsConsequence.d.ts.map +1 -0
  65. package/dist/model/promoteConsequenceObject.d.ts +14 -0
  66. package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
  67. package/dist/model/queryType.d.ts +1 -1
  68. package/dist/model/rankingInfo.d.ts +10 -7
  69. package/dist/model/rankingInfo.d.ts.map +1 -1
  70. package/dist/model/reRankingApplyFilter.d.ts +2 -3
  71. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  72. package/dist/model/recommendHit.d.ts +3 -3
  73. package/dist/model/recommendRule.d.ts +24 -0
  74. package/dist/model/recommendRule.d.ts.map +1 -0
  75. package/dist/model/recommendRuleMetadata.d.ts +10 -0
  76. package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
  77. package/dist/model/recommendationsHits.d.ts +0 -8
  78. package/dist/model/recommendationsHits.d.ts.map +1 -1
  79. package/dist/model/recommendationsRequest.d.ts +4 -2
  80. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  81. package/dist/model/recommendedForYou.d.ts +7 -0
  82. package/dist/model/recommendedForYou.d.ts.map +1 -0
  83. package/dist/model/recommendedForYouModel.d.ts +1 -1
  84. package/dist/model/recommendedForYouQuery.d.ts +2 -2
  85. package/dist/model/recommendedForYouQuery.d.ts.map +1 -1
  86. package/dist/model/relatedModel.d.ts +5 -0
  87. package/dist/model/relatedModel.d.ts.map +1 -0
  88. package/dist/model/relatedProducts.d.ts +11 -0
  89. package/dist/model/relatedProducts.d.ts.map +1 -0
  90. package/dist/model/relatedQuery.d.ts +4 -0
  91. package/dist/model/relatedQuery.d.ts.map +1 -0
  92. package/dist/model/removeStopWords.d.ts +3 -2
  93. package/dist/model/removeStopWords.d.ts.map +1 -1
  94. package/dist/model/removeWordsIfNoResults.d.ts +1 -1
  95. package/dist/model/renderingContent.d.ts +1 -1
  96. package/dist/model/searchParams.d.ts +3 -0
  97. package/dist/model/searchParams.d.ts.map +1 -0
  98. package/dist/model/searchParamsObject.d.ts +3 -0
  99. package/dist/model/searchParamsObject.d.ts.map +1 -1
  100. package/dist/model/searchParamsQuery.d.ts +1 -1
  101. package/dist/model/searchRecommendRulesParams.d.ts +18 -6
  102. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -1
  103. package/dist/model/searchRecommendRulesResponse.d.ts +6 -6
  104. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -1
  105. package/dist/model/semanticSearch.d.ts +2 -2
  106. package/dist/model/snippetResult.d.ts +1 -1
  107. package/dist/model/snippetResult.d.ts.map +1 -1
  108. package/dist/model/snippetResultOption.d.ts +2 -2
  109. package/dist/model/sortRemainingBy.d.ts +1 -1
  110. package/dist/model/supportedLanguage.d.ts +5 -0
  111. package/dist/model/supportedLanguage.d.ts.map +1 -0
  112. package/dist/model/tagFilters.d.ts +2 -3
  113. package/dist/model/tagFilters.d.ts.map +1 -1
  114. package/dist/model/taskStatus.d.ts +1 -1
  115. package/dist/model/trendingFacetHit.d.ts +2 -2
  116. package/dist/model/trendingFacets.d.ts +11 -0
  117. package/dist/model/trendingFacets.d.ts.map +1 -0
  118. package/dist/model/trendingFacetsModel.d.ts +1 -1
  119. package/dist/model/trendingFacetsQuery.d.ts +2 -2
  120. package/dist/model/trendingFacetsQuery.d.ts.map +1 -1
  121. package/dist/model/trendingItems.d.ts +15 -0
  122. package/dist/model/trendingItems.d.ts.map +1 -0
  123. package/dist/model/trendingItemsModel.d.ts +1 -1
  124. package/dist/model/trendingItemsQuery.d.ts +2 -2
  125. package/dist/model/trendingItemsQuery.d.ts.map +1 -1
  126. package/dist/model/typoTolerance.d.ts +1 -1
  127. package/dist/model/typoToleranceEnum.d.ts +3 -0
  128. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  129. package/dist/model/value.d.ts +1 -1
  130. package/dist/recommend.cjs +54 -45
  131. package/dist/recommend.esm.browser.js +42 -38
  132. package/dist/recommend.esm.node.js +54 -45
  133. package/dist/recommend.umd.js +2 -2
  134. package/dist/src/recommendClient.d.ts +34 -32
  135. package/dist/src/recommendClient.d.ts.map +1 -1
  136. package/model/aroundPrecision.ts +1 -1
  137. package/model/aroundPrecisionFromValueInner.ts +9 -0
  138. package/model/aroundRadius.ts +1 -1
  139. package/model/aroundRadiusAll.ts +3 -0
  140. package/model/autoFacetFilter.ts +16 -0
  141. package/model/baseRecommendRequest.ts +8 -4
  142. package/model/baseSearchParamsWithoutQuery.ts +26 -30
  143. package/model/baseSearchResponse.ts +11 -6
  144. package/model/{recommendationsQuery.ts → boughtTogetherQuery.ts} +3 -3
  145. package/model/clientMethodProps.ts +11 -11
  146. package/model/condition.ts +6 -12
  147. package/model/consequence.ts +9 -19
  148. package/model/deletedAtResponse.ts +2 -2
  149. package/model/distinct.ts +1 -1
  150. package/model/exactOnSingleWordQuery.ts +1 -1
  151. package/model/facetFilters.ts +2 -4
  152. package/model/facetOrdering.ts +2 -2
  153. package/model/facets.ts +2 -2
  154. package/model/{recommendationModels.ts → fallbackParams.ts} +3 -4
  155. package/model/fbtModel.ts +6 -0
  156. package/model/{consequenceHide.ts → frequentlyBoughtTogether.ts} +6 -5
  157. package/model/getRecommendationsParams.ts +2 -2
  158. package/model/{editType.ts → hideConsequenceObject.ts} +7 -2
  159. package/model/highlightResult.ts +1 -0
  160. package/model/highlightResultOption.ts +3 -3
  161. package/model/ignorePlurals.ts +4 -2
  162. package/model/index.ts +21 -24
  163. package/model/indexSettingsAsSearchParams.ts +32 -36
  164. package/model/lookingSimilar.ts +15 -0
  165. package/model/lookingSimilarModel.ts +6 -0
  166. package/model/lookingSimilarQuery.ts +6 -0
  167. package/model/matchLevel.ts +1 -1
  168. package/model/mode.ts +1 -1
  169. package/model/numericFilters.ts +2 -4
  170. package/model/optionalFilters.ts +2 -4
  171. package/model/paramsConsequence.ts +23 -0
  172. package/model/promoteConsequenceObject.ts +16 -0
  173. package/model/queryType.ts +1 -1
  174. package/model/rankingInfo.ts +10 -7
  175. package/model/reRankingApplyFilter.ts +2 -4
  176. package/model/recommendHit.ts +3 -3
  177. package/model/{ruleResponse.ts → recommendRule.ts} +7 -10
  178. package/model/{ruleResponseMetadata.ts → recommendRuleMetadata.ts} +5 -2
  179. package/model/recommendationsHits.ts +0 -10
  180. package/model/recommendationsRequest.ts +6 -2
  181. package/model/{baseRecommendedForYouQuery.ts → recommendedForYou.ts} +3 -5
  182. package/model/recommendedForYouModel.ts +1 -1
  183. package/model/recommendedForYouQuery.ts +2 -3
  184. package/model/relatedModel.ts +6 -0
  185. package/model/relatedProducts.ts +15 -0
  186. package/model/relatedQuery.ts +6 -0
  187. package/model/removeStopWords.ts +4 -2
  188. package/model/removeWordsIfNoResults.ts +1 -1
  189. package/model/renderingContent.ts +1 -1
  190. package/model/{mixedSearchFilters.ts → searchParams.ts} +3 -1
  191. package/model/searchParamsObject.ts +3 -0
  192. package/model/searchParamsQuery.ts +1 -1
  193. package/model/searchRecommendRulesParams.ts +21 -6
  194. package/model/searchRecommendRulesResponse.ts +6 -6
  195. package/model/semanticSearch.ts +2 -2
  196. package/model/snippetResult.ts +2 -1
  197. package/model/snippetResultOption.ts +2 -2
  198. package/model/sortRemainingBy.ts +1 -1
  199. package/model/supportedLanguage.ts +74 -0
  200. package/model/tagFilters.ts +2 -4
  201. package/model/taskStatus.ts +1 -1
  202. package/model/trendingFacetHit.ts +2 -2
  203. package/model/{baseTrendingFacetsQuery.ts → trendingFacets.ts} +7 -4
  204. package/model/trendingFacetsModel.ts +1 -1
  205. package/model/trendingFacetsQuery.ts +2 -3
  206. package/model/trendingItems.ts +20 -0
  207. package/model/trendingItemsModel.ts +1 -1
  208. package/model/trendingItemsQuery.ts +2 -2
  209. package/model/typoTolerance.ts +1 -1
  210. package/model/typoToleranceEnum.ts +3 -0
  211. package/model/value.ts +1 -1
  212. package/package.json +7 -7
  213. package/dist/model/anchoring.d.ts +0 -5
  214. package/dist/model/anchoring.d.ts.map +0 -1
  215. package/dist/model/automaticFacetFilter.d.ts +0 -18
  216. package/dist/model/automaticFacetFilter.d.ts.map +0 -1
  217. package/dist/model/automaticFacetFilters.d.ts +0 -6
  218. package/dist/model/automaticFacetFilters.d.ts.map +0 -1
  219. package/dist/model/baseRecommendationsQuery.d.ts +0 -12
  220. package/dist/model/baseRecommendationsQuery.d.ts.map +0 -1
  221. package/dist/model/baseRecommendedForYouQuery.d.ts +0 -8
  222. package/dist/model/baseRecommendedForYouQuery.d.ts.map +0 -1
  223. package/dist/model/baseRecommendedForYouQueryParameters.d.ts +0 -7
  224. package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +0 -1
  225. package/dist/model/baseTrendingFacetsQuery.d.ts +0 -9
  226. package/dist/model/baseTrendingFacetsQuery.d.ts.map +0 -1
  227. package/dist/model/baseTrendingItemsQuery.d.ts +0 -16
  228. package/dist/model/baseTrendingItemsQuery.d.ts.map +0 -1
  229. package/dist/model/consequenceHide.d.ts +0 -10
  230. package/dist/model/consequenceHide.d.ts.map +0 -1
  231. package/dist/model/consequenceParams.d.ts +0 -5
  232. package/dist/model/consequenceParams.d.ts.map +0 -1
  233. package/dist/model/consequenceQuery.d.ts +0 -6
  234. package/dist/model/consequenceQuery.d.ts.map +0 -1
  235. package/dist/model/consequenceQueryObject.d.ts +0 -12
  236. package/dist/model/consequenceQueryObject.d.ts.map +0 -1
  237. package/dist/model/edit.d.ts +0 -13
  238. package/dist/model/edit.d.ts.map +0 -1
  239. package/dist/model/editType.d.ts +0 -5
  240. package/dist/model/editType.d.ts.map +0 -1
  241. package/dist/model/mixedSearchFilters.d.ts +0 -2
  242. package/dist/model/mixedSearchFilters.d.ts.map +0 -1
  243. package/dist/model/params.d.ts +0 -13
  244. package/dist/model/params.d.ts.map +0 -1
  245. package/dist/model/promote.d.ts +0 -4
  246. package/dist/model/promote.d.ts.map +0 -1
  247. package/dist/model/promoteObjectID.d.ts +0 -14
  248. package/dist/model/promoteObjectID.d.ts.map +0 -1
  249. package/dist/model/promoteObjectIDs.d.ts +0 -14
  250. package/dist/model/promoteObjectIDs.d.ts.map +0 -1
  251. package/dist/model/recommendationModels.d.ts +0 -5
  252. package/dist/model/recommendationModels.d.ts.map +0 -1
  253. package/dist/model/recommendationsQuery.d.ts +0 -4
  254. package/dist/model/recommendationsQuery.d.ts.map +0 -1
  255. package/dist/model/recommendedForYouQueryParameters.d.ts +0 -4
  256. package/dist/model/recommendedForYouQueryParameters.d.ts.map +0 -1
  257. package/dist/model/ruleResponse.d.ts +0 -27
  258. package/dist/model/ruleResponse.d.ts.map +0 -1
  259. package/dist/model/ruleResponseMetadata.d.ts +0 -7
  260. package/dist/model/ruleResponseMetadata.d.ts.map +0 -1
  261. package/model/anchoring.ts +0 -6
  262. package/model/automaticFacetFilter.ts +0 -21
  263. package/model/automaticFacetFilters.ts +0 -8
  264. package/model/baseRecommendationsQuery.ts +0 -17
  265. package/model/baseRecommendedForYouQueryParameters.ts +0 -8
  266. package/model/baseTrendingItemsQuery.ts +0 -22
  267. package/model/consequenceParams.ts +0 -9
  268. package/model/consequenceQuery.ts +0 -8
  269. package/model/consequenceQueryObject.ts +0 -15
  270. package/model/edit.ts +0 -17
  271. package/model/params.ts +0 -18
  272. package/model/promote.ts +0 -6
  273. package/model/promoteObjectID.ts +0 -16
  274. package/model/promoteObjectIDs.ts +0 -16
  275. package/model/recommendedForYouQueryParameters.ts +0 -7
@@ -0,0 +1,15 @@
1
+ import type { SearchParamsObject } from './searchParamsObject';
2
+ import type { TrendingItemsModel } from './trendingItemsModel';
3
+ export type TrendingItems = {
4
+ /**
5
+ * Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
6
+ */
7
+ facetName: string;
8
+ /**
9
+ * Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
10
+ */
11
+ facetValue: string;
12
+ model: TrendingItemsModel;
13
+ fallbackParameters?: SearchParamsObject;
14
+ };
15
+ //# sourceMappingURL=trendingItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trendingItems.d.ts","sourceRoot":"","sources":["../../model/trendingItems.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,kBAAkB,CAAC;IAE1B,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Trending items model.
2
+ * Trending items model. Trending items are determined from the number of conversion events collected on them.
3
3
  */
4
4
  export type TrendingItemsModel = 'trending-items';
5
5
  //# sourceMappingURL=trendingItemsModel.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import type { BaseRecommendRequest } from './baseRecommendRequest';
2
- import type { BaseTrendingItemsQuery } from './baseTrendingItemsQuery';
3
- export type TrendingItemsQuery = BaseRecommendRequest & BaseTrendingItemsQuery;
2
+ import type { TrendingItems } from './trendingItems';
3
+ export type TrendingItemsQuery = BaseRecommendRequest & TrendingItems;
4
4
  //# sourceMappingURL=trendingItemsQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trendingItemsQuery.d.ts","sourceRoot":"","sources":["../../model/trendingItemsQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG,sBAAsB,CAAC"}
1
+ {"version":3,"file":"trendingItemsQuery.d.ts","sourceRoot":"","sources":["../../model/trendingItemsQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG,aAAa,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { TypoToleranceEnum } from './typoToleranceEnum';
2
2
  /**
3
- * Controls whether [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) is enabled and how it is applied.
3
+ * Whether [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) is enabled and how it is applied. If typo tolerance is true, `min`, or `strict`, [word splitting and concetenation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/splitting-and-concatenation/) is also active.
4
4
  */
5
5
  export type TypoTolerance = TypoToleranceEnum | boolean;
6
6
  //# sourceMappingURL=typoTolerance.d.ts.map
@@ -1,2 +1,5 @@
1
+ /**
2
+ * - `min`. Return matches with the lowest number of typos. For example, if you have matches without typos, only include those. But if there are no matches without typos (with 1 typo), include matches with 1 typo (2 typos). - `strict`. Return matches with the two lowest numbers of typos. With `strict`, the Typo ranking criterion is applied first in the `ranking` setting.
3
+ */
1
4
  export type TypoToleranceEnum = 'min' | 'strict';
2
5
  //# sourceMappingURL=typoToleranceEnum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typoToleranceEnum.d.ts","sourceRoot":"","sources":["../../model/typoToleranceEnum.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"typoToleranceEnum.d.ts","sourceRoot":"","sources":["../../model/typoToleranceEnum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { SortRemainingBy } from './sortRemainingBy';
2
2
  export type Value = {
3
3
  /**
4
- * Pinned order of facet lists.
4
+ * Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
5
5
  */
6
6
  order?: string[];
7
7
  sortRemainingBy?: SortRemainingBy;
@@ -4,7 +4,7 @@ var clientCommon = require('@algolia/client-common');
4
4
  var requesterNodeHttp = require('@algolia/requester-node-http');
5
5
 
6
6
  // 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.
7
- const apiClientVersion = '5.0.0-alpha.99';
7
+ const apiClientVersion = '5.0.0-beta.2';
8
8
  function getDefaultHosts(appId) {
9
9
  return [
10
10
  {
@@ -89,7 +89,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
89
89
  /**
90
90
  * This method allow you to send requests to the Algolia REST API.
91
91
  *
92
- * @summary Send requests to the Algolia REST API.
93
92
  * @param customDelete - The customDelete object.
94
93
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
95
94
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -99,7 +98,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
99
98
  if (!path) {
100
99
  throw new Error('Parameter `path` is required when calling `customDelete`.');
101
100
  }
102
- const requestPath = '/1{path}'.replace('{path}', path);
101
+ const requestPath = '/{path}'.replace('{path}', path);
103
102
  const headers = {};
104
103
  const queryParameters = parameters ? parameters : {};
105
104
  const request = {
@@ -113,7 +112,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
113
112
  /**
114
113
  * This method allow you to send requests to the Algolia REST API.
115
114
  *
116
- * @summary Send requests to the Algolia REST API.
117
115
  * @param customGet - The customGet object.
118
116
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
119
117
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -123,7 +121,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
123
121
  if (!path) {
124
122
  throw new Error('Parameter `path` is required when calling `customGet`.');
125
123
  }
126
- const requestPath = '/1{path}'.replace('{path}', path);
124
+ const requestPath = '/{path}'.replace('{path}', path);
127
125
  const headers = {};
128
126
  const queryParameters = parameters ? parameters : {};
129
127
  const request = {
@@ -137,7 +135,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
137
135
  /**
138
136
  * This method allow you to send requests to the Algolia REST API.
139
137
  *
140
- * @summary Send requests to the Algolia REST API.
141
138
  * @param customPost - The customPost object.
142
139
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
143
140
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -148,7 +145,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
148
145
  if (!path) {
149
146
  throw new Error('Parameter `path` is required when calling `customPost`.');
150
147
  }
151
- const requestPath = '/1{path}'.replace('{path}', path);
148
+ const requestPath = '/{path}'.replace('{path}', path);
152
149
  const headers = {};
153
150
  const queryParameters = parameters ? parameters : {};
154
151
  const request = {
@@ -163,7 +160,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
163
160
  /**
164
161
  * This method allow you to send requests to the Algolia REST API.
165
162
  *
166
- * @summary Send requests to the Algolia REST API.
167
163
  * @param customPut - The customPut object.
168
164
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
169
165
  * @param customPut.parameters - Query parameters to apply to the current query.
@@ -174,7 +170,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
174
170
  if (!path) {
175
171
  throw new Error('Parameter `path` is required when calling `customPut`.');
176
172
  }
177
- const requestPath = '/1{path}'.replace('{path}', path);
173
+ const requestPath = '/{path}'.replace('{path}', path);
178
174
  const headers = {};
179
175
  const queryParameters = parameters ? parameters : {};
180
176
  const request = {
@@ -187,13 +183,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
187
183
  return transporter.request(request, requestOptions);
188
184
  },
189
185
  /**
190
- * Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
186
+ * Deletes a Recommend rule from a recommendation scenario.
187
+ *
188
+ * Required API Key ACLs:
189
+ * - editSettings.
191
190
  *
192
- * @summary Delete a Recommend rule.
193
191
  * @param deleteRecommendRule - The deleteRecommendRule object.
194
- * @param deleteRecommendRule.indexName - Index on which to perform the request.
195
- * @param deleteRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
196
- * @param deleteRecommendRule.objectID - Unique record (object) identifier.
192
+ * @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.
193
+ * @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
194
+ * @param deleteRecommendRule.objectID - Unique record identifier.
197
195
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
198
196
  */
199
197
  deleteRecommendRule({ indexName, model, objectID }, requestOptions) {
@@ -221,13 +219,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
221
219
  return transporter.request(request, requestOptions);
222
220
  },
223
221
  /**
224
- * Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
222
+ * Retrieves a Recommend rule that you previously created in the Algolia dashboard.
223
+ *
224
+ * Required API Key ACLs:
225
+ * - settings.
225
226
  *
226
- * @summary Get a Recommend rule.
227
227
  * @param getRecommendRule - The getRecommendRule object.
228
- * @param getRecommendRule.indexName - Index on which to perform the request.
229
- * @param getRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
230
- * @param getRecommendRule.objectID - Unique record (object) identifier.
228
+ * @param getRecommendRule.indexName - Name of the index on which to perform the operation.
229
+ * @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
230
+ * @param getRecommendRule.objectID - Unique record identifier.
231
231
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
232
232
  */
233
233
  getRecommendRule({ indexName, model, objectID }, requestOptions) {
@@ -255,13 +255,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
255
255
  return transporter.request(request, requestOptions);
256
256
  },
257
257
  /**
258
- * Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.
258
+ * Checks the status of a given task. Deleting a Recommend rule is asynchronous. When you delete a rule, a task is created on a queue and completed depending on the load on the server. The API response includes a task ID that you can use to check the status.
259
+ *
260
+ * Required API Key ACLs:
261
+ * - editSettings.
259
262
  *
260
- * @summary Get a Recommend task\'s status.
261
263
  * @param getRecommendStatus - The getRecommendStatus object.
262
- * @param getRecommendStatus.indexName - Index on which to perform the request.
263
- * @param getRecommendStatus.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
264
- * @param getRecommendStatus.taskID - Unique identifier of a task. Numeric value (up to 64bits).
264
+ * @param getRecommendStatus.indexName - Name of the index on which to perform the operation.
265
+ * @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
266
+ * @param getRecommendStatus.taskID - Unique task identifier.
265
267
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
266
268
  */
267
269
  getRecommendStatus({ indexName, model, taskID }, requestOptions) {
@@ -289,9 +291,11 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
289
291
  return transporter.request(request, requestOptions);
290
292
  },
291
293
  /**
292
- * Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).
294
+ * Retrieves recommendations from selected AI models.
295
+ *
296
+ * Required API Key ACLs:
297
+ * - search.
293
298
  *
294
- * @summary Get recommendations and trending items.
295
299
  * @param getRecommendationsParams - The getRecommendationsParams object.
296
300
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
297
301
  */
@@ -317,12 +321,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
317
321
  return transporter.request(request, requestOptions);
318
322
  },
319
323
  /**
320
- * List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
324
+ * Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.
325
+ *
326
+ * Required API Key ACLs:
327
+ * - settings.
321
328
  *
322
- * @summary List Recommend rules.
323
329
  * @param searchRecommendRules - The searchRecommendRules object.
324
- * @param searchRecommendRules.indexName - Index on which to perform the request.
325
- * @param searchRecommendRules.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
330
+ * @param searchRecommendRules.indexName - Name of the index on which to perform the operation.
331
+ * @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
326
332
  * @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.
327
333
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
328
334
  */
@@ -353,6 +359,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
353
359
  }
354
360
 
355
361
  // 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.
362
+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
356
363
  function recommendClient(appId, apiKey, options) {
357
364
  if (!appId || typeof appId !== 'string') {
358
365
  throw new Error('`appId` is missing.');
@@ -360,21 +367,23 @@ function recommendClient(appId, apiKey, options) {
360
367
  if (!apiKey || typeof apiKey !== 'string') {
361
368
  throw new Error('`apiKey` is missing.');
362
369
  }
363
- return createRecommendClient({
364
- appId,
365
- apiKey,
366
- timeouts: {
367
- connect: clientCommon.DEFAULT_CONNECT_TIMEOUT_NODE,
368
- read: clientCommon.DEFAULT_READ_TIMEOUT_NODE,
369
- write: clientCommon.DEFAULT_WRITE_TIMEOUT_NODE,
370
- },
371
- requester: requesterNodeHttp.createHttpRequester(),
372
- algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
373
- responsesCache: clientCommon.createNullCache(),
374
- requestsCache: clientCommon.createNullCache(),
375
- hostsCache: clientCommon.createMemoryCache(),
376
- ...options,
377
- });
370
+ return {
371
+ ...createRecommendClient({
372
+ appId,
373
+ apiKey,
374
+ timeouts: {
375
+ connect: clientCommon.DEFAULT_CONNECT_TIMEOUT_NODE,
376
+ read: clientCommon.DEFAULT_READ_TIMEOUT_NODE,
377
+ write: clientCommon.DEFAULT_WRITE_TIMEOUT_NODE,
378
+ },
379
+ requester: requesterNodeHttp.createHttpRequester(),
380
+ algoliaAgents: [{ segment: 'Node.js', version: process.versions.node }],
381
+ responsesCache: clientCommon.createNullCache(),
382
+ requestsCache: clientCommon.createNullCache(),
383
+ hostsCache: clientCommon.createMemoryCache(),
384
+ ...options,
385
+ }),
386
+ };
378
387
  }
379
388
 
380
389
  exports.apiClientVersion = apiClientVersion;
@@ -207,7 +207,7 @@ function _toPrimitive(t, r) {
207
207
  }
208
208
  function _toPropertyKey(t) {
209
209
  var i = _toPrimitive(t, "string");
210
- return "symbol" == typeof i ? i : String(i);
210
+ return "symbol" == typeof i ? i : i + "";
211
211
  }
212
212
  function _defineProperty(obj, key, value) {
213
213
  key = _toPropertyKey(key);
@@ -281,7 +281,7 @@ function shuffle(array) {
281
281
  }
282
282
  function serializeUrl(host, path, queryParameters) {
283
283
  const queryParametersAsString = serializeQueryParameters(queryParameters);
284
- let url = `${host.protocol}://${host.url}/${path.charAt(0) === '/' ? path.substr(1) : path}`;
284
+ let url = `${host.protocol}://${host.url}${host.port ? `:${host.port}` : ''}/${path.charAt(0) === '/' ? path.substring(1) : path}`;
285
285
  if (queryParametersAsString.length) {
286
286
  url += `?${queryParametersAsString}`;
287
287
  }
@@ -289,7 +289,7 @@ function serializeUrl(host, path, queryParameters) {
289
289
  }
290
290
  function serializeQueryParameters(parameters) {
291
291
  const isObjectOrArray = value => Object.prototype.toString.call(value) === '[object Object]' || Object.prototype.toString.call(value) === '[object Array]';
292
- return Object.keys(parameters).map(key => `${key}=${encodeURIComponent(isObjectOrArray(parameters[key]) ? JSON.stringify(parameters[key]) : parameters[key])}`).join('&');
292
+ return Object.keys(parameters).map(key => `${key}=${encodeURIComponent(isObjectOrArray(parameters[key]) ? JSON.stringify(parameters[key]) : parameters[key]).replaceAll('+', '%20')}`).join('&');
293
293
  }
294
294
  function serializeData(request, requestOptions) {
295
295
  if (request.method === 'GET' || request.data === undefined && requestOptions.data === undefined) {
@@ -460,16 +460,13 @@ function createTransporter({
460
460
  if (host === undefined) {
461
461
  throw new RetryError(stackTraceWithoutCredentials(stackTrace));
462
462
  }
463
- let responseTimeout = requestOptions.timeout;
464
- if (responseTimeout === undefined) {
465
- responseTimeout = isRead ? timeouts.read : timeouts.write;
466
- }
463
+ let responseTimeout = isRead ? requestOptions.timeouts?.read || timeouts.read : requestOptions.timeouts?.write || timeouts.write;
467
464
  const payload = {
468
465
  data,
469
466
  headers,
470
467
  method: request.method,
471
468
  url: serializeUrl(host, request.path, queryParameters),
472
- connectTimeout: getTimeout(timeoutsCount, timeouts.connect),
469
+ connectTimeout: getTimeout(timeoutsCount, requestOptions.timeouts?.connect || timeouts.connect),
473
470
  responseTimeout: getTimeout(timeoutsCount, responseTimeout)
474
471
  };
475
472
  /**
@@ -697,7 +694,7 @@ function createXhrRequester() {
697
694
  }
698
695
 
699
696
  // 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.
700
- const apiClientVersion = '5.0.0-alpha.99';
697
+ const apiClientVersion = '5.0.0-beta.2';
701
698
  function getDefaultHosts(appId) {
702
699
  return [
703
700
  {
@@ -782,7 +779,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
782
779
  /**
783
780
  * This method allow you to send requests to the Algolia REST API.
784
781
  *
785
- * @summary Send requests to the Algolia REST API.
786
782
  * @param customDelete - The customDelete object.
787
783
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
788
784
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -792,7 +788,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
792
788
  if (!path) {
793
789
  throw new Error('Parameter `path` is required when calling `customDelete`.');
794
790
  }
795
- const requestPath = '/1{path}'.replace('{path}', path);
791
+ const requestPath = '/{path}'.replace('{path}', path);
796
792
  const headers = {};
797
793
  const queryParameters = parameters ? parameters : {};
798
794
  const request = {
@@ -806,7 +802,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
806
802
  /**
807
803
  * This method allow you to send requests to the Algolia REST API.
808
804
  *
809
- * @summary Send requests to the Algolia REST API.
810
805
  * @param customGet - The customGet object.
811
806
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
812
807
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -816,7 +811,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
816
811
  if (!path) {
817
812
  throw new Error('Parameter `path` is required when calling `customGet`.');
818
813
  }
819
- const requestPath = '/1{path}'.replace('{path}', path);
814
+ const requestPath = '/{path}'.replace('{path}', path);
820
815
  const headers = {};
821
816
  const queryParameters = parameters ? parameters : {};
822
817
  const request = {
@@ -830,7 +825,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
830
825
  /**
831
826
  * This method allow you to send requests to the Algolia REST API.
832
827
  *
833
- * @summary Send requests to the Algolia REST API.
834
828
  * @param customPost - The customPost object.
835
829
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
836
830
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -841,7 +835,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
841
835
  if (!path) {
842
836
  throw new Error('Parameter `path` is required when calling `customPost`.');
843
837
  }
844
- const requestPath = '/1{path}'.replace('{path}', path);
838
+ const requestPath = '/{path}'.replace('{path}', path);
845
839
  const headers = {};
846
840
  const queryParameters = parameters ? parameters : {};
847
841
  const request = {
@@ -856,7 +850,6 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
856
850
  /**
857
851
  * This method allow you to send requests to the Algolia REST API.
858
852
  *
859
- * @summary Send requests to the Algolia REST API.
860
853
  * @param customPut - The customPut object.
861
854
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
862
855
  * @param customPut.parameters - Query parameters to apply to the current query.
@@ -867,7 +860,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
867
860
  if (!path) {
868
861
  throw new Error('Parameter `path` is required when calling `customPut`.');
869
862
  }
870
- const requestPath = '/1{path}'.replace('{path}', path);
863
+ const requestPath = '/{path}'.replace('{path}', path);
871
864
  const headers = {};
872
865
  const queryParameters = parameters ? parameters : {};
873
866
  const request = {
@@ -880,13 +873,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
880
873
  return transporter.request(request, requestOptions);
881
874
  },
882
875
  /**
883
- * Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
876
+ * Deletes a Recommend rule from a recommendation scenario.
877
+ *
878
+ * Required API Key ACLs:
879
+ * - editSettings.
884
880
  *
885
- * @summary Delete a Recommend rule.
886
881
  * @param deleteRecommendRule - The deleteRecommendRule object.
887
- * @param deleteRecommendRule.indexName - Index on which to perform the request.
888
- * @param deleteRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
889
- * @param deleteRecommendRule.objectID - Unique record (object) identifier.
882
+ * @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.
883
+ * @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
884
+ * @param deleteRecommendRule.objectID - Unique record identifier.
890
885
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
891
886
  */
892
887
  deleteRecommendRule({ indexName, model, objectID }, requestOptions) {
@@ -914,13 +909,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
914
909
  return transporter.request(request, requestOptions);
915
910
  },
916
911
  /**
917
- * Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
912
+ * Retrieves a Recommend rule that you previously created in the Algolia dashboard.
913
+ *
914
+ * Required API Key ACLs:
915
+ * - settings.
918
916
  *
919
- * @summary Get a Recommend rule.
920
917
  * @param getRecommendRule - The getRecommendRule object.
921
- * @param getRecommendRule.indexName - Index on which to perform the request.
922
- * @param getRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
923
- * @param getRecommendRule.objectID - Unique record (object) identifier.
918
+ * @param getRecommendRule.indexName - Name of the index on which to perform the operation.
919
+ * @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
920
+ * @param getRecommendRule.objectID - Unique record identifier.
924
921
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
925
922
  */
926
923
  getRecommendRule({ indexName, model, objectID }, requestOptions) {
@@ -948,13 +945,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
948
945
  return transporter.request(request, requestOptions);
949
946
  },
950
947
  /**
951
- * Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.
948
+ * Checks the status of a given task. Deleting a Recommend rule is asynchronous. When you delete a rule, a task is created on a queue and completed depending on the load on the server. The API response includes a task ID that you can use to check the status.
949
+ *
950
+ * Required API Key ACLs:
951
+ * - editSettings.
952
952
  *
953
- * @summary Get a Recommend task\'s status.
954
953
  * @param getRecommendStatus - The getRecommendStatus object.
955
- * @param getRecommendStatus.indexName - Index on which to perform the request.
956
- * @param getRecommendStatus.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
957
- * @param getRecommendStatus.taskID - Unique identifier of a task. Numeric value (up to 64bits).
954
+ * @param getRecommendStatus.indexName - Name of the index on which to perform the operation.
955
+ * @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
956
+ * @param getRecommendStatus.taskID - Unique task identifier.
958
957
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
959
958
  */
960
959
  getRecommendStatus({ indexName, model, taskID }, requestOptions) {
@@ -982,9 +981,11 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
982
981
  return transporter.request(request, requestOptions);
983
982
  },
984
983
  /**
985
- * Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).
984
+ * Retrieves recommendations from selected AI models.
985
+ *
986
+ * Required API Key ACLs:
987
+ * - search.
986
988
  *
987
- * @summary Get recommendations and trending items.
988
989
  * @param getRecommendationsParams - The getRecommendationsParams object.
989
990
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
990
991
  */
@@ -1010,12 +1011,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1010
1011
  return transporter.request(request, requestOptions);
1011
1012
  },
1012
1013
  /**
1013
- * List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
1014
+ * Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.
1015
+ *
1016
+ * Required API Key ACLs:
1017
+ * - settings.
1014
1018
  *
1015
- * @summary List Recommend rules.
1016
1019
  * @param searchRecommendRules - The searchRecommendRules object.
1017
- * @param searchRecommendRules.indexName - Index on which to perform the request.
1018
- * @param searchRecommendRules.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
1020
+ * @param searchRecommendRules.indexName - Name of the index on which to perform the operation.
1021
+ * @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
1019
1022
  * @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.
1020
1023
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1021
1024
  */
@@ -1046,6 +1049,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1046
1049
  }
1047
1050
 
1048
1051
  // 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.
1052
+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
1049
1053
  function recommendClient(appId, apiKey, options) {
1050
1054
  if (!appId || typeof appId !== 'string') {
1051
1055
  throw new Error('`appId` is missing.');