@algolia/recommend 5.0.0-alpha.110 → 5.0.0-alpha.111

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 (186) hide show
  1. package/dist/builds/browser.d.ts +1 -1
  2. package/dist/builds/node.d.ts +1 -1
  3. package/dist/model/autoFacetFilter.d.ts +14 -0
  4. package/dist/model/autoFacetFilter.d.ts.map +1 -0
  5. package/dist/model/baseRecommendRequest.d.ts +5 -3
  6. package/dist/model/baseRecommendRequest.d.ts.map +1 -1
  7. package/dist/model/baseSearchParamsWithoutQuery.d.ts +1 -1
  8. package/dist/model/boughtTogetherQuery.d.ts +4 -0
  9. package/dist/model/boughtTogetherQuery.d.ts.map +1 -0
  10. package/dist/model/clientMethodProps.d.ts +5 -5
  11. package/dist/model/condition.d.ts +5 -12
  12. package/dist/model/condition.d.ts.map +1 -1
  13. package/dist/model/consequence.d.ts +9 -17
  14. package/dist/model/consequence.d.ts.map +1 -1
  15. package/dist/model/deletedAtResponse.d.ts +1 -1
  16. package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
  17. package/dist/model/fallbackParams.d.ts +3 -0
  18. package/dist/model/fallbackParams.d.ts.map +1 -0
  19. package/dist/model/fbtModel.d.ts +5 -0
  20. package/dist/model/fbtModel.d.ts.map +1 -0
  21. package/dist/model/frequentlyBoughtTogether.d.ts +9 -0
  22. package/dist/model/frequentlyBoughtTogether.d.ts.map +1 -0
  23. package/dist/model/getRecommendationsParams.d.ts +2 -2
  24. package/dist/model/hideConsequenceObject.d.ts +10 -0
  25. package/dist/model/hideConsequenceObject.d.ts.map +1 -0
  26. package/dist/model/index.d.ts +20 -23
  27. package/dist/model/index.d.ts.map +1 -1
  28. package/dist/model/indexSettingsAsSearchParams.d.ts +5 -5
  29. package/dist/model/lookingSimilar.d.ts +11 -0
  30. package/dist/model/lookingSimilar.d.ts.map +1 -0
  31. package/dist/model/lookingSimilarModel.d.ts +5 -0
  32. package/dist/model/lookingSimilarModel.d.ts.map +1 -0
  33. package/dist/model/lookingSimilarQuery.d.ts +4 -0
  34. package/dist/model/lookingSimilarQuery.d.ts.map +1 -0
  35. package/dist/model/paramsConsequence.d.ts +19 -0
  36. package/dist/model/paramsConsequence.d.ts.map +1 -0
  37. package/dist/model/promoteConsequenceObject.d.ts +14 -0
  38. package/dist/model/promoteConsequenceObject.d.ts.map +1 -0
  39. package/dist/model/recommendRule.d.ts +24 -0
  40. package/dist/model/recommendRule.d.ts.map +1 -0
  41. package/dist/model/recommendRuleMetadata.d.ts +10 -0
  42. package/dist/model/recommendRuleMetadata.d.ts.map +1 -0
  43. package/dist/model/recommendationsHits.d.ts +0 -8
  44. package/dist/model/recommendationsHits.d.ts.map +1 -1
  45. package/dist/model/recommendationsRequest.d.ts +4 -2
  46. package/dist/model/recommendationsRequest.d.ts.map +1 -1
  47. package/dist/model/recommendedForYou.d.ts +7 -0
  48. package/dist/model/recommendedForYou.d.ts.map +1 -0
  49. package/dist/model/recommendedForYouModel.d.ts +1 -1
  50. package/dist/model/recommendedForYouQuery.d.ts +2 -2
  51. package/dist/model/recommendedForYouQuery.d.ts.map +1 -1
  52. package/dist/model/relatedModel.d.ts +5 -0
  53. package/dist/model/relatedModel.d.ts.map +1 -0
  54. package/dist/model/relatedProducts.d.ts +11 -0
  55. package/dist/model/relatedProducts.d.ts.map +1 -0
  56. package/dist/model/relatedQuery.d.ts +4 -0
  57. package/dist/model/relatedQuery.d.ts.map +1 -0
  58. package/dist/model/removeWordsIfNoResults.d.ts +1 -1
  59. package/dist/model/searchParams.d.ts +3 -0
  60. package/dist/model/searchParams.d.ts.map +1 -0
  61. package/dist/model/searchRecommendRulesParams.d.ts +16 -4
  62. package/dist/model/searchRecommendRulesParams.d.ts.map +1 -1
  63. package/dist/model/searchRecommendRulesResponse.d.ts +3 -3
  64. package/dist/model/searchRecommendRulesResponse.d.ts.map +1 -1
  65. package/dist/model/sortRemainingBy.d.ts +1 -1
  66. package/dist/model/trendingFacetHit.d.ts +2 -2
  67. package/dist/model/trendingFacets.d.ts +11 -0
  68. package/dist/model/trendingFacets.d.ts.map +1 -0
  69. package/dist/model/trendingFacetsModel.d.ts +1 -1
  70. package/dist/model/trendingFacetsQuery.d.ts +2 -2
  71. package/dist/model/trendingFacetsQuery.d.ts.map +1 -1
  72. package/dist/model/trendingItems.d.ts +15 -0
  73. package/dist/model/trendingItems.d.ts.map +1 -0
  74. package/dist/model/trendingItemsModel.d.ts +1 -1
  75. package/dist/model/trendingItemsQuery.d.ts +2 -2
  76. package/dist/model/trendingItemsQuery.d.ts.map +1 -1
  77. package/dist/recommend.cjs +11 -11
  78. package/dist/recommend.esm.browser.js +11 -11
  79. package/dist/recommend.esm.node.js +11 -11
  80. package/dist/recommend.umd.js +2 -2
  81. package/dist/src/recommendClient.d.ts +13 -13
  82. package/dist/src/recommendClient.d.ts.map +1 -1
  83. package/model/autoFacetFilter.ts +16 -0
  84. package/model/baseRecommendRequest.ts +7 -3
  85. package/model/baseSearchParamsWithoutQuery.ts +1 -1
  86. package/model/{recommendationsQuery.ts → boughtTogetherQuery.ts} +3 -3
  87. package/model/clientMethodProps.ts +5 -5
  88. package/model/condition.ts +5 -16
  89. package/model/consequence.ts +9 -19
  90. package/model/deletedAtResponse.ts +1 -1
  91. package/model/exactOnSingleWordQuery.ts +1 -1
  92. package/model/{editType.ts → fallbackParams.ts} +3 -4
  93. package/model/fbtModel.ts +6 -0
  94. package/model/{consequenceHide.ts → frequentlyBoughtTogether.ts} +5 -4
  95. package/model/getRecommendationsParams.ts +2 -2
  96. package/model/{promoteObjectID.ts → hideConsequenceObject.ts} +3 -8
  97. package/model/index.ts +20 -23
  98. package/model/indexSettingsAsSearchParams.ts +5 -5
  99. package/model/lookingSimilar.ts +15 -0
  100. package/model/lookingSimilarModel.ts +6 -0
  101. package/model/lookingSimilarQuery.ts +6 -0
  102. package/model/paramsConsequence.ts +23 -0
  103. package/model/promoteConsequenceObject.ts +16 -0
  104. package/model/{ruleResponse.ts → recommendRule.ts} +7 -10
  105. package/model/{ruleResponseMetadata.ts → recommendRuleMetadata.ts} +5 -2
  106. package/model/recommendationsHits.ts +0 -10
  107. package/model/recommendationsRequest.ts +6 -2
  108. package/model/{baseRecommendedForYouQuery.ts → recommendedForYou.ts} +3 -5
  109. package/model/recommendedForYouModel.ts +1 -1
  110. package/model/recommendedForYouQuery.ts +2 -3
  111. package/model/relatedModel.ts +6 -0
  112. package/model/relatedProducts.ts +15 -0
  113. package/model/relatedQuery.ts +6 -0
  114. package/model/removeWordsIfNoResults.ts +1 -1
  115. package/model/{recommendationModels.ts → searchParams.ts} +3 -4
  116. package/model/searchRecommendRulesParams.ts +19 -4
  117. package/model/searchRecommendRulesResponse.ts +3 -3
  118. package/model/sortRemainingBy.ts +1 -1
  119. package/model/trendingFacetHit.ts +2 -2
  120. package/model/{baseTrendingFacetsQuery.ts → trendingFacets.ts} +7 -4
  121. package/model/trendingFacetsModel.ts +1 -1
  122. package/model/trendingFacetsQuery.ts +2 -3
  123. package/model/trendingItems.ts +20 -0
  124. package/model/trendingItemsModel.ts +1 -1
  125. package/model/trendingItemsQuery.ts +2 -2
  126. package/package.json +7 -7
  127. package/dist/model/anchoring.d.ts +0 -5
  128. package/dist/model/anchoring.d.ts.map +0 -1
  129. package/dist/model/automaticFacetFilter.d.ts +0 -18
  130. package/dist/model/automaticFacetFilter.d.ts.map +0 -1
  131. package/dist/model/automaticFacetFilters.d.ts +0 -6
  132. package/dist/model/automaticFacetFilters.d.ts.map +0 -1
  133. package/dist/model/baseRecommendationsQuery.d.ts +0 -12
  134. package/dist/model/baseRecommendationsQuery.d.ts.map +0 -1
  135. package/dist/model/baseRecommendedForYouQuery.d.ts +0 -8
  136. package/dist/model/baseRecommendedForYouQuery.d.ts.map +0 -1
  137. package/dist/model/baseRecommendedForYouQueryParameters.d.ts +0 -7
  138. package/dist/model/baseRecommendedForYouQueryParameters.d.ts.map +0 -1
  139. package/dist/model/baseTrendingFacetsQuery.d.ts +0 -9
  140. package/dist/model/baseTrendingFacetsQuery.d.ts.map +0 -1
  141. package/dist/model/baseTrendingItemsQuery.d.ts +0 -16
  142. package/dist/model/baseTrendingItemsQuery.d.ts.map +0 -1
  143. package/dist/model/consequenceHide.d.ts +0 -10
  144. package/dist/model/consequenceHide.d.ts.map +0 -1
  145. package/dist/model/consequenceParams.d.ts +0 -5
  146. package/dist/model/consequenceParams.d.ts.map +0 -1
  147. package/dist/model/consequenceQuery.d.ts +0 -6
  148. package/dist/model/consequenceQuery.d.ts.map +0 -1
  149. package/dist/model/consequenceQueryObject.d.ts +0 -12
  150. package/dist/model/consequenceQueryObject.d.ts.map +0 -1
  151. package/dist/model/edit.d.ts +0 -13
  152. package/dist/model/edit.d.ts.map +0 -1
  153. package/dist/model/editType.d.ts +0 -5
  154. package/dist/model/editType.d.ts.map +0 -1
  155. package/dist/model/params.d.ts +0 -13
  156. package/dist/model/params.d.ts.map +0 -1
  157. package/dist/model/promote.d.ts +0 -4
  158. package/dist/model/promote.d.ts.map +0 -1
  159. package/dist/model/promoteObjectID.d.ts +0 -14
  160. package/dist/model/promoteObjectID.d.ts.map +0 -1
  161. package/dist/model/promoteObjectIDs.d.ts +0 -14
  162. package/dist/model/promoteObjectIDs.d.ts.map +0 -1
  163. package/dist/model/recommendationModels.d.ts +0 -5
  164. package/dist/model/recommendationModels.d.ts.map +0 -1
  165. package/dist/model/recommendationsQuery.d.ts +0 -4
  166. package/dist/model/recommendationsQuery.d.ts.map +0 -1
  167. package/dist/model/recommendedForYouQueryParameters.d.ts +0 -4
  168. package/dist/model/recommendedForYouQueryParameters.d.ts.map +0 -1
  169. package/dist/model/ruleResponse.d.ts +0 -27
  170. package/dist/model/ruleResponse.d.ts.map +0 -1
  171. package/dist/model/ruleResponseMetadata.d.ts +0 -7
  172. package/dist/model/ruleResponseMetadata.d.ts.map +0 -1
  173. package/model/anchoring.ts +0 -6
  174. package/model/automaticFacetFilter.ts +0 -21
  175. package/model/automaticFacetFilters.ts +0 -8
  176. package/model/baseRecommendationsQuery.ts +0 -17
  177. package/model/baseRecommendedForYouQueryParameters.ts +0 -8
  178. package/model/baseTrendingItemsQuery.ts +0 -22
  179. package/model/consequenceParams.ts +0 -9
  180. package/model/consequenceQuery.ts +0 -8
  181. package/model/consequenceQueryObject.ts +0 -15
  182. package/model/edit.ts +0 -17
  183. package/model/params.ts +0 -18
  184. package/model/promote.ts +0 -6
  185. package/model/promoteObjectIDs.ts +0 -16
  186. package/model/recommendedForYouQueryParameters.ts +0 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommendRuleMetadata.d.ts","sourceRoot":"","sources":["../../model/recommendRuleMetadata.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1,13 +1,5 @@
