algoliasearch 5.0.0-alpha.105 → 5.0.0-alpha.107

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 (297) hide show
  1. package/dist/algoliasearch/builds/browser.d.ts +2 -2
  2. package/dist/algoliasearch/builds/node.d.ts +2 -2
  3. package/dist/algoliasearch.cjs +191 -191
  4. package/dist/algoliasearch.esm.browser.js +191 -191
  5. package/dist/algoliasearch.esm.node.js +191 -191
  6. package/dist/algoliasearch.umd.js +2 -2
  7. package/dist/client-abtesting/model/aBTestResponse.d.ts +1 -1
  8. package/dist/client-abtesting/model/clientMethodProps.d.ts +2 -2
  9. package/dist/client-abtesting/src/abtestingClient.d.ts +3 -3
  10. package/dist/client-analytics/model/clientMethodProps.d.ts +65 -65
  11. package/dist/client-analytics/model/searchNoResultEvent.d.ts +1 -1
  12. package/dist/client-analytics/model/topSearch.d.ts +1 -1
  13. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +1 -1
  14. package/dist/client-analytics/src/analyticsClient.d.ts +66 -66
  15. package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
  16. package/dist/client-search/model/acl.d.ts +1 -1
  17. package/dist/client-search/model/action.d.ts +1 -1
  18. package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
  19. package/dist/client-search/model/anchoring.d.ts +1 -1
  20. package/dist/client-search/model/apiKey.d.ts +8 -8
  21. package/dist/client-search/model/aroundPrecision.d.ts +1 -1
  22. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts +9 -0
  23. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  24. package/dist/client-search/model/aroundRadius.d.ts +1 -1
  25. package/dist/client-search/model/aroundRadiusAll.d.ts +3 -0
  26. package/dist/client-search/model/aroundRadiusAll.d.ts.map +1 -1
  27. package/dist/client-search/model/automaticFacetFilter.d.ts +4 -4
  28. package/dist/client-search/model/automaticFacetFilters.d.ts +1 -1
  29. package/dist/client-search/model/baseIndexSettings.d.ts +20 -16
  30. package/dist/client-search/model/baseIndexSettings.d.ts.map +1 -1
  31. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +24 -28
  32. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  33. package/dist/client-search/model/baseSearchResponse.d.ts +6 -6
  34. package/dist/client-search/model/batchDictionaryEntriesParams.d.ts +3 -3
  35. package/dist/client-search/model/batchResponse.d.ts +2 -2
  36. package/dist/client-search/model/builtInOperation.d.ts +2 -2
  37. package/dist/client-search/model/builtInOperationType.d.ts +1 -1
  38. package/dist/client-search/model/clientMethodProps.d.ts +63 -63
  39. package/dist/client-search/model/condition.d.ts +7 -3
  40. package/dist/client-search/model/condition.d.ts.map +1 -1
  41. package/dist/client-search/model/consequence.d.ts +5 -5
  42. package/dist/client-search/model/consequenceHide.d.ts +2 -2
  43. package/dist/client-search/model/consequenceQuery.d.ts +1 -1
  44. package/dist/client-search/model/consequenceQueryObject.d.ts +2 -2
  45. package/dist/client-search/model/createdAtResponse.d.ts +1 -1
  46. package/dist/client-search/model/cursor.d.ts +1 -1
  47. package/dist/client-search/model/deleteByParams.d.ts +4 -4
  48. package/dist/client-search/model/deletedAtResponse.d.ts +1 -1
  49. package/dist/client-search/model/dictionaryEntry.d.ts +5 -5
  50. package/dist/client-search/model/dictionaryEntryState.d.ts +1 -1
  51. package/dist/client-search/model/dictionaryLanguage.d.ts +2 -2
  52. package/dist/client-search/model/dictionarySettingsParams.d.ts +1 -1
  53. package/dist/client-search/model/distinct.d.ts +1 -1
  54. package/dist/client-search/model/edit.d.ts +1 -1
  55. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
  56. package/dist/client-search/model/facetFilters.d.ts +1 -1
  57. package/dist/client-search/model/facetHits.d.ts +2 -2
  58. package/dist/client-search/model/facetOrdering.d.ts +2 -2
  59. package/dist/client-search/model/facets.d.ts +2 -2
  60. package/dist/client-search/model/getObjectsRequest.d.ts +3 -3
  61. package/dist/client-search/model/getObjectsResponse.d.ts +1 -1
  62. package/dist/client-search/model/hasPendingMappingsResponse.d.ts +1 -1
  63. package/dist/client-search/model/highlightResultOption.d.ts +3 -3
  64. package/dist/client-search/model/hit.d.ts +4 -4
  65. package/dist/client-search/model/ignorePlurals.d.ts +1 -1
  66. package/dist/client-search/model/index.d.ts +1 -0
  67. package/dist/client-search/model/index.d.ts.map +1 -1
  68. package/dist/client-search/model/indexSettings.d.ts +1 -1
  69. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +30 -34
  70. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  71. package/dist/client-search/model/log.d.ts +11 -11
  72. package/dist/client-search/model/logQuery.d.ts +1 -1
  73. package/dist/client-search/model/matchLevel.d.ts +1 -1
  74. package/dist/client-search/model/mode.d.ts +1 -1
  75. package/dist/client-search/model/multipleBatchResponse.d.ts +2 -2
  76. package/dist/client-search/model/numericFilters.d.ts +1 -1
  77. package/dist/client-search/model/operationIndexParams.d.ts +2 -2
  78. package/dist/client-search/model/operationType.d.ts +1 -1
  79. package/dist/client-search/model/optionalFilters.d.ts +1 -1
  80. package/dist/client-search/model/params.d.ts +1 -1
  81. package/dist/client-search/model/promoteObjectID.d.ts +2 -2
  82. package/dist/client-search/model/promoteObjectIDs.d.ts +2 -2
  83. package/dist/client-search/model/queryType.d.ts +1 -1
  84. package/dist/client-search/model/rankingInfo.d.ts +10 -7
  85. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  86. package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -1
  87. package/dist/client-search/model/removeStopWords.d.ts +1 -1
  88. package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
  89. package/dist/client-search/model/renderingContent.d.ts +1 -1
  90. package/dist/client-search/model/rule.d.ts +5 -5
  91. package/dist/client-search/model/saveObjectResponse.d.ts +3 -3
  92. package/dist/client-search/model/saveSynonymResponse.d.ts +1 -1
  93. package/dist/client-search/model/searchDictionaryEntriesParams.d.ts +4 -4
  94. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts +20 -0
  95. package/dist/client-search/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  96. package/dist/client-search/model/searchForFacetValuesRequest.d.ts +1 -1
  97. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +3 -0
  98. package/dist/client-search/model/searchForFacetValuesResponse.d.ts.map +1 -1
  99. package/dist/client-search/model/searchForFacetsOptions.d.ts +2 -2
  100. package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
  101. package/dist/client-search/model/searchHits.d.ts +6 -3
  102. package/dist/client-search/model/searchHits.d.ts.map +1 -1
  103. package/dist/client-search/model/searchParamsQuery.d.ts +1 -1
  104. package/dist/client-search/model/searchRulesParams.d.ts +4 -8
  105. package/dist/client-search/model/searchRulesParams.d.ts.map +1 -1
  106. package/dist/client-search/model/searchRulesResponse.d.ts +2 -2
  107. package/dist/client-search/model/searchStrategy.d.ts +1 -1
  108. package/dist/client-search/model/searchSynonymsParams.d.ts +2 -2
  109. package/dist/client-search/model/searchSynonymsResponse.d.ts +2 -2
  110. package/dist/client-search/model/searchUserIdsParams.d.ts +1 -1
  111. package/dist/client-search/model/searchUserIdsResponse.d.ts +2 -2
  112. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +5 -5
  113. package/dist/client-search/model/semanticSearch.d.ts +2 -2
  114. package/dist/client-search/model/snippetResultOption.d.ts +2 -2
  115. package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
  116. package/dist/client-search/model/tagFilters.d.ts +1 -1
  117. package/dist/client-search/model/taskStatus.d.ts +1 -1
  118. package/dist/client-search/model/timeRange.d.ts +2 -2
  119. package/dist/client-search/model/typoTolerance.d.ts +1 -1
  120. package/dist/client-search/model/typoToleranceEnum.d.ts +3 -0
  121. package/dist/client-search/model/typoToleranceEnum.d.ts.map +1 -1
  122. package/dist/client-search/model/updatedAtResponse.d.ts +1 -1
  123. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +2 -2
  124. package/dist/client-search/model/updatedRuleResponse.d.ts +2 -2
  125. package/dist/client-search/model/userHit.d.ts +1 -1
  126. package/dist/client-search/model/userId.d.ts +1 -1
  127. package/dist/client-search/model/value.d.ts +1 -1
  128. package/dist/client-search/src/searchClient.d.ts +124 -123
  129. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  130. package/dist/lite/lite.cjs +3 -3
  131. package/dist/lite/lite.esm.browser.js +3 -3
  132. package/dist/lite/lite.esm.node.js +3 -3
  133. package/dist/lite/lite.umd.js +2 -2
  134. package/dist/lite/model/acl.d.ts +1 -1
  135. package/dist/lite/model/action.d.ts +1 -1
  136. package/dist/lite/model/addApiKeyResponse.d.ts +1 -1
  137. package/dist/lite/model/anchoring.d.ts +1 -1
  138. package/dist/lite/model/apiKey.d.ts +8 -8
  139. package/dist/lite/model/aroundPrecision.d.ts +1 -1
  140. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts +9 -0
  141. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  142. package/dist/lite/model/aroundRadius.d.ts +1 -1
  143. package/dist/lite/model/aroundRadiusAll.d.ts +3 -0
  144. package/dist/lite/model/aroundRadiusAll.d.ts.map +1 -1
  145. package/dist/lite/model/automaticFacetFilter.d.ts +4 -4
  146. package/dist/lite/model/automaticFacetFilters.d.ts +1 -1
  147. package/dist/lite/model/baseIndexSettings.d.ts +20 -16
  148. package/dist/lite/model/baseIndexSettings.d.ts.map +1 -1
  149. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +24 -28
  150. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  151. package/dist/lite/model/baseSearchResponse.d.ts +6 -6
  152. package/dist/lite/model/builtInOperation.d.ts +2 -2
  153. package/dist/lite/model/builtInOperationType.d.ts +1 -1
  154. package/dist/lite/model/condition.d.ts +7 -3
  155. package/dist/lite/model/condition.d.ts.map +1 -1
  156. package/dist/lite/model/consequence.d.ts +5 -5
  157. package/dist/lite/model/consequenceHide.d.ts +2 -2
  158. package/dist/lite/model/consequenceQuery.d.ts +1 -1
  159. package/dist/lite/model/consequenceQueryObject.d.ts +2 -2
  160. package/dist/lite/model/cursor.d.ts +1 -1
  161. package/dist/lite/model/deleteByParams.d.ts +4 -4
  162. package/dist/lite/model/dictionaryEntry.d.ts +5 -5
  163. package/dist/lite/model/dictionaryEntryState.d.ts +1 -1
  164. package/dist/lite/model/dictionaryLanguage.d.ts +2 -2
  165. package/dist/lite/model/distinct.d.ts +1 -1
  166. package/dist/lite/model/edit.d.ts +1 -1
  167. package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
  168. package/dist/lite/model/facetFilters.d.ts +1 -1
  169. package/dist/lite/model/facetHits.d.ts +2 -2
  170. package/dist/lite/model/facetOrdering.d.ts +2 -2
  171. package/dist/lite/model/facets.d.ts +2 -2
  172. package/dist/lite/model/highlightResultOption.d.ts +3 -3
  173. package/dist/lite/model/hit.d.ts +4 -4
  174. package/dist/lite/model/ignorePlurals.d.ts +1 -1
  175. package/dist/lite/model/index.d.ts +1 -0
  176. package/dist/lite/model/index.d.ts.map +1 -1
  177. package/dist/lite/model/indexSettings.d.ts +1 -1
  178. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +30 -34
  179. package/dist/lite/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  180. package/dist/lite/model/matchLevel.d.ts +1 -1
  181. package/dist/lite/model/mode.d.ts +1 -1
  182. package/dist/lite/model/numericFilters.d.ts +1 -1
  183. package/dist/lite/model/operationType.d.ts +1 -1
  184. package/dist/lite/model/optionalFilters.d.ts +1 -1
  185. package/dist/lite/model/params.d.ts +1 -1
  186. package/dist/lite/model/promoteObjectID.d.ts +2 -2
  187. package/dist/lite/model/promoteObjectIDs.d.ts +2 -2
  188. package/dist/lite/model/queryType.d.ts +1 -1
  189. package/dist/lite/model/rankingInfo.d.ts +10 -7
  190. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  191. package/dist/lite/model/reRankingApplyFilter.d.ts +1 -1
  192. package/dist/lite/model/removeStopWords.d.ts +1 -1
  193. package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
  194. package/dist/lite/model/renderingContent.d.ts +1 -1
  195. package/dist/lite/model/rule.d.ts +5 -5
  196. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +20 -0
  197. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  198. package/dist/lite/model/searchForFacetValuesResponse.d.ts +3 -0
  199. package/dist/lite/model/searchForFacetValuesResponse.d.ts.map +1 -1
  200. package/dist/lite/model/searchForFacetsOptions.d.ts +2 -2
  201. package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
  202. package/dist/lite/model/searchHits.d.ts +6 -3
  203. package/dist/lite/model/searchHits.d.ts.map +1 -1
  204. package/dist/lite/model/searchParamsQuery.d.ts +1 -1
  205. package/dist/lite/model/searchStrategy.d.ts +1 -1
  206. package/dist/lite/model/searchSynonymsResponse.d.ts +2 -2
  207. package/dist/lite/model/securedAPIKeyRestrictions.d.ts +5 -5
  208. package/dist/lite/model/semanticSearch.d.ts +2 -2
  209. package/dist/lite/model/snippetResultOption.d.ts +2 -2
  210. package/dist/lite/model/sortRemainingBy.d.ts +1 -1
  211. package/dist/lite/model/tagFilters.d.ts +1 -1
  212. package/dist/lite/model/taskStatus.d.ts +1 -1
  213. package/dist/lite/model/timeRange.d.ts +2 -2
  214. package/dist/lite/model/typoTolerance.d.ts +1 -1
  215. package/dist/lite/model/typoToleranceEnum.d.ts +3 -0
  216. package/dist/lite/model/typoToleranceEnum.d.ts.map +1 -1
  217. package/dist/lite/model/updatedRuleResponse.d.ts +2 -2
  218. package/dist/lite/model/userId.d.ts +1 -1
  219. package/dist/lite/model/value.d.ts +1 -1
  220. package/dist/lite/src/liteClient.d.ts +3 -3
  221. package/dist/lite/src/liteClient.d.ts.map +1 -1
  222. package/lite/model/acl.ts +1 -1
  223. package/lite/model/action.ts +1 -1
  224. package/lite/model/addApiKeyResponse.ts +1 -1
  225. package/lite/model/anchoring.ts +1 -1
  226. package/lite/model/apiKey.ts +8 -8
  227. package/lite/model/aroundPrecision.ts +1 -1
  228. package/lite/model/aroundPrecisionFromValueInner.ts +9 -0
  229. package/lite/model/aroundRadius.ts +1 -1
  230. package/lite/model/aroundRadiusAll.ts +3 -0
  231. package/lite/model/automaticFacetFilter.ts +4 -4
  232. package/lite/model/automaticFacetFilters.ts +1 -1
  233. package/lite/model/baseIndexSettings.ts +21 -16
  234. package/lite/model/baseSearchParamsWithoutQuery.ts +24 -29
  235. package/lite/model/baseSearchResponse.ts +6 -6
  236. package/lite/model/builtInOperation.ts +2 -2
  237. package/lite/model/builtInOperationType.ts +1 -1
  238. package/lite/model/condition.ts +8 -3
  239. package/lite/model/consequence.ts +5 -5
  240. package/lite/model/consequenceHide.ts +2 -2
  241. package/lite/model/consequenceQuery.ts +1 -1
  242. package/lite/model/consequenceQueryObject.ts +2 -2
  243. package/lite/model/cursor.ts +1 -1
  244. package/lite/model/deleteByParams.ts +4 -4
  245. package/lite/model/dictionaryEntry.ts +5 -5
  246. package/lite/model/dictionaryEntryState.ts +1 -1
  247. package/lite/model/dictionaryLanguage.ts +2 -2
  248. package/lite/model/distinct.ts +1 -1
  249. package/lite/model/edit.ts +1 -1
  250. package/lite/model/exactOnSingleWordQuery.ts +1 -1
  251. package/lite/model/facetFilters.ts +1 -1
  252. package/lite/model/facetHits.ts +2 -2
  253. package/lite/model/facetOrdering.ts +2 -2
  254. package/lite/model/facets.ts +2 -2
  255. package/lite/model/highlightResultOption.ts +3 -3
  256. package/lite/model/hit.ts +4 -4
  257. package/lite/model/ignorePlurals.ts +1 -1
  258. package/lite/model/index.ts +1 -0
  259. package/lite/model/indexSettings.ts +1 -1
  260. package/lite/model/indexSettingsAsSearchParams.ts +30 -35
  261. package/lite/model/matchLevel.ts +1 -1
  262. package/lite/model/mode.ts +1 -1
  263. package/lite/model/numericFilters.ts +1 -1
  264. package/lite/model/operationType.ts +1 -1
  265. package/lite/model/optionalFilters.ts +1 -1
  266. package/lite/model/params.ts +1 -1
  267. package/lite/model/promoteObjectID.ts +2 -2
  268. package/lite/model/promoteObjectIDs.ts +2 -2
  269. package/lite/model/queryType.ts +1 -1
  270. package/lite/model/rankingInfo.ts +10 -7
  271. package/lite/model/reRankingApplyFilter.ts +1 -1
  272. package/lite/model/removeStopWords.ts +1 -1
  273. package/lite/model/removeWordsIfNoResults.ts +1 -1
  274. package/lite/model/renderingContent.ts +1 -1
  275. package/lite/model/rule.ts +5 -5
  276. package/lite/model/searchDictionaryEntriesResponse.ts +25 -0
  277. package/lite/model/searchForFacetValuesResponse.ts +3 -0
  278. package/lite/model/searchForFacetsOptions.ts +2 -2
  279. package/lite/model/searchForHitsOptions.ts +1 -1
  280. package/lite/model/searchHits.ts +6 -3
  281. package/lite/model/searchParamsQuery.ts +1 -1
  282. package/lite/model/searchStrategy.ts +1 -1
  283. package/lite/model/searchSynonymsResponse.ts +2 -2
  284. package/lite/model/securedAPIKeyRestrictions.ts +5 -5
  285. package/lite/model/semanticSearch.ts +2 -2
  286. package/lite/model/snippetResultOption.ts +2 -2
  287. package/lite/model/sortRemainingBy.ts +1 -1
  288. package/lite/model/tagFilters.ts +1 -1
  289. package/lite/model/taskStatus.ts +1 -1
  290. package/lite/model/timeRange.ts +2 -2
  291. package/lite/model/typoTolerance.ts +1 -1
  292. package/lite/model/typoToleranceEnum.ts +3 -0
  293. package/lite/model/updatedRuleResponse.ts +2 -2
  294. package/lite/model/userId.ts +1 -1
  295. package/lite/model/value.ts +1 -1
  296. package/lite/src/liteClient.ts +3 -3
  297. package/package.json +11 -11
