@algolia/client-search 5.0.0-alpha.11 → 5.0.0-alpha.110

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 (519) hide show
  1. package/dist/builds/browser.d.ts +88 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +106 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{client-search.cjs.js → client-search.cjs} +2215 -1991
  6. package/dist/client-search.esm.browser.js +2403 -2242
  7. package/dist/client-search.esm.node.js +2216 -1990
  8. package/dist/client-search.umd.js +2 -2
  9. package/dist/model/acl.d.ts +4 -4
  10. package/dist/model/acl.d.ts.map +1 -1
  11. package/dist/model/action.d.ts +4 -4
  12. package/dist/model/action.d.ts.map +1 -1
  13. package/dist/model/addApiKeyResponse.d.ts +10 -10
  14. package/dist/model/addApiKeyResponse.d.ts.map +1 -1
  15. package/dist/model/advancedSyntaxFeatures.d.ts +1 -1
  16. package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
  17. package/dist/model/alternativesAsExact.d.ts +1 -1
  18. package/dist/model/alternativesAsExact.d.ts.map +1 -1
  19. package/dist/model/anchoring.d.ts +4 -4
  20. package/dist/model/anchoring.d.ts.map +1 -1
  21. package/dist/model/apiKey.d.ts +38 -38
  22. package/dist/model/apiKey.d.ts.map +1 -1
  23. package/dist/model/apiKeyOperation.d.ts +2 -0
  24. package/dist/model/apiKeyOperation.d.ts.map +1 -0
  25. package/dist/model/aroundPrecision.d.ts +6 -0
  26. package/dist/model/aroundPrecision.d.ts.map +1 -0
  27. package/dist/model/aroundPrecisionFromValueInner.d.ts +14 -0
  28. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  29. package/dist/model/aroundRadius.d.ts +5 -5
  30. package/dist/model/aroundRadius.d.ts.map +1 -1
  31. package/dist/model/aroundRadiusAll.d.ts +4 -1
  32. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  33. package/dist/model/assignUserIdParams.d.ts +9 -9
  34. package/dist/model/assignUserIdParams.d.ts.map +1 -1
  35. package/dist/model/attributeToUpdate.d.ts +2 -2
  36. package/dist/model/attributeToUpdate.d.ts.map +1 -1
  37. package/dist/model/automaticFacetFilter.d.ts +17 -17
  38. package/dist/model/automaticFacetFilter.d.ts.map +1 -1
  39. package/dist/model/automaticFacetFilters.d.ts +5 -5
  40. package/dist/model/automaticFacetFilters.d.ts.map +1 -1
  41. package/dist/model/baseGetApiKeyResponse.d.ts +10 -10
  42. package/dist/model/baseGetApiKeyResponse.d.ts.map +1 -1
  43. package/dist/model/baseIndexSettings.d.ts +71 -58
  44. package/dist/model/baseIndexSettings.d.ts.map +1 -1
  45. package/dist/model/baseSearchParams.d.ts +3 -3
  46. package/dist/model/baseSearchParams.d.ts.map +1 -1
  47. package/dist/model/baseSearchParamsWithoutQuery.d.ts +114 -122
  48. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  49. package/dist/model/baseSearchResponse.d.ts +109 -101
  50. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  51. package/dist/model/batchAssignUserIdsParams.d.ts +13 -13
  52. package/dist/model/batchAssignUserIdsParams.d.ts.map +1 -1
  53. package/dist/model/batchDictionaryEntriesParams.d.ts +14 -14
  54. package/dist/model/batchDictionaryEntriesParams.d.ts.map +1 -1
  55. package/dist/model/batchDictionaryEntriesRequest.d.ts +6 -6
  56. package/dist/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
  57. package/dist/model/batchParams.d.ts +7 -7
  58. package/dist/model/batchParams.d.ts.map +1 -1
  59. package/dist/model/batchRequest.d.ts +8 -8
  60. package/dist/model/batchRequest.d.ts.map +1 -1
  61. package/dist/model/batchResponse.d.ts +10 -10
  62. package/dist/model/batchResponse.d.ts.map +1 -1
  63. package/dist/model/batchWriteParams.d.ts +7 -7
  64. package/dist/model/batchWriteParams.d.ts.map +1 -1
  65. package/dist/model/browseParams.d.ts +3 -3
  66. package/dist/model/browseParams.d.ts.map +1 -1
  67. package/dist/model/browseParamsObject.d.ts +3 -3
  68. package/dist/model/browseParamsObject.d.ts.map +1 -1
  69. package/dist/model/browseResponse.d.ts +4 -4
  70. package/dist/model/browseResponse.d.ts.map +1 -1
  71. package/dist/model/builtInOperation.d.ts +11 -11
  72. package/dist/model/builtInOperation.d.ts.map +1 -1
  73. package/dist/model/builtInOperationType.d.ts +4 -4
  74. package/dist/model/builtInOperationType.d.ts.map +1 -1
  75. package/dist/model/clientMethodProps.d.ts +765 -714
  76. package/dist/model/clientMethodProps.d.ts.map +1 -1
  77. package/dist/model/condition.d.ts +20 -16
  78. package/dist/model/condition.d.ts.map +1 -1
  79. package/dist/model/consequence.d.ts +25 -25
  80. package/dist/model/consequence.d.ts.map +1 -1
  81. package/dist/model/consequenceHide.d.ts +9 -9
  82. package/dist/model/consequenceHide.d.ts.map +1 -1
  83. package/dist/model/consequenceParams.d.ts +4 -4
  84. package/dist/model/consequenceParams.d.ts.map +1 -1
  85. package/dist/model/consequenceQuery.d.ts +5 -5
  86. package/dist/model/consequenceQuery.d.ts.map +1 -1
  87. package/dist/model/consequenceQueryObject.d.ts +11 -11
  88. package/dist/model/consequenceQueryObject.d.ts.map +1 -1
  89. package/dist/model/createdAtResponse.d.ts +9 -9
  90. package/dist/model/createdAtResponse.d.ts.map +1 -1
  91. package/dist/model/cursor.d.ts +6 -6
  92. package/dist/model/cursor.d.ts.map +1 -1
  93. package/dist/model/deleteApiKeyResponse.d.ts +6 -6
  94. package/dist/model/deleteApiKeyResponse.d.ts.map +1 -1
  95. package/dist/model/deleteByParams.d.ts +27 -0
  96. package/dist/model/deleteByParams.d.ts.map +1 -0
  97. package/dist/model/deleteSourceResponse.d.ts +6 -6
  98. package/dist/model/deleteSourceResponse.d.ts.map +1 -1
  99. package/dist/model/deletedAtResponse.d.ts +13 -13
  100. package/dist/model/deletedAtResponse.d.ts.map +1 -1
  101. package/dist/model/dictionaryAction.d.ts +4 -4
  102. package/dist/model/dictionaryAction.d.ts.map +1 -1
  103. package/dist/model/dictionaryEntry.d.ts +25 -27
  104. package/dist/model/dictionaryEntry.d.ts.map +1 -1
  105. package/dist/model/dictionaryEntryState.d.ts +4 -4
  106. package/dist/model/dictionaryEntryState.d.ts.map +1 -1
  107. package/dist/model/dictionaryLanguage.d.ts +9 -9
  108. package/dist/model/dictionaryLanguage.d.ts.map +1 -1
  109. package/dist/model/dictionarySettingsParams.d.ts +7 -7
  110. package/dist/model/dictionarySettingsParams.d.ts.map +1 -1
  111. package/dist/model/dictionaryType.d.ts +1 -1
  112. package/dist/model/dictionaryType.d.ts.map +1 -1
  113. package/dist/model/distinct.d.ts +4 -4
  114. package/dist/model/distinct.d.ts.map +1 -1
  115. package/dist/model/edit.d.ts +12 -12
  116. package/dist/model/edit.d.ts.map +1 -1
  117. package/dist/model/editType.d.ts +4 -4
  118. package/dist/model/editType.d.ts.map +1 -1
  119. package/dist/model/errorBase.d.ts +6 -6
  120. package/dist/model/errorBase.d.ts.map +1 -1
  121. package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
  122. package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
  123. package/dist/model/exhaustive.d.ts +26 -0
  124. package/dist/model/exhaustive.d.ts.map +1 -0
  125. package/dist/model/facetFilters.d.ts +5 -5
  126. package/dist/model/facetFilters.d.ts.map +1 -1
  127. package/dist/model/facetHits.d.ts +14 -14
  128. package/dist/model/facetHits.d.ts.map +1 -1
  129. package/dist/model/facetOrdering.d.ts +12 -12
  130. package/dist/model/facetOrdering.d.ts.map +1 -1
  131. package/dist/model/facets.d.ts +9 -9
  132. package/dist/model/facets.d.ts.map +1 -1
  133. package/dist/model/facetsStats.d.ts +18 -18
  134. package/dist/model/facetsStats.d.ts.map +1 -1
  135. package/dist/model/fetchedIndex.d.ts +46 -46
  136. package/dist/model/fetchedIndex.d.ts.map +1 -1
  137. package/dist/model/getApiKeyResponse.d.ts +3 -3
  138. package/dist/model/getApiKeyResponse.d.ts.map +1 -1
  139. package/dist/model/getDictionarySettingsResponse.d.ts +4 -4
  140. package/dist/model/getDictionarySettingsResponse.d.ts.map +1 -1
  141. package/dist/model/getLogsResponse.d.ts +4 -4
  142. package/dist/model/getLogsResponse.d.ts.map +1 -1
  143. package/dist/model/getObjectsParams.d.ts +7 -7
  144. package/dist/model/getObjectsParams.d.ts.map +1 -1
  145. package/dist/model/getObjectsRequest.d.ts +17 -17
  146. package/dist/model/getObjectsRequest.d.ts.map +1 -1
  147. package/dist/model/getObjectsResponse.d.ts +6 -6
  148. package/dist/model/getObjectsResponse.d.ts.map +1 -1
  149. package/dist/model/getTaskResponse.d.ts +4 -4
  150. package/dist/model/getTaskResponse.d.ts.map +1 -1
  151. package/dist/model/getTopUserIdsResponse.d.ts +10 -10
  152. package/dist/model/getTopUserIdsResponse.d.ts.map +1 -1
  153. package/dist/model/hasPendingMappingsResponse.d.ts +10 -10
  154. package/dist/model/hasPendingMappingsResponse.d.ts.map +1 -1
  155. package/dist/model/highlightResult.d.ts +2 -2
  156. package/dist/model/highlightResult.d.ts.map +1 -1
  157. package/dist/model/highlightResultOption.d.ts +19 -19
  158. package/dist/model/highlightResultOption.d.ts.map +1 -1
  159. package/dist/model/hit.d.ts +22 -22
  160. package/dist/model/hit.d.ts.map +1 -1
  161. package/dist/model/ignorePlurals.d.ts +5 -4
  162. package/dist/model/ignorePlurals.d.ts.map +1 -1
  163. package/dist/model/index.d.ts +167 -154
  164. package/dist/model/index.d.ts.map +1 -1
  165. package/dist/model/indexSettings.d.ts +6 -6
  166. package/dist/model/indexSettings.d.ts.map +1 -1
  167. package/dist/model/indexSettingsAsSearchParams.d.ts +159 -160
  168. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  169. package/dist/model/languages.d.ts +9 -9
  170. package/dist/model/languages.d.ts.map +1 -1
  171. package/dist/model/listApiKeysResponse.d.ts +7 -7
  172. package/dist/model/listApiKeysResponse.d.ts.map +1 -1
  173. package/dist/model/listClustersResponse.d.ts +9 -9
  174. package/dist/model/listClustersResponse.d.ts.map +1 -1
  175. package/dist/model/listIndicesResponse.d.ts +11 -11
  176. package/dist/model/listIndicesResponse.d.ts.map +1 -1
  177. package/dist/model/listUserIdsResponse.d.ts +10 -10
  178. package/dist/model/listUserIdsResponse.d.ts.map +1 -1
  179. package/dist/model/log.d.ts +63 -63
  180. package/dist/model/log.d.ts.map +1 -1
  181. package/dist/model/logQuery.d.ts +14 -14
  182. package/dist/model/logQuery.d.ts.map +1 -1
  183. package/dist/model/logType.d.ts +1 -1
  184. package/dist/model/logType.d.ts.map +1 -1
  185. package/dist/model/matchLevel.d.ts +4 -4
  186. package/dist/model/matchLevel.d.ts.map +1 -1
  187. package/dist/model/matchedGeoLocation.d.ts +14 -14
  188. package/dist/model/matchedGeoLocation.d.ts.map +1 -1
  189. package/dist/model/mixedSearchFilters.d.ts +1 -1
  190. package/dist/model/mixedSearchFilters.d.ts.map +1 -1
  191. package/dist/model/mode.d.ts +5 -0
  192. package/dist/model/mode.d.ts.map +1 -0
  193. package/dist/model/multipleBatchRequest.d.ts +12 -12
  194. package/dist/model/multipleBatchRequest.d.ts.map +1 -1
  195. package/dist/model/multipleBatchResponse.d.ts +10 -10
  196. package/dist/model/multipleBatchResponse.d.ts.map +1 -1
  197. package/dist/model/numericFilters.d.ts +5 -5
  198. package/dist/model/numericFilters.d.ts.map +1 -1
  199. package/dist/model/operationIndexParams.d.ts +13 -13
  200. package/dist/model/operationIndexParams.d.ts.map +1 -1
  201. package/dist/model/operationType.d.ts +4 -4
  202. package/dist/model/operationType.d.ts.map +1 -1
  203. package/dist/model/optionalFilters.d.ts +5 -5
  204. package/dist/model/optionalFilters.d.ts.map +1 -1
  205. package/dist/model/params.d.ts +12 -12
  206. package/dist/model/params.d.ts.map +1 -1
  207. package/dist/model/personalization.d.ts +14 -14
  208. package/dist/model/personalization.d.ts.map +1 -1
  209. package/dist/model/promote.d.ts +3 -3
  210. package/dist/model/promote.d.ts.map +1 -1
  211. package/dist/model/promoteObjectID.d.ts +13 -13
  212. package/dist/model/promoteObjectID.d.ts.map +1 -1
  213. package/dist/model/promoteObjectIDs.d.ts +13 -13
  214. package/dist/model/promoteObjectIDs.d.ts.map +1 -1
  215. package/dist/model/queryType.d.ts +4 -4
  216. package/dist/model/queryType.d.ts.map +1 -1
  217. package/dist/model/rankingInfo.d.ts +53 -50
  218. package/dist/model/rankingInfo.d.ts.map +1 -1
  219. package/dist/model/reRankingApplyFilter.d.ts +5 -5
  220. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  221. package/dist/model/redirect.d.ts +8 -0
  222. package/dist/model/redirect.d.ts.map +1 -0
  223. package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
  224. package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  225. package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
  226. package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  227. package/dist/model/removeStopWords.d.ts +5 -4
  228. package/dist/model/removeStopWords.d.ts.map +1 -1
  229. package/dist/model/removeUserIdResponse.d.ts +6 -6
  230. package/dist/model/removeUserIdResponse.d.ts.map +1 -1
  231. package/dist/model/removeWordsIfNoResults.d.ts +4 -4
  232. package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
  233. package/dist/model/renderingContent.d.ts +7 -7
  234. package/dist/model/renderingContent.d.ts.map +1 -1
  235. package/dist/model/replaceSourceResponse.d.ts +6 -6
  236. package/dist/model/replaceSourceResponse.d.ts.map +1 -1
  237. package/dist/model/rule.d.ts +29 -29
  238. package/dist/model/rule.d.ts.map +1 -1
  239. package/dist/model/saveObjectResponse.d.ts +14 -11
  240. package/dist/model/saveObjectResponse.d.ts.map +1 -1
  241. package/dist/model/saveSynonymResponse.d.ts +14 -14
  242. package/dist/model/saveSynonymResponse.d.ts.map +1 -1
  243. package/dist/model/scopeType.d.ts +1 -1
  244. package/dist/model/scopeType.d.ts.map +1 -1
  245. package/dist/model/searchDictionaryEntriesParams.d.ts +19 -21
  246. package/dist/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  247. package/dist/model/searchDictionaryEntriesResponse.d.ts +20 -0
  248. package/dist/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  249. package/dist/model/searchForFacetValuesRequest.d.ts +14 -14
  250. package/dist/model/searchForFacetValuesRequest.d.ts.map +1 -1
  251. package/dist/model/searchForFacetValuesResponse.d.ts +15 -4
  252. package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -1
  253. package/dist/model/searchForFacets.d.ts +3 -3
  254. package/dist/model/searchForFacets.d.ts.map +1 -1
  255. package/dist/model/searchForFacetsOptions.d.ts +20 -20
  256. package/dist/model/searchForFacetsOptions.d.ts.map +1 -1
  257. package/dist/model/searchForHits.d.ts +3 -3
  258. package/dist/model/searchForHits.d.ts.map +1 -1
  259. package/dist/model/searchForHitsOptions.d.ts +12 -12
  260. package/dist/model/searchForHitsOptions.d.ts.map +1 -1
  261. package/dist/model/searchHits.d.ts +15 -4
  262. package/dist/model/searchHits.d.ts.map +1 -1
  263. package/dist/model/searchMethodParams.d.ts +6 -6
  264. package/dist/model/searchMethodParams.d.ts.map +1 -1
  265. package/dist/model/searchParams.d.ts +3 -3
  266. package/dist/model/searchParams.d.ts.map +1 -1
  267. package/dist/model/searchParamsObject.d.ts +3 -3
  268. package/dist/model/searchParamsObject.d.ts.map +1 -1
  269. package/dist/model/searchParamsQuery.d.ts +6 -6
  270. package/dist/model/searchParamsQuery.d.ts.map +1 -1
  271. package/dist/model/searchParamsString.d.ts +6 -6
  272. package/dist/model/searchParamsString.d.ts.map +1 -1
  273. package/dist/model/searchQuery.d.ts +3 -3
  274. package/dist/model/searchQuery.d.ts.map +1 -1
  275. package/dist/model/searchResponse.d.ts +3 -3
  276. package/dist/model/searchResponse.d.ts.map +1 -1
  277. package/dist/model/searchResponses.d.ts +4 -4
  278. package/dist/model/searchResponses.d.ts.map +1 -1
  279. package/dist/model/searchResult.d.ts +4 -0
  280. package/dist/model/searchResult.d.ts.map +1 -0
  281. package/dist/model/searchRulesParams.d.ts +27 -31
  282. package/dist/model/searchRulesParams.d.ts.map +1 -1
  283. package/dist/model/searchRulesResponse.d.ts +19 -19
  284. package/dist/model/searchRulesResponse.d.ts.map +1 -1
  285. package/dist/model/searchStrategy.d.ts +4 -1
  286. package/dist/model/searchStrategy.d.ts.map +1 -1
  287. package/dist/model/searchSynonymsParams.d.ts +16 -6
  288. package/dist/model/searchSynonymsParams.d.ts.map +1 -1
  289. package/dist/model/searchSynonymsResponse.d.ts +11 -11
  290. package/dist/model/searchSynonymsResponse.d.ts.map +1 -1
  291. package/dist/model/searchTypeDefault.d.ts +4 -4
  292. package/dist/model/searchTypeDefault.d.ts.map +1 -1
  293. package/dist/model/searchTypeFacet.d.ts +4 -4
  294. package/dist/model/searchTypeFacet.d.ts.map +1 -1
  295. package/dist/model/searchUserIdsParams.d.ts +21 -21
  296. package/dist/model/searchUserIdsParams.d.ts.map +1 -1
  297. package/dist/model/searchUserIdsResponse.d.ts +26 -26
  298. package/dist/model/searchUserIdsResponse.d.ts.map +1 -1
  299. package/dist/model/securedAPIKeyRestrictions.d.ts +25 -0
  300. package/dist/model/securedAPIKeyRestrictions.d.ts.map +1 -0
  301. package/dist/model/semanticSearch.d.ts +10 -0
  302. package/dist/model/semanticSearch.d.ts.map +1 -0
  303. package/dist/model/snippetResult.d.ts +2 -2
  304. package/dist/model/snippetResult.d.ts.map +1 -1
  305. package/dist/model/snippetResultOption.d.ts +11 -11
  306. package/dist/model/snippetResultOption.d.ts.map +1 -1
  307. package/dist/model/sortRemainingBy.d.ts +4 -4
  308. package/dist/model/sortRemainingBy.d.ts.map +1 -1
  309. package/dist/model/source.d.ts +13 -13
  310. package/dist/model/source.d.ts.map +1 -1
  311. package/dist/model/standardEntries.d.ts +17 -17
  312. package/dist/model/standardEntries.d.ts.map +1 -1
  313. package/dist/model/supportedLanguage.d.ts +5 -0
  314. package/dist/model/supportedLanguage.d.ts.map +1 -0
  315. package/dist/model/synonymHit.d.ts +35 -37
  316. package/dist/model/synonymHit.d.ts.map +1 -1
  317. package/dist/model/synonymType.d.ts +4 -4
  318. package/dist/model/synonymType.d.ts.map +1 -1
  319. package/dist/model/tagFilters.d.ts +5 -5
  320. package/dist/model/tagFilters.d.ts.map +1 -1
  321. package/dist/model/taskStatus.d.ts +4 -1
  322. package/dist/model/taskStatus.d.ts.map +1 -1
  323. package/dist/model/timeRange.d.ts +10 -10
  324. package/dist/model/timeRange.d.ts.map +1 -1
  325. package/dist/model/typoTolerance.d.ts +5 -5
  326. package/dist/model/typoTolerance.d.ts.map +1 -1
  327. package/dist/model/typoToleranceEnum.d.ts +4 -1
  328. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  329. package/dist/model/updateApiKeyResponse.d.ts +10 -10
  330. package/dist/model/updateApiKeyResponse.d.ts.map +1 -1
  331. package/dist/model/updatedAtResponse.d.ts +13 -13
  332. package/dist/model/updatedAtResponse.d.ts.map +1 -1
  333. package/dist/model/updatedAtWithObjectIdResponse.d.ts +17 -17
  334. package/dist/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
  335. package/dist/model/updatedRuleResponse.d.ts +14 -14
  336. package/dist/model/updatedRuleResponse.d.ts.map +1 -1
  337. package/dist/model/userHighlightResult.d.ts +5 -11
  338. package/dist/model/userHighlightResult.d.ts.map +1 -1
  339. package/dist/model/userHit.d.ts +24 -24
  340. package/dist/model/userHit.d.ts.map +1 -1
  341. package/dist/model/userId.d.ts +21 -21
  342. package/dist/model/userId.d.ts.map +1 -1
  343. package/dist/model/value.d.ts +8 -8
  344. package/dist/model/value.d.ts.map +1 -1
  345. package/dist/src/searchClient.d.ts +866 -723
  346. package/dist/src/searchClient.d.ts.map +1 -1
  347. package/index.js +1 -1
  348. package/model/acl.ts +3 -2
  349. package/model/action.ts +2 -2
  350. package/model/addApiKeyResponse.ts +3 -3
  351. package/model/advancedSyntaxFeatures.ts +1 -1
  352. package/model/alternativesAsExact.ts +1 -1
  353. package/model/anchoring.ts +2 -2
  354. package/model/apiKey.ts +10 -10
  355. package/model/apiKeyOperation.ts +3 -0
  356. package/model/aroundPrecision.ts +8 -0
  357. package/model/aroundPrecisionFromValueInner.ts +16 -0
  358. package/model/aroundRadius.ts +2 -2
  359. package/model/aroundRadiusAll.ts +4 -1
  360. package/model/assignUserIdParams.ts +2 -2
  361. package/model/attributeToUpdate.ts +1 -1
  362. package/model/automaticFacetFilter.ts +5 -5
  363. package/model/automaticFacetFilters.ts +2 -2
  364. package/model/baseGetApiKeyResponse.ts +3 -3
  365. package/model/baseIndexSettings.ts +34 -17
  366. package/model/baseSearchParams.ts +1 -1
  367. package/model/baseSearchParamsWithoutQuery.ts +36 -46
  368. package/model/baseSearchResponse.ts +42 -31
  369. package/model/batchAssignUserIdsParams.ts +3 -3
  370. package/model/batchDictionaryEntriesParams.ts +4 -4
  371. package/model/batchDictionaryEntriesRequest.ts +1 -1
  372. package/model/batchParams.ts +2 -2
  373. package/model/batchRequest.ts +2 -2
  374. package/model/batchResponse.ts +3 -3
  375. package/model/batchWriteParams.ts +2 -2
  376. package/model/browseParams.ts +1 -1
  377. package/model/browseParamsObject.ts +1 -1
  378. package/model/browseResponse.ts +1 -1
  379. package/model/builtInOperation.ts +3 -3
  380. package/model/builtInOperationType.ts +2 -2
  381. package/model/clientMethodProps.ts +218 -156
  382. package/model/condition.ts +9 -4
  383. package/model/consequence.ts +7 -7
  384. package/model/consequenceHide.ts +3 -3
  385. package/model/consequenceParams.ts +1 -1
  386. package/model/consequenceQuery.ts +2 -2
  387. package/model/consequenceQueryObject.ts +3 -3
  388. package/model/createdAtResponse.ts +3 -3
  389. package/model/cursor.ts +2 -2
  390. package/model/deleteApiKeyResponse.ts +2 -2
  391. package/model/deleteByParams.ts +36 -0
  392. package/model/deleteSourceResponse.ts +2 -2
  393. package/model/deletedAtResponse.ts +4 -4
  394. package/model/dictionaryAction.ts +1 -1
  395. package/model/dictionaryEntry.ts +8 -10
  396. package/model/dictionaryEntryState.ts +2 -2
  397. package/model/dictionaryLanguage.ts +4 -4
  398. package/model/dictionarySettingsParams.ts +2 -2
  399. package/model/dictionaryType.ts +1 -1
  400. package/model/distinct.ts +2 -2
  401. package/model/edit.ts +2 -2
  402. package/model/editType.ts +1 -1
  403. package/model/errorBase.ts +1 -1
  404. package/model/exactOnSingleWordQuery.ts +2 -2
  405. package/model/exhaustive.ts +31 -0
  406. package/model/facetFilters.ts +2 -2
  407. package/model/facetHits.ts +4 -4
  408. package/model/facetOrdering.ts +3 -3
  409. package/model/facets.ts +3 -3
  410. package/model/facetsStats.ts +5 -5
  411. package/model/fetchedIndex.ts +3 -3
  412. package/model/getApiKeyResponse.ts +1 -1
  413. package/model/getDictionarySettingsResponse.ts +1 -1
  414. package/model/getLogsResponse.ts +1 -1
  415. package/model/getObjectsParams.ts +2 -2
  416. package/model/getObjectsRequest.ts +5 -5
  417. package/model/getObjectsResponse.ts +2 -2
  418. package/model/getTaskResponse.ts +1 -1
  419. package/model/getTopUserIdsResponse.ts +3 -3
  420. package/model/hasPendingMappingsResponse.ts +3 -3
  421. package/model/highlightResult.ts +5 -2
  422. package/model/highlightResultOption.ts +4 -4
  423. package/model/hit.ts +5 -5
  424. package/model/ignorePlurals.ts +5 -3
  425. package/model/index.ts +15 -2
  426. package/model/indexSettings.ts +2 -2
  427. package/model/indexSettingsAsSearchParams.ts +54 -54
  428. package/model/languages.ts +2 -2
  429. package/model/listApiKeysResponse.ts +2 -2
  430. package/model/listClustersResponse.ts +3 -3
  431. package/model/listIndicesResponse.ts +2 -2
  432. package/model/listUserIdsResponse.ts +3 -3
  433. package/model/log.ts +13 -13
  434. package/model/logQuery.ts +3 -3
  435. package/model/logType.ts +1 -1
  436. package/model/matchLevel.ts +2 -2
  437. package/model/matchedGeoLocation.ts +1 -1
  438. package/model/mixedSearchFilters.ts +1 -1
  439. package/model/mode.ts +6 -0
  440. package/model/multipleBatchRequest.ts +2 -2
  441. package/model/multipleBatchResponse.ts +3 -3
  442. package/model/numericFilters.ts +2 -2
  443. package/model/operationIndexParams.ts +3 -3
  444. package/model/operationType.ts +2 -2
  445. package/model/optionalFilters.ts +2 -2
  446. package/model/params.ts +2 -2
  447. package/model/personalization.ts +1 -1
  448. package/model/promote.ts +1 -1
  449. package/model/promoteObjectID.ts +4 -4
  450. package/model/promoteObjectIDs.ts +4 -4
  451. package/model/queryType.ts +2 -2
  452. package/model/rankingInfo.ts +11 -8
  453. package/model/reRankingApplyFilter.ts +2 -2
  454. package/model/redirect.ts +10 -0
  455. package/model/redirectRuleIndexMetadata.ts +27 -0
  456. package/model/redirectRuleIndexMetadataData.ts +8 -0
  457. package/model/removeStopWords.ts +5 -3
  458. package/model/removeUserIdResponse.ts +2 -2
  459. package/model/removeWordsIfNoResults.ts +2 -2
  460. package/model/renderingContent.ts +2 -2
  461. package/model/replaceSourceResponse.ts +2 -2
  462. package/model/rule.ts +6 -6
  463. package/model/saveObjectResponse.ts +6 -3
  464. package/model/saveSynonymResponse.ts +4 -4
  465. package/model/scopeType.ts +1 -1
  466. package/model/searchDictionaryEntriesParams.ts +8 -9
  467. package/model/searchDictionaryEntriesResponse.ts +25 -0
  468. package/model/searchForFacetValuesRequest.ts +3 -3
  469. package/model/searchForFacetValuesResponse.ts +14 -1
  470. package/model/searchForFacets.ts +1 -1
  471. package/model/searchForFacetsOptions.ts +4 -4
  472. package/model/searchForHits.ts +1 -1
  473. package/model/searchForHitsOptions.ts +2 -2
  474. package/model/searchHits.ts +15 -2
  475. package/model/searchMethodParams.ts +1 -1
  476. package/model/searchParams.ts +1 -1
  477. package/model/searchParamsObject.ts +1 -1
  478. package/model/searchParamsQuery.ts +2 -2
  479. package/model/searchParamsString.ts +2 -2
  480. package/model/searchQuery.ts +1 -1
  481. package/model/searchResponse.ts +1 -1
  482. package/model/searchResponses.ts +3 -3
  483. package/model/searchResult.ts +8 -0
  484. package/model/searchRulesParams.ts +8 -13
  485. package/model/searchRulesResponse.ts +3 -3
  486. package/model/searchStrategy.ts +4 -1
  487. package/model/searchSynonymsParams.ts +16 -2
  488. package/model/searchSynonymsResponse.ts +3 -3
  489. package/model/searchTypeDefault.ts +2 -2
  490. package/model/searchTypeFacet.ts +2 -2
  491. package/model/searchUserIdsParams.ts +5 -5
  492. package/model/searchUserIdsResponse.ts +6 -6
  493. package/model/securedAPIKeyRestrictions.ts +32 -0
  494. package/model/semanticSearch.ts +11 -0
  495. package/model/snippetResult.ts +5 -2
  496. package/model/snippetResultOption.ts +3 -3
  497. package/model/sortRemainingBy.ts +2 -2
  498. package/model/source.ts +4 -4
  499. package/model/standardEntries.ts +5 -5
  500. package/model/supportedLanguage.ts +74 -0
  501. package/model/synonymHit.ts +7 -10
  502. package/model/synonymType.ts +2 -2
  503. package/model/tagFilters.ts +2 -2
  504. package/model/taskStatus.ts +4 -1
  505. package/model/timeRange.ts +3 -3
  506. package/model/typoTolerance.ts +2 -2
  507. package/model/typoToleranceEnum.ts +4 -1
  508. package/model/updateApiKeyResponse.ts +3 -3
  509. package/model/updatedAtResponse.ts +4 -4
  510. package/model/updatedAtWithObjectIdResponse.ts +5 -5
  511. package/model/updatedRuleResponse.ts +4 -4
  512. package/model/userHighlightResult.ts +3 -9
  513. package/model/userHit.ts +3 -3
  514. package/model/userId.ts +4 -4
  515. package/model/value.ts +2 -2
  516. package/package.json +10 -9
  517. package/dist/model/synonymHitHighlightResult.d.ts +0 -12
  518. package/dist/model/synonymHitHighlightResult.d.ts.map +0 -1
  519. package/model/synonymHitHighlightResult.ts +0 -15