1
1
  import type { RecommendationsHit } from './recommendationsHit';
2
2
  export type RecommendationsHits = {
3
3
  hits: RecommendationsHit[];
4
- /**
5
- * Search query.
6
- */
7
- query?: string;
8
- /**
9
- * URL-encoded string of all search parameters.
10
- */
11
- params?: string;
12
4
  };
13
5
  //# sourceMappingURL=recommendationsHits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendationsHits.d.ts","sourceRoot":"","sources":["../../model/recommendationsHits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"recommendationsHits.d.ts","sourceRoot":"","sources":["../../model/recommendationsHits.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,kBAAkB,EAAE,CAAC;CAC5B,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { RecommendationsQuery } from './recommendationsQuery';
1
+ import type { BoughtTogetherQuery } from './boughtTogetherQuery';
2
+ import type { LookingSimilarQuery } from './lookingSimilarQuery';
2
3
  import type { RecommendedForYouQuery } from './recommendedForYouQuery';
4
+ import type { RelatedQuery } from './relatedQuery';
3
5
  import type { TrendingFacetsQuery } from './trendingFacetsQuery';
4
6
  import type { TrendingItemsQuery } from './trendingItemsQuery';
5
- export type RecommendationsRequest = RecommendationsQuery | RecommendedForYouQuery | TrendingFacetsQuery | TrendingItemsQuery;
7
+ export type RecommendationsRequest = BoughtTogetherQuery | LookingSimilarQuery | RecommendedForYouQuery | RelatedQuery | TrendingFacetsQuery | TrendingItemsQuery;
6
8
  //# sourceMappingURL=recommendationsRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendationsRequest.d.ts","sourceRoot":"","sources":["../../model/recommendationsRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAC9B,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,kBAAkB,CAAC"}