@@ -6,27 +6,27 @@ export type SecuredAPIKeyRestrictions = {
6
6
  searchParams?: SearchParamsObject;
7
7
 
8
8
  /**
9
- * Filters that apply to every search made with the secured API key. You can add extra filters at search time with the filters query parameter. For example, if you set the filter group:admin on your generated API key, and you add groups:press OR groups:visitors with the filters query parameter, your final search filter is equivalent to groups:admin AND (groups:press OR groups:visitors).
9
+ * Filters that apply to every search made with the secured API key. Extra filters added at search time will be combined with `AND`. For example, if you set `group:admin` as fixed filter on your generated API key, and add `groups:visitors` to the search query, the complete set of filters will be `group:admin AND groups:visitors`.
10
10
  */
11
11
  filters?: string;
12
12
 
13
13
  /**
14
- * Unix timestamp used to set the expiration date of the API key.
14
+ * Timestamp in [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time) when the API key should expire.
15
15
  */
16
16
  validUntil?: number;
17
17
 
18
18
  /**
19
- * Index names that can be queried.
19
+ * Index names or patterns that this API key can access. By default, an API key can access all indices in the same application. You can use leading and trailing wildcard characters (`*`): - `dev_*` matches all indices starting with \"dev_\". - `*_dev` matches all indices ending with \"_dev\". - `*_products_*` matches all indices containing \"_products_\".
20
20
  */
21
21
  restrictIndices?: string[];
22
22
 
23
23
  /**
24
- * IPv4 network allowed to use the generated key. Use this to protect against API key leaking and reuse. You can only provide a single source, but you can specify a range of IPs (for example, 192.168.1.0/24).
24
+ * IP network that are allowed to use this key. You can only add a single source, but you can provide a range of IP addresses. Use this to protect against API key leaking and reuse.
25
25
  */
26
26
  restrictSources?: string;
27
27
 
28
28
  /**
29
- * Unique user IP address. This can be useful when you want to impose a rate limit on specific users. By default, rate limits are set based on the IP address. This can become an issue when several users search from the same IP address. To avoid this, you can set a unique userToken for each user when generating their API key. This lets you restrict each user to a maximum number of API calls per hour, even if they share their IP with another user. Specifying the userToken in a secured API key is also a good security practice as it ensures users don\'t change it. Many features like Analytics, Personalization, and Dynamic Re-ranking rely on the authenticity of user identifiers. Setting the userToken at the API key level ensures that downstream services work as expected and prevents abuse.
29
+ * Pseudonymous user identifier to restrict usage of this API key to specific users. By default, rate limits are set based on IP addresses. This can be an issue if many users search from the same IP address. To avoid this, add a user token to each generated API key.
30
30
  */
31
31
  userToken?: string;
32
32
  };