@@ -1,21 +1,21 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * GetObjects operation on an index.
4
+ * Request body for retrieving records.
5
5
  */
6
6
  export type GetObjectsRequest = {
7
7
  /**
8
- * List of attributes to retrieve. By default, all retrievable attributes are returned.
8
+ * Attributes to retrieve. If not specified, all retrievable attributes are returned.
9
9
  */
10
10
  attributesToRetrieve?: string[];
11
11
 
12
12
  /**
13
- * ID of the object within that index.
13
+ * Object ID for the record to retrieve.
14
14
  */
15
15
  objectID: string;
16
16
 
17
17
  /**
18
- * Name of the index containing the object.
18
+ * Index from which to retrieve the records.
19
19
  */
20
20
  indexName: string;
21
21
  };
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type GetObjectsResponse<T = Record<string, any>> = {
4
4
  /**
5
- * List of results fetched.
5
+ * Retrieved records.
6
6
  */
7
7
  results: T[];
8
8
  };
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { TaskStatus } from './taskStatus';
4
4
 
@@ -1,13 +1,13 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { UserId } from './userId';
4
4
 
5
5
  /**
6
- * Array of userIDs and clusters.
6
+ * User IDs and clusters.
7
7
  */
8
8
  export type GetTopUserIdsResponse = {
9
9
  /**
10
- * Mapping of cluster names to top users.
10
+ * Key-value pairs with cluster names as keys and lists of users with the highest number of records per cluster as values.
11
11
  */
12
12
  topUsers: Array<Record<string, UserId[]>>;
13
13
  };