1
+ {"version":3,"file":"recommendationsRequest.d.ts","sourceRoot":"","sources":["../../model/recommendationsRequest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAC9B,mBAAmB,GACnB,mBAAmB,GACnB,sBAAsB,GACtB,YAAY,GACZ,mBAAmB,GACnB,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { FallbackParams } from './fallbackParams';
2
+ import type { RecommendedForYouModel } from './recommendedForYouModel';
3
+ export type RecommendedForYou = {
4
+ model: RecommendedForYouModel;
5
+ fallbackParameters?: FallbackParams;
6
+ };
7
+ //# sourceMappingURL=recommendedForYou.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommendedForYou.d.ts","sourceRoot":"","sources":["../../model/recommendedForYou.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,sBAAsB,CAAC;IAE9B,kBAAkB,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Recommended for you model.
2
+ * \"Recommened for you\" model.
3
3
  */
4
4
  export type RecommendedForYouModel = 'recommended-for-you';
5
5
  //# sourceMappingURL=recommendedForYouModel.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import type { BaseRecommendRequest } from './baseRecommendRequest';
2
- import type { BaseRecommendedForYouQuery } from './baseRecommendedForYouQuery';
3
- export type RecommendedForYouQuery = BaseRecommendedForYouQuery & BaseRecommendRequest;
2
+ import type { RecommendedForYou } from './recommendedForYou';
3
+ export type RecommendedForYouQuery = BaseRecommendRequest & RecommendedForYou;
4
4
  //# sourceMappingURL=recommendedForYouQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recommendedForYouQuery.d.ts","sourceRoot":"","sources":["../../model/recommendedForYouQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAC7D,oBAAoB,CAAC"}
1
+ {"version":3,"file":"recommendedForYouQuery.d.ts","sourceRoot":"","sources":["../../model/recommendedForYouQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Related products or similar content model. This model recommends items that are similar to the item with the ID `objectID`. Similarity is determined from the user interactions and attributes.
3
+ */
4
+ export type RelatedModel = 'related-products';
5
+ //# sourceMappingURL=relatedModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relatedModel.d.ts","sourceRoot":"","sources":["../../model/relatedModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { FallbackParams } from './fallbackParams';
2
+ import type { RelatedModel } from './relatedModel';
3
+ export type RelatedProducts = {
4
+ model: RelatedModel;
5
+ /**
6
+ * Unique record identifier.
7
+ */
8
+ objectID: string;
9
+ fallbackParameters?: FallbackParams;
10
+ };
11
+ //# sourceMappingURL=relatedProducts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relatedProducts.d.ts","sourceRoot":"","sources":["../../model/relatedProducts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { BaseRecommendRequest } from './baseRecommendRequest';
2
+ import type { RelatedProducts } from './relatedProducts';
3
+ export type RelatedQuery = BaseRecommendRequest & RelatedProducts;
4
+ //# sourceMappingURL=relatedQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relatedQuery.d.ts","sourceRoot":"","sources":["../../model/relatedQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG,eAAe,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Strategy for removing words from the query when it doesn\'t return any results. This helps to avoid returning empty search results. <dl> <dt><code>none</code></dt> <dd>No words are removed when a query doesn\'t return results.</dd> <dt><code>lastWords</code></dt> <dd>Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed.</dd> <dt><code>firstWords</code></dt> <dd>Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed.</dd> <dt><code>allOptional</code></dt> <dd>Treat all words as optional.</dd> </dl> For more information, see [Remove words to improve results](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/).
2
+ * Strategy for removing words from the query when it doesn\'t return any results. This helps to avoid returning empty search results. - `none`. No words are removed when a query doesn\'t return results. - `lastWords`. Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed. - `firstWords`. Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed. - `allOptional`. Treat all words as optional. For more information, see [Remove words to improve results](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/).
3
3
  */
4
4
  export type RemoveWordsIfNoResults = 'allOptional' | 'firstWords' | 'lastWords' | 'none';
5
5
  //# sourceMappingURL=removeWordsIfNoResults.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { SearchParamsObject } from './searchParamsObject';
2
+ export type SearchParams = Record<string, any> & SearchParamsObject;
3
+ //# sourceMappingURL=searchParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchParams.d.ts","sourceRoot":"","sources":["../../model/searchParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Recommend rules search parameters.
2
+ * Recommend rules parameters.
3
3
  */
4
4
  export type SearchRecommendRulesParams = {
5
5
  /**
@@ -7,7 +7,7 @@ export type SearchRecommendRulesParams = {
7
7
  */
8
8
  query?: string;
9
9
  /**
10
- * 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).
10
+ * Only search for rules with matching context.
11
11
  */
12
12
  context?: string;
13
13
  /**
@@ -19,8 +19,20 @@ export type SearchRecommendRulesParams = {
19
19
  */
20
20
  hitsPerPage?: number;
21
21
  /**
22
- * Restricts responses to enabled rules. When absent (default), _all_ rules are retrieved.
22
+ * Whether to only show rules where the value of their `enabled` property matches this parameter. If absent, show all rules, regardless of their `enabled` property.
23
23
  */
24
- enabled?: boolean | null;
24
+ enabled?: boolean;
25
+ /**
26
+ * Filter expression. This only searches for rules matching the filter expression.
27
+ */
28
+ filters?: string;
29
+ /**
30
+ * Include facets and facet values in the response. Use `[\'*\']` to include all facets.
31
+ */
32
+ facets?: string[];
33
+ /**
34
+ * Maximum number of values to return for each facet.
35
+ */
36
+ maxValuesPerFacet?: number;
25
37
  };
26
38
  //# sourceMappingURL=searchRecommendRulesParams.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchRecommendRulesParams.d.ts","sourceRoot":"","sources":["../../model/searchRecommendRulesParams.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B,CAAC"}
1
+ {"version":3,"file":"searchRecommendRulesParams.d.ts","sourceRoot":"","sources":["../../model/searchRecommendRulesParams.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -1,9 +1,9 @@
1
- import type { RuleResponse } from './ruleResponse';
1
+ import type { RecommendRule } from './recommendRule';
2
2
  export type SearchRecommendRulesResponse = {
3
3
  /**
4
- * Fetched rules.
4
+ * Recommend rules that match the search criteria.
5
5
  */
6
- hits: RuleResponse[];
6
+ hits: RecommendRule[];
7
7
  /**
8
8
  * Number of results (hits).
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"searchRecommendRulesResponse.d.ts","sourceRoot":"","sources":["../../model/searchRecommendRulesResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,IAAI,EAAE,YAAY,EAAE,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"searchRecommendRulesResponse.d.ts","sourceRoot":"","sources":["../../model/searchRecommendRulesResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,IAAI,EAAE,aAAa,EAAE,CAAC;IAEtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Order of facet values that aren\'t explicitly positioned with the `order` setting. <dl> <dt><code>count</code></dt> <dd> Order remaining facet values by decreasing count. The count is the number of matching records containing this facet value. </dd> <dt><code>alpha</code></dt> <dd>Sort facet values alphabetically.</dd> <dt><code>hidden</code></dt> <dd>Don\'t show facet values that aren\'t explicitly positioned.</dd> </dl>.
2
+ * Order of facet values that aren\'t explicitly positioned with the `order` setting. - `count`. Order remaining facet values by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Sort facet values alphabetically. - `hidden`. Don\'t show facet values that aren\'t explicitly positioned.
3
3
  */
4
4
  export type SortRemainingBy = 'alpha' | 'count' | 'hidden';
5
5
  //# sourceMappingURL=sortRemainingBy.d.ts.map
@@ -7,11 +7,11 @@ export type TrendingFacetHit = {
7
7
  */
8
8
  _score: number;
9
9
  /**
10
- * Facet name for trending models.
10
+ * Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
11
11
  */
12
12
  facetName: string;
13
13
  /**
14
- * Facet value for trending models.
14
+ * Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
15
15
  */
16
16
  facetValue: string;
17
17
  };
@@ -0,0 +1,11 @@
1
+ import type { FallbackParams } from './fallbackParams';
2
+ import type { TrendingFacetsModel } from './trendingFacetsModel';
3
+ export type TrendingFacets = {
4
+ /**
5
+ * Facet attribute for which to retrieve trending facet values.
6
+ */
7
+ facetName: any | null;
8
+ model: TrendingFacetsModel;
9
+ fallbackParameters?: FallbackParams;
10
+ };
11
+ //# sourceMappingURL=trendingFacets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trendingFacets.d.ts","sourceRoot":"","sources":["../../model/trendingFacets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,SAAS,EAAE,GAAG,GAAG,IAAI,CAAC;IAEtB,KAAK,EAAE,mBAAmB,CAAC;IAE3B,kBAAkB,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Trending facets model.
2
+ * Trending facet values model. This model recommends trending facet values for the specified facet attribute.
3
3
  */
4
4
  export type TrendingFacetsModel = 'trending-facets';
5
5
  //# sourceMappingURL=trendingFacetsModel.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import type { BaseRecommendRequest } from './baseRecommendRequest';
2
- import type { BaseTrendingFacetsQuery } from './baseTrendingFacetsQuery';
3
- export type TrendingFacetsQuery = BaseRecommendRequest & BaseTrendingFacetsQuery;
2
+ import type { TrendingFacets } from './trendingFacets';
3
+ export type TrendingFacetsQuery = BaseRecommendRequest & TrendingFacets;
4
4
  //# sourceMappingURL=trendingFacetsQuery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trendingFacetsQuery.d.ts","sourceRoot":"","sources":["../../model/trendingFacetsQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GACpD,uBAAuB,CAAC"}
1
+ {"version":3,"file":"trendingFacetsQuery.d.ts","sourceRoot":"","sources":["../../model/trendingFacetsQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG,cAAc,CAAC"}
@@ -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"}
@@ -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.110';
7
+ const apiClientVersion = '5.0.0-alpha.111';
8
8
  function getDefaultHosts(appId) {
9
9
  return [
10
10
  {
@@ -183,14 +183,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
183
183
  return transporter.request(request, requestOptions);
184
184
  },
185
185
  /**
186
- * 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
187
  *
188
188
  * Required API Key ACLs:
189
189
  * - editSettings.
190
190
  *
191
191
  * @param deleteRecommendRule - The deleteRecommendRule object.
192
192
  * @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.
193
- * @param deleteRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
193
+ * @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
194
194
  * @param deleteRecommendRule.objectID - Unique record identifier.
195
195
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
196
196
  */
@@ -219,14 +219,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
219
219
  return transporter.request(request, requestOptions);
220
220
  },
221
221
  /**
222
- * 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
223
  *
224
224
  * Required API Key ACLs:
225
225
  * - settings.
226
226
  *
227
227
  * @param getRecommendRule - The getRecommendRule object.
228
228
  * @param getRecommendRule.indexName - Name of the index on which to perform the operation.
229
- * @param getRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
229
+ * @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
230
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
  */
@@ -255,15 +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
259
  *
260
260
  * Required API Key ACLs:
261
261
  * - editSettings.
262
262
  *
263
263
  * @param getRecommendStatus - The getRecommendStatus object.
264
264
  * @param getRecommendStatus.indexName - Name of the index on which to perform the operation.
265
- * @param getRecommendStatus.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
266
- * @param getRecommendStatus.taskID - Unique identifier of a task. Numeric value (up to 64bits).
265
+ * @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
266
+ * @param getRecommendStatus.taskID - Unique task identifier.
267
267
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
268
268
  */
269
269
  getRecommendStatus({ indexName, model, taskID }, requestOptions) {
@@ -291,7 +291,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
291
291
  return transporter.request(request, requestOptions);
292
292
  },
293
293
  /**
294
- * 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
295
  *
296
296
  * Required API Key ACLs:
297
297
  * - search.
@@ -321,14 +321,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
321
321
  return transporter.request(request, requestOptions);
322
322
  },
323
323
  /**
324
- * 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
325
  *
326
326
  * Required API Key ACLs:
327
327
  * - settings.
328
328
  *
329
329
  * @param searchRecommendRules - The searchRecommendRules object.
330
330
  * @param searchRecommendRules.indexName - Name of the index on which to perform the operation.
331
- * @param searchRecommendRules.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
331
+ * @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
332
332
  * @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.
333
333
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
334
334
  */
@@ -697,7 +697,7 @@ function createXhrRequester() {
697
697
  }
698
698
 
699
699
  // 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.110';
700
+ const apiClientVersion = '5.0.0-alpha.111';
701
701
  function getDefaultHosts(appId) {
702
702
  return [
703
703
  {
@@ -876,14 +876,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
876
876
  return transporter.request(request, requestOptions);
877
877
  },
878
878
  /**
879
- * Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
879
+ * Deletes a Recommend rule from a recommendation scenario.
880
880
  *
881
881
  * Required API Key ACLs:
882
882
  * - editSettings.
883
883
  *
884
884
  * @param deleteRecommendRule - The deleteRecommendRule object.
885
885
  * @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.
886
- * @param deleteRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
886
+ * @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
887
887
  * @param deleteRecommendRule.objectID - Unique record identifier.
888
888
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
889
889
  */
@@ -912,14 +912,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
912
912
  return transporter.request(request, requestOptions);
913
913
  },
914
914
  /**
915
- * Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
915
+ * Retrieves a Recommend rule that you previously created in the Algolia dashboard.
916
916
  *
917
917
  * Required API Key ACLs:
918
918
  * - settings.
919
919
  *
920
920
  * @param getRecommendRule - The getRecommendRule object.
921
921
  * @param getRecommendRule.indexName - Name of the index on which to perform the operation.
922
- * @param getRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
922
+ * @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
923
923
  * @param getRecommendRule.objectID - Unique record identifier.
924
924
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
925
925
  */
@@ -948,15 +948,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
948
948
  return transporter.request(request, requestOptions);
949
949
  },
950
950
  /**
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.
951
+ * 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.
952
952
  *
953
953
  * Required API Key ACLs:
954
954
  * - editSettings.
955
955
  *
956
956
  * @param getRecommendStatus - The getRecommendStatus object.
957
957
  * @param getRecommendStatus.indexName - Name of the index on which to perform the operation.
958
- * @param getRecommendStatus.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
959
- * @param getRecommendStatus.taskID - Unique identifier of a task. Numeric value (up to 64bits).
958
+ * @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
959
+ * @param getRecommendStatus.taskID - Unique task identifier.
960
960
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
961
961
  */
962
962
  getRecommendStatus({ indexName, model, taskID }, requestOptions) {
@@ -984,7 +984,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
984
984
  return transporter.request(request, requestOptions);
985
985
  },
986
986
  /**
987
- * 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).
987
+ * Retrieves recommendations from selected AI models.
988
988
  *
989
989
  * Required API Key ACLs:
990
990
  * - search.
@@ -1014,14 +1014,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1014
1014
  return transporter.request(request, requestOptions);
1015
1015
  },
1016
1016
  /**
1017
- * List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
1017
+ * Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.
1018
1018
  *
1019
1019
  * Required API Key ACLs:
1020
1020
  * - settings.
1021
1021
  *
1022
1022
  * @param searchRecommendRules - The searchRecommendRules object.
1023
1023
  * @param searchRecommendRules.indexName - Name of the index on which to perform the operation.
1024
- * @param searchRecommendRules.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
1024
+ * @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
1025
1025
  * @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.
1026
1026
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1027
1027
  */
@@ -2,7 +2,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, shuffle, DEFAULT_CONNEC
2
2
  import { createHttpRequester } from '@algolia/requester-node-http';
3
3
 
4
4
  // 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.
5
- const apiClientVersion = '5.0.0-alpha.110';
5
+ const apiClientVersion = '5.0.0-alpha.111';
6
6
  function getDefaultHosts(appId) {
7
7
  return [
8
8
  {
@@ -181,14 +181,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
181
181
  return transporter.request(request, requestOptions);
182
182
  },
183
183
  /**
184
- * Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
184
+ * Deletes a Recommend rule from a recommendation scenario.
185
185
  *
186
186
  * Required API Key ACLs:
187
187
  * - editSettings.
188
188
  *
189
189
  * @param deleteRecommendRule - The deleteRecommendRule object.
190
190
  * @param deleteRecommendRule.indexName - Name of the index on which to perform the operation.
191
- * @param deleteRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
191
+ * @param deleteRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
192
192
  * @param deleteRecommendRule.objectID - Unique record identifier.
193
193
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
194
194
  */
@@ -217,14 +217,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
217
217
  return transporter.request(request, requestOptions);
218
218
  },
219
219
  /**
220
- * Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
220
+ * Retrieves a Recommend rule that you previously created in the Algolia dashboard.
221
221
  *
222
222
  * Required API Key ACLs:
223
223
  * - settings.
224
224
  *
225
225
  * @param getRecommendRule - The getRecommendRule object.
226
226
  * @param getRecommendRule.indexName - Name of the index on which to perform the operation.
227
- * @param getRecommendRule.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
227
+ * @param getRecommendRule.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
228
228
  * @param getRecommendRule.objectID - Unique record identifier.
229
229
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
230
230
  */
@@ -253,15 +253,15 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
253
253
  return transporter.request(request, requestOptions);
254
254
  },
255
255
  /**
256
- * 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.
256
+ * 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.
257
257
  *
258
258
  * Required API Key ACLs:
259
259
  * - editSettings.
260
260
  *
261
261
  * @param getRecommendStatus - The getRecommendStatus object.
262
262
  * @param getRecommendStatus.indexName - Name of the index on which to perform the operation.
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).
263
+ * @param getRecommendStatus.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
264
+ * @param getRecommendStatus.taskID - Unique task identifier.
265
265
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
266
266
  */
267
267
  getRecommendStatus({ indexName, model, taskID }, requestOptions) {
@@ -289,7 +289,7 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
289
289
  return transporter.request(request, requestOptions);
290
290
  },
291
291
  /**
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).
292
+ * Retrieves recommendations from selected AI models.
293
293
  *
294
294
  * Required API Key ACLs:
295
295
  * - search.
@@ -319,14 +319,14 @@ function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authM
319
319
  return transporter.request(request, requestOptions);
320
320
  },
321
321
  /**
322
- * List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).
322
+ * Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.
323
323
  *
324
324
  * Required API Key ACLs:
325
325
  * - settings.
326
326
  *
327
327
  * @param searchRecommendRules - The searchRecommendRules object.
328
328
  * @param searchRecommendRules.indexName - Name of the index on which to perform the operation.
329
- * @param searchRecommendRules.model - [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
329
+ * @param searchRecommendRules.model - [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models).
330
330
  * @param searchRecommendRules.searchRecommendRulesParams - The searchRecommendRulesParams object.
331
331
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
332
332
  */