@@ -1,11 +1,11 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Settings for the semantic search part of NeuralSearch. Only used when `mode` is _neuralSearch_.
4
+ * Settings for the semantic search part of NeuralSearch. Only used when `mode` is `neuralSearch`.
5
5
  */
6
6
  export type SemanticSearch = {
7
7
  /**
8
- * Indices from which to collect click and conversion events. If null, the current index and replica group will be used as the event source.
8
+ * Indices from which to collect click and conversion events. If null, the current index and all its replicas are used.
9
9
  */
10
10
  eventSources?: string[] | null;
11
11
  };
@@ -3,11 +3,11 @@
3
3
  import type { MatchLevel } from './matchLevel';
4
4
 
5
5
  /**
6
- * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
6
+ * Snippets that show the context around a matching search query.
7
7
  */
8
8
  export type SnippetResultOption = {
9
9
  /**
10
- * Markup text with `facetQuery` matches highlighted.
10
+ * Highlighted attribute value, including HTML tags.
11
11
  */
12
12
  value: string;
13
13
 
@@ -1,6 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * How to display the remaining items: - `count`: facet count (descending). - `alpha`: alphabetical (ascending). - `hidden`: show only pinned values.
4
+ * 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>.
5
5
  */
6
6
  export type SortRemainingBy = 'alpha' | 'count' | 'hidden';
@@ -3,6 +3,6 @@
3
3
  import type { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * [Filter hits by tags](https://www.algolia.com/doc/api-reference/api-parameters/tagFilters/).
6
+ * Filter the search by values of the special `_tags` attribute. **Prefer using the `filters` parameter, which supports all filter types and combinations with boolean operators.** Different from regular facets, `_tags` can only be used for filtering (including or excluding records). You won\'t get a facet count. The same combination and escaping rules apply as for `facetFilters`.
7
7
  */
8
8
  export type TagFilters = MixedSearchFilters[] | string;
@@ -1,6 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * _published_ if the task has been processed, _notPublished_ otherwise.
4
+ * Task status, `published` if the task is completed, `notPublished` otherwise.
5
5
  */
6
6
  export type TaskStatus = 'notPublished' | 'published';
@@ -2,12 +2,12 @@
2
2
 
3
3
  export type TimeRange = {
4
4
  /**
5
- * Lower bound of the time range (Unix timestamp).
5
+ * When the rule should start to be active, in Unix epoch time.
6
6
  */
7
7
  from: number;
8
8
 
9
9
  /**
10
- * Upper bound of the time range (Unix timestamp).
10
+ * When the rule should stop to be active, in Unix epoch time.
11
11
  */
12
12
  until: number;
13
13
  };
@@ -3,6 +3,6 @@
3
3
  import type { TypoToleranceEnum } from './typoToleranceEnum';
4
4
 
5
5
  /**
6
- * Controls whether [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/) is enabled and how it is applied.
6
+ * 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.
7
7
  */
8
8
  export type TypoTolerance = TypoToleranceEnum | boolean;
@@ -1,3 +1,6 @@
1
1
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
+ /**
4
+ * - `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.
5
+ */
3
6
  export type TypoToleranceEnum = 'min' | 'strict';
@@ -2,7 +2,7 @@
2
2
 
3
3
  export type UpdatedRuleResponse = {
4
4
  /**
5
- * Unique object identifier.
5
+ * Unique identifier of a rule object.
6
6
  */
7
7
  objectID: string;
8
8
 
@@ -12,7 +12,7 @@ export type UpdatedRuleResponse = {
12
12
  updatedAt: string;
13
13
 
14
14
  /**
15
- * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
15
+ * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.
16
16
  */
17
17
  taskID: number;
18
18
  };
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export type UserId = {
7
7
  /**
8
- * UserID of the user.
8
+ * User ID.
9
9
  */
10
10
  userID: string;
11
11
 
@@ -4,7 +4,7 @@ import type { SortRemainingBy } from './sortRemainingBy';
4
4
 
5
5
  export type Value = {
6
6
  /**
7
- * Pinned order of facet lists.
7
+ * Explicit order of facets or facet values. This setting lets you always show specific facets or facet values at the top of the list.
8
8
  */
9
9
  order?: string[];
10
10
 
@@ -22,7 +22,7 @@ import type {
22
22
  import type { SearchMethodParams } from '../model/searchMethodParams';
23
23
  import type { SearchResponses } from '../model/searchResponses';
24
24
 
25
- export const apiClientVersion = '5.0.0-alpha.105';
25
+ export const apiClientVersion = '5.0.0-alpha.107';
26
26
 
27
27
  function getDefaultHosts(appId: string): Host[] {
28
28
  return (
@@ -157,12 +157,12 @@ export function createLiteClient({
157
157
  },
158
158
 
159
159
  /**
160
- * Send multiple search queries to one or more indices.
160
+ * Sends multiple search request to one or more indices. This can be useful in these cases: - Different indices for different purposes, such as, one index for products, another one for marketing content. - Multiple searches to the same index—for example, with different filters.
161
161
  *
162
162
  * Required API Key ACLs:
163
163
  * - search.
164
164
  *
165
- * @param searchMethodParams - Query requests and strategies. Results will be received in the same order as the queries.
165
+ * @param searchMethodParams - Muli-search request body. Results are returned in the same order as the requests.
166
166
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
167
167
  */
168
168
  search<T>(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "algoliasearch",
3
- "version": "5.0.0-alpha.105",
3
+ "version": "5.0.0-alpha.107",
4
4
  "description": "A fully-featured and blazing-fast JavaScript API client to interact with Algolia API.",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
@@ -60,22 +60,22 @@
60
60
  "test": "jest"
61
61
  },
62
62
  "dependencies": {
63
- "@algolia/client-abtesting": "5.0.0-alpha.105",
64
- "@algolia/client-analytics": "5.0.0-alpha.105",
65
- "@algolia/client-common": "5.0.0-alpha.106",
66
- "@algolia/client-personalization": "5.0.0-alpha.105",
67
- "@algolia/client-search": "5.0.0-alpha.105",
68
- "@algolia/requester-browser-xhr": "5.0.0-alpha.106",
69
- "@algolia/requester-node-http": "5.0.0-alpha.106"
63
+ "@algolia/client-abtesting": "5.0.0-alpha.107",
64
+ "@algolia/client-analytics": "5.0.0-alpha.107",
65
+ "@algolia/client-common": "5.0.0-alpha.108",
66
+ "@algolia/client-personalization": "5.0.0-alpha.107",
67
+ "@algolia/client-search": "5.0.0-alpha.107",
68
+ "@algolia/requester-browser-xhr": "5.0.0-alpha.108",
69
+ "@algolia/requester-node-http": "5.0.0-alpha.108"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@babel/preset-env": "7.24.0",
73
73
  "@babel/preset-typescript": "7.23.3",
74
74
  "@types/jest": "29.5.12",
75
- "@types/node": "20.11.24",
75
+ "@types/node": "20.11.25",
76
76
  "jest": "29.7.0",
77
- "rollup": "4.12.0",
78
- "typescript": "5.3.3"
77
+ "rollup": "4.12.1",
78
+ "typescript": "5.4.2"
79
79
  },
80
80
  "engines": {
81
81
  "node": ">= 14.0.0"