@@ -1,13 +1,13 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type HasPendingMappingsResponse = {
4
4
  /**
5
- * If there is any clusters with pending mapping state.
5
+ * Whether there are clusters undergoing migration, creation, or deletion.
6
6
  */
7
7
  pending: boolean;
8
8
 
9
9
  /**
10
- * Describe cluster pending (migrating, creating, deleting) mapping state.
10
+ * Cluster pending mapping state: migrating, creating, deleting.
11
11
  */
12
12
  clusters?: Record<string, string[]>;
13
13
  };
@@ -1,5 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { HighlightResultOption } from './highlightResultOption';
4
4
 
5
- export type HighlightResult = HighlightResultOption | HighlightResultOption[];
5
+ export type HighlightResult =
6
+ | HighlightResultOption
7
+ | HighlightResultOption[]
8
+ | Record<string, HighlightResultOption>;
@@ -1,20 +1,20 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { MatchLevel } from './matchLevel';
4
4
 
5
5
  /**
6
- * Show highlighted section and words matched on a query.
6
+ * Surround words that match the query with HTML tags for highlighting.
7
7
  */
8
8
  export type HighlightResultOption = {
9
9
  /**
10
- * Markup text with occurrences highlighted.
10
+ * Highlighted attribute value, including HTML tags.
11
11
  */
12
12
  value: string;
13
13
 
14
14
  matchLevel: MatchLevel;
15
15
 
16
16
  /**
17
- * List of words from the query that matched the object.
17
+ * List of matched words from the search query.
18
18
  */
19
19
  matchedWords: string[];
20
20
 
package/model/hit.ts CHANGED
@@ -1,25 +1,25 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { HighlightResult } from './highlightResult';
4
4
  import type { RankingInfo } from './rankingInfo';
5
5
  import type { SnippetResult } from './snippetResult';
6
6
 
7
7
  /**
8
- * A single hit.
8
+ * Search result. A hit is a record from your index, augmented with special attributes for highlighting, snippeting, and ranking.
9
9
  */
10
10
  export type Hit<T = Record<string, any>> = T & {
11
11
  /**
12
- * Unique identifier of the object.
12
+ * Unique record identifier.
13
13
  */
14
14
  objectID: string;
15
15
 
16
16
  /**
17
- * Show highlighted section and words matched on a query.
17
+ * Surround words that match the query with HTML tags for highlighting.
18
18
  */
19
19
  _highlightResult?: Record<string, HighlightResult>;
20
20
 
21
21
  /**
22
- * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
22
+ * Snippets that show the context around a matching search query.
23
23
  */
24
24
  _snippetResult?: Record<string, SnippetResult>;
25
25
 
@@ -1,6 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { SupportedLanguage } from './supportedLanguage';
2
4
 
3
5
  /**
4
- * Treats singular, plurals, and other forms of declensions as matching terms. IgnorePlurals is used in conjunction with the queryLanguages setting. List: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the ignore plurals functionality, where singulars and plurals are considered equivalent (foot = feet). The languages supported here are either every language (this is the default, see list of languages below), or those set by queryLanguages. False: disables ignore plurals, where singulars and plurals are not considered the same for matching purposes (foot will not find feet).
6
+ * Treat singular, plurals, and other forms of declensions as equivalent. You should only use this feature for the languages used in your index.
5
7
  */
6
- export type IgnorePlurals = string[] | boolean;
8
+ export type IgnorePlurals = SupportedLanguage[] | boolean;
package/model/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export * from './acl';
4
4
  export * from './action';
@@ -7,6 +7,9 @@ export * from './advancedSyntaxFeatures';
7
7
  export * from './alternativesAsExact';
8
8
  export * from './anchoring';
9
9
  export * from './apiKey';
10
+ export * from './apiKeyOperation';
11
+ export * from './aroundPrecision';
12
+ export * from './aroundPrecisionFromValueInner';
10
13
  export * from './aroundRadius';
11
14
  export * from './aroundRadiusAll';
12
15
  export * from './assignUserIdParams';
@@ -39,6 +42,7 @@ export * from './consequenceQueryObject';
39
42
  export * from './createdAtResponse';
40
43
  export * from './cursor';
41
44
  export * from './deleteApiKeyResponse';
45
+ export * from './deleteByParams';
42
46
  export * from './deleteSourceResponse';
43
47
  export * from './deletedAtResponse';
44
48
  export * from './dictionaryAction';
@@ -52,6 +56,7 @@ export * from './edit';
52
56
  export * from './editType';
53
57
  export * from './errorBase';
54
58
  export * from './exactOnSingleWordQuery';
59
+ export * from './exhaustive';
55
60
  export * from './facetFilters';
56
61
  export * from './facetHits';
57
62
  export * from './facetOrdering';
@@ -84,6 +89,7 @@ export * from './logType';
84
89
  export * from './matchLevel';
85
90
  export * from './matchedGeoLocation';
86
91
  export * from './mixedSearchFilters';
92
+ export * from './mode';
87
93
  export * from './multipleBatchRequest';
88
94
  export * from './multipleBatchResponse';
89
95
  export * from './numericFilters';
@@ -98,6 +104,9 @@ export * from './promoteObjectIDs';
98
104
  export * from './queryType';
99
105
  export * from './rankingInfo';
100
106
  export * from './reRankingApplyFilter';
107
+ export * from './redirect';
108
+ export * from './redirectRuleIndexMetadata';
109
+ export * from './redirectRuleIndexMetadataData';
101
110
  export * from './removeStopWords';
102
111
  export * from './removeUserIdResponse';
103
112
  export * from './removeWordsIfNoResults';
@@ -108,6 +117,7 @@ export * from './saveObjectResponse';
108
117
  export * from './saveSynonymResponse';
109
118
  export * from './scopeType';
110
119
  export * from './searchDictionaryEntriesParams';
120
+ export * from './searchDictionaryEntriesResponse';
111
121
  export * from './searchForFacetValuesRequest';
112
122
  export * from './searchForFacetValuesResponse';
113
123
  export * from './searchForFacets';
@@ -123,6 +133,7 @@ export * from './searchParamsString';
123
133
  export * from './searchQuery';
124
134
  export * from './searchResponse';
125
135
  export * from './searchResponses';
136
+ export * from './searchResult';
126
137
  export * from './searchRulesParams';
127
138
  export * from './searchRulesResponse';
128
139
  export * from './searchStrategy';
@@ -132,13 +143,15 @@ export * from './searchTypeDefault';
132
143
  export * from './searchTypeFacet';
133
144
  export * from './searchUserIdsParams';
134
145
  export * from './searchUserIdsResponse';
146
+ export * from './securedAPIKeyRestrictions';
147
+ export * from './semanticSearch';
135
148
  export * from './snippetResult';
136
149
  export * from './snippetResultOption';
137
150
  export * from './sortRemainingBy';
138
151
  export * from './source';
139
152
  export * from './standardEntries';
153
+ export * from './supportedLanguage';
140
154
  export * from './synonymHit';
141
- export * from './synonymHitHighlightResult';
142
155
  export * from './synonymType';
143
156
  export * from './tagFilters';
144
157
  export * from './taskStatus';
@@ -1,9 +1,9 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { BaseIndexSettings } from './baseIndexSettings';
4
4
  import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
5
5
 
6
6
  /**
7
- * The Algolia index settings.
7
+ * Index settings.
8
8
  */
9
9
  export type IndexSettings = BaseIndexSettings & IndexSettingsAsSearchParams;
@@ -1,69 +1,58 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
4
4
  import type { AlternativesAsExact } from './alternativesAsExact';
5
5
  import type { Distinct } from './distinct';
6
6
  import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
7
7
  import type { IgnorePlurals } from './ignorePlurals';
8
+ import type { Mode } from './mode';
8
9
  import type { QueryType } from './queryType';
10
+ import type { ReRankingApplyFilter } from './reRankingApplyFilter';
9
11
  import type { RemoveStopWords } from './removeStopWords';
10
12
  import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
11
13
  import type { RenderingContent } from './renderingContent';
14
+ import type { SemanticSearch } from './semanticSearch';
15
+ import type { SupportedLanguage } from './supportedLanguage';
12
16
  import type { TypoTolerance } from './typoTolerance';
13
17
 
14
18
  export type IndexSettingsAsSearchParams = {
15
19
  /**
16
- * The complete list of attributes that will be used for faceting.
17
- */
18
- attributesForFaceting?: string[];
19
-
20
- /**
21
- * List of attributes that can\'t be retrieved at query time.
22
- */
23
- unretrievableAttributes?: string[];
24
-
25
- /**
26
- * This parameter controls which attributes to retrieve and which not to retrieve.
20
+ * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
27
21
  */
28
22
  attributesToRetrieve?: string[];
29
23
 
30
24
  /**
31
- * Restricts a given query to look in only a subset of your searchable attributes.
32
- */
33
- restrictSearchableAttributes?: string[];
34
-
35
- /**
36
- * Controls how Algolia should sort your results.
25
+ * Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
37
26
  */
38
27
  ranking?: string[];
39
28
 
40
29
  /**
41
- * Specifies the custom ranking criterion.
30
+ * Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
42
31
  */
43
32
  customRanking?: string[];
44
33
 
45
34
  /**
46
- * Controls the relevancy threshold below which less relevant results aren\'t included in the results.
35
+ * Relevancy threshold below which less relevant results aren\'t included in the results. You can only set `relevancyStrictness` on [virtual replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas). Use this setting to strike a balance between the relevance and number of returned results.
47
36
  */
48
37
  relevancyStrictness?: number;
49
38
 
50
39
  /**
51
- * List of attributes to highlight.
40
+ * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
52
41
  */
53
42
  attributesToHighlight?: string[];
54
43
 
55
44
  /**
56
- * List of attributes to snippet, with an optional maximum number of words to snippet.
45
+ * Attributes for which to enable snippets. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
57
46
  */
58
47
  attributesToSnippet?: string[];
59
48
 
60
49
  /**
61
- * The HTML string to insert before the highlighted parts in all highlight and snippet results.
50
+ * HTML tag to insert before the highlighted parts in all highlighted results and snippets.
62
51
  */
63
52
  highlightPreTag?: string;
64
53
 
65
54
  /**
66
- * The HTML string to insert after the highlighted parts in all highlight and snippet results.
55
+ * HTML tag to insert after the highlighted parts in all highlighted results and snippets.
67
56
  */
68
57
  highlightPostTag?: string;
69
58
 
@@ -73,34 +62,34 @@ export type IndexSettingsAsSearchParams = {
73
62
  snippetEllipsisText?: string;
74
63
 
75
64
  /**
76
- * Restrict highlighting and snippeting to items that matched the query.
65
+ * Whether to restrict highlighting and snippeting to items that at least partially matched the search query. By default, all items are highlighted and snippeted.
77
66
  */
78
67
  restrictHighlightAndSnippetArrays?: boolean;
79
68
 
80
69
  /**
81
- * Set the number of hits per page.
70
+ * Number of hits per page.
82
71
  */
83
72
  hitsPerPage?: number;
84
73
 
85
74
  /**
86
- * Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
75
+ * Minimum number of characters a word in the search query must contain to accept matches with [one typo](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
87
76
  */
88
77
  minWordSizefor1Typo?: number;
89
78
 
90
79
  /**
91
- * Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
80
+ * Minimum number of characters a word in the search query must contain to accept matches with [two typos](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/in-depth/configuring-typo-tolerance/#configuring-word-length-for-typos).
92
81
  */
93
82
  minWordSizefor2Typos?: number;
94
83
 
95
84
  typoTolerance?: TypoTolerance;
96
85
 
97
86
  /**
98
- * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
87
+ * Whether to allow typos on numbers in the search query. Turn off this setting to reduce the number of irrelevant matches when searching in large sets of similar numbers.
99
88
  */
100
89
  allowTyposOnNumericTokens?: boolean;
101
90
 
102
91
  /**
103
- * List of attributes on which you want to disable typo tolerance.
92
+ * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
104
93
  */
105
94
  disableTypoToleranceOnAttributes?: string[];
106
95
 
@@ -109,27 +98,27 @@ export type IndexSettingsAsSearchParams = {
109
98
  removeStopWords?: RemoveStopWords;
110
99
 
111
100
  /**
112
- * List of characters that the engine shouldn\'t automatically normalize.
101
+ * Characters for which diacritics should be preserved. By default, Algolia removes diacritics from letters. For example, `é` becomes `e`. If this causes issues in your search, you can specify characters that should keep their diacritics.
113
102
  */
114
103
  keepDiacriticsOnCharacters?: string;
115
104
 
116
105
  /**
117
- * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
106
+ * Languages for language-specific query processing steps such as plurals, stop-word removal, and word-detection dictionaries. This setting sets a default list of languages used by the `removeStopWords` and `ignorePlurals` settings. This setting also sets a dictionary for word detection in the logogram-based [CJK](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/normalization/#normalization-for-logogram-based-languages-cjk) languages. To support this, you must place the CJK language **first**. **You should always specify a query language.** If you don\'t specify an indexing language, the search engine uses all [supported languages](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/), or the languages you specified with the `ignorePlurals` or `removeStopWords` parameters. This can lead to unexpected search results. For more information, see [Language-specific configuration](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/).
118
107
  */
119
- queryLanguages?: string[];
108
+ queryLanguages?: SupportedLanguage[];
120
109
 
121
110
  /**
122
- * Splits compound words into their composing atoms in the query.
111
+ * Whether to split compound words into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian.
123
112
  */
124
113
  decompoundQuery?: boolean;
125
114
 
126
115
  /**
127
- * Whether Rules should be globally enabled.
116
+ * Whether to enable rules.
128
117
  */
129
118
  enableRules?: boolean;
130
119
 
131
120
  /**
132
- * Enable the Personalization feature.
121
+ * Whether to enable Personalization.
133
122
  */
134
123
  enablePersonalization?: boolean;
135
124
 
@@ -137,69 +126,80 @@ export type IndexSettingsAsSearchParams = {
137
126
 
138
127
  removeWordsIfNoResults?: RemoveWordsIfNoResults;
139
128
 
129
+ mode?: Mode;
130
+
131
+ semanticSearch?: SemanticSearch;
132
+
140
133
  /**
141
- * Enables the advanced query syntax.
134
+ * Whether to support phrase matching and excluding words from search queries. Use the `advancedSyntaxFeatures` parameter to control which feature is supported.
142
135
  */
143
136
  advancedSyntax?: boolean;
144
137
 
145
138
  /**
146
- * A list of words that should be considered as optional when found in the query.
139
+ * Words that should be considered optional when found in the query. By default, records must match all words in the search query to be included in the search results. Adding optional words can help to increase the number of search results by running an additional search query that doesn\'t include the optional words. For example, if the search query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more words **and** all its words are optional, the number of matched words required for a record to be included in the search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched words. - If `optionalWords` has 10 or more words, the number of required matched words increases by the number of optional words dividied by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 4 matched words. For more information, see [Optional words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
147
140
  */
148
141
  optionalWords?: string[];
149
142
 
150
143
  /**
151
- * List of attributes on which you want to disable the exact ranking criterion.
144
+ * Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
152
145
  */
153
146
  disableExactOnAttributes?: string[];
154
147
 
155
148
  exactOnSingleWordQuery?: ExactOnSingleWordQuery;
156
149
 
157
150
  /**
158
- * List of alternatives that should be considered an exact match by the exact ranking criterion.
151
+ * Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. <dl> <dt><code>ignorePlurals</code></dt> <dd> Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. </dd> <dt><code>singleWordSynonym</code></dt> <dd> Single-word synonyms, such as \"NY/NYC\" are considered exact matches. </dd> <dt><code>multiWordsSynonym</code></dt> <dd> Multi-word synonyms, such as \"NY/New York\" are considered exact matches. </dd> </dl>.
159
152
  */
160
153
  alternativesAsExact?: AlternativesAsExact[];
161
154
 
162
155
  /**
163
- * Allows you to specify which advanced syntax features are active when ‘advancedSyntax\' is enabled.
156
+ * Advanced search syntax features you want to support. <dl> <dt><code>exactPhrase</code></dt> <dd> Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". </dd> <dt><code>excludeWords</code></dt> <dd> Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". </dd> </dl> This setting only has an effect if `advancedSyntax` is true.
164
157
  */
165
158
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
166
159
 
167
160
  distinct?: Distinct;
168
161
 
169
162
  /**
170
- * Name of the de-duplication attribute to be used with the distinct feature.
163
+ * Whether to replace a highlighted word with the matched synonym. By default, the original words are highlighted even if a synonym matches. For example, with `home` as a synonym for `house` and a search for `home`, records matching either \"home\" or \"house\" are included in the search results, and either \"home\" or \"house\" are highlighted. With `replaceSynonymsInHighlight` set to `true`, a search for `home` still matches the same records, but all occurences of \"house\" are replaced by \"home\" in the highlighted response.
171
164
  */
172
- attributeForDistinct?: string;
165
+ replaceSynonymsInHighlight?: boolean;
173
166
 
174
167
  /**
175
- * Whether to take into account an index\'s synonyms for a particular search.
168
+ * Minimum proximity score for two matching words. This adjusts the [Proximity ranking criterion](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/#proximity) by equally scoring matches that are farther apart. For example, if `minProximity` is 2, neighboring matches and matches with one word between them would have the same score.
176
169
  */
177
- synonyms?: boolean;
170
+ minProximity?: number;
178
171
 
179
172
  /**
180
- * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
173
+ * Properties to include in the API response of `search` and `browse` requests. By default, all response properties are included. To reduce the response size, you can select, which attributes should be included. You can\'t exclude these properties: `message`, `warning`, `cursor`, `serverUsed`, `indexUsed`, `abTestVariantID`, `parsedQuery`, or any property triggered by the `getRankingInfo` parameter. Don\'t exclude properties that you might need in your search UI.
181
174
  */
182
- replaceSynonymsInHighlight?: boolean;
175
+ responseFields?: string[];
183
176
 
184
177
  /**
185
- * Precision of the proximity ranking criterion.
178
+ * Maximum number of facet values to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
186
179
  */
187
- minProximity?: number;
180
+ maxFacetHits?: number;
188
181
 
189
182
  /**
190
- * Choose which fields to return in the API response. This parameters applies to search and browse queries.
183
+ * Maximum number of facet values to return for each facet.
191
184
  */
192
- responseFields?: string[];
185
+ maxValuesPerFacet?: number;
193
186
 
194
187
  /**
195
- * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
188
+ * Order in which to retrieve facet values. <dl> <dt><code>count</code></dt> <dd> Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. </dd> <dt><code>alpha</code></dt> <dd>Retrieve facet values alphabetically.</dd> </dl> This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
196
189
  */
197
- maxFacetHits?: number;
190
+ sortFacetValuesBy?: string;
198
191
 
199
192
  /**
200
- * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
193
+ * Whether the best matching attribute should be determined by minimum proximity. This setting only affects ranking if the Attribute ranking criterion comes before Proximity in the `ranking` setting. If true, the best matching attribute is selected based on the minimum proximity of multiple matches. Otherwise, the best matching attribute is determined by the order in the `searchableAttributes` setting.
201
194
  */
202
195
  attributeCriteriaComputedByMinProximity?: boolean;
203
196
 
204
197
  renderingContent?: RenderingContent;
198
+
199
+ /**
200
+ * Whether this search will use [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/). This setting only has an effect if you activated Dynamic Re-Ranking for this index in the Algolia dashboard.
201
+ */
202
+ enableReRanking?: boolean;
203
+
204
+ reRankingApplyFilter?: ReRankingApplyFilter | null;
205
205
  };
@@ -1,9 +1,9 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { DictionaryLanguage } from './dictionaryLanguage';
4
4
 
5
5
  /**
6
- * A dictionary language.
6
+ * Dictionary language.
7
7
  */
8
8
  export type Languages = {
9
9
  plurals: DictionaryLanguage | null;
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { GetApiKeyResponse } from './getApiKeyResponse';
4
4
 
5
5
  export type ListApiKeysResponse = {
6
6
  /**
7
- * List of api keys.
7
+ * API keys.
8
8
  */
9
9
  keys: GetApiKeyResponse[];
10
10
  };
@@ -1,11 +1,11 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Array of clusters.
4
+ * Clusters.
5
5
  */
6
6
  export type ListClustersResponse = {
7
7
  /**
8
- * Mapping of cluster names to top users.
8
+ * Key-value pairs with cluster names as keys and lists of users with the highest number of records per cluster as values.
9
9
  */
10
10
  topUsers: string[];
11
11
  };
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { FetchedIndex } from './fetchedIndex';
4
4
 
5
5
  export type ListIndicesResponse = {
6
6
  /**
7
- * List of the fetched indices.
7
+ * All indices in your Algolia application.
8
8
  */
9
9
  items: FetchedIndex[];
10
10
 
@@ -1,13 +1,13 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { UserId } from './userId';
4
4
 
5
5
  /**
6
- * UserIDs data.
6
+ * User ID data.
7
7
  */
8
8
  export type ListUserIdsResponse = {
9
9
  /**
10
- * List of userIDs.
10
+ * User IDs.
11
11
  */
12
12
  userIDs: UserId[];
13
13
  };