@algolia/client-search 5.0.0-alpha.1 → 5.0.0-alpha.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (531) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +5 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{client-search.cjs.js → client-search.cjs} +2116 -1869
  6. package/dist/client-search.esm.browser.js +2356 -2137
  7. package/dist/client-search.esm.node.js +2117 -1868
  8. package/dist/client-search.umd.js +2 -2
  9. package/dist/model/acl.d.ts +4 -1
  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/aroundPrecision.d.ts +6 -0
  24. package/dist/model/aroundPrecision.d.ts.map +1 -0
  25. package/dist/model/aroundPrecisionFromValueInner.d.ts +5 -0
  26. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -0
  27. package/dist/model/aroundRadius.d.ts +5 -5
  28. package/dist/model/aroundRadius.d.ts.map +1 -1
  29. package/dist/model/aroundRadiusAll.d.ts +1 -1
  30. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  31. package/dist/model/assignUserIdParams.d.ts +9 -9
  32. package/dist/model/assignUserIdParams.d.ts.map +1 -1
  33. package/dist/model/attributeToUpdate.d.ts +3 -0
  34. package/dist/model/attributeToUpdate.d.ts.map +1 -0
  35. package/dist/model/automaticFacetFilter.d.ts +17 -17
  36. package/dist/model/automaticFacetFilter.d.ts.map +1 -1
  37. package/dist/model/automaticFacetFilters.d.ts +5 -5
  38. package/dist/model/automaticFacetFilters.d.ts.map +1 -1
  39. package/dist/model/baseGetApiKeyResponse.d.ts +11 -0
  40. package/dist/model/baseGetApiKeyResponse.d.ts.map +1 -0
  41. package/dist/model/baseIndexSettings.d.ts +66 -58
  42. package/dist/model/baseIndexSettings.d.ts.map +1 -1
  43. package/dist/model/baseSearchParams.d.ts +3 -3
  44. package/dist/model/baseSearchParams.d.ts.map +1 -1
  45. package/dist/model/baseSearchParamsWithoutQuery.d.ts +118 -122
  46. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  47. package/dist/model/baseSearchResponse.d.ts +105 -101
  48. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  49. package/dist/model/batchAssignUserIdsParams.d.ts +13 -13
  50. package/dist/model/batchAssignUserIdsParams.d.ts.map +1 -1
  51. package/dist/model/batchDictionaryEntriesParams.d.ts +14 -14
  52. package/dist/model/batchDictionaryEntriesParams.d.ts.map +1 -1
  53. package/dist/model/batchDictionaryEntriesRequest.d.ts +6 -6
  54. package/dist/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
  55. package/dist/model/batchParams.d.ts +7 -7
  56. package/dist/model/batchParams.d.ts.map +1 -1
  57. package/dist/model/batchRequest.d.ts +9 -0
  58. package/dist/model/batchRequest.d.ts.map +1 -0
  59. package/dist/model/batchResponse.d.ts +10 -10
  60. package/dist/model/batchResponse.d.ts.map +1 -1
  61. package/dist/model/batchWriteParams.d.ts +7 -7
  62. package/dist/model/batchWriteParams.d.ts.map +1 -1
  63. package/dist/model/browseParams.d.ts +4 -0
  64. package/dist/model/browseParams.d.ts.map +1 -0
  65. package/dist/model/browseParamsObject.d.ts +4 -0
  66. package/dist/model/browseParamsObject.d.ts.map +1 -0
  67. package/dist/model/browseResponse.d.ts +4 -4
  68. package/dist/model/browseResponse.d.ts.map +1 -1
  69. package/dist/model/builtInOperation.d.ts +11 -11
  70. package/dist/model/builtInOperation.d.ts.map +1 -1
  71. package/dist/model/builtInOperationType.d.ts +4 -4
  72. package/dist/model/builtInOperationType.d.ts.map +1 -1
  73. package/dist/model/clientMethodProps.d.ts +706 -703
  74. package/dist/model/clientMethodProps.d.ts.map +1 -1
  75. package/dist/model/condition.d.ts +16 -16
  76. package/dist/model/condition.d.ts.map +1 -1
  77. package/dist/model/consequence.d.ts +25 -25
  78. package/dist/model/consequence.d.ts.map +1 -1
  79. package/dist/model/consequenceHide.d.ts +9 -9
  80. package/dist/model/consequenceHide.d.ts.map +1 -1
  81. package/dist/model/consequenceParams.d.ts +4 -4
  82. package/dist/model/consequenceParams.d.ts.map +1 -1
  83. package/dist/model/consequenceQuery.d.ts +5 -5
  84. package/dist/model/consequenceQuery.d.ts.map +1 -1
  85. package/dist/model/consequenceQueryObject.d.ts +11 -11
  86. package/dist/model/consequenceQueryObject.d.ts.map +1 -1
  87. package/dist/model/createdAtResponse.d.ts +9 -9
  88. package/dist/model/createdAtResponse.d.ts.map +1 -1
  89. package/dist/model/cursor.d.ts +7 -0
  90. package/dist/model/cursor.d.ts.map +1 -0
  91. package/dist/model/deleteApiKeyResponse.d.ts +6 -6
  92. package/dist/model/deleteApiKeyResponse.d.ts.map +1 -1
  93. package/dist/model/deleteByParams.d.ts +27 -0
  94. package/dist/model/deleteByParams.d.ts.map +1 -0
  95. package/dist/model/deleteSourceResponse.d.ts +6 -6
  96. package/dist/model/deleteSourceResponse.d.ts.map +1 -1
  97. package/dist/model/deletedAtResponse.d.ts +13 -13
  98. package/dist/model/deletedAtResponse.d.ts.map +1 -1
  99. package/dist/model/dictionaryAction.d.ts +4 -4
  100. package/dist/model/dictionaryAction.d.ts.map +1 -1
  101. package/dist/model/dictionaryEntry.d.ts +27 -27
  102. package/dist/model/dictionaryEntry.d.ts.map +1 -1
  103. package/dist/model/dictionaryEntryState.d.ts +4 -4
  104. package/dist/model/dictionaryEntryState.d.ts.map +1 -1
  105. package/dist/model/dictionaryLanguage.d.ts +9 -9
  106. package/dist/model/dictionaryLanguage.d.ts.map +1 -1
  107. package/dist/model/dictionarySettingsParams.d.ts +7 -7
  108. package/dist/model/dictionarySettingsParams.d.ts.map +1 -1
  109. package/dist/model/dictionaryType.d.ts +1 -1
  110. package/dist/model/dictionaryType.d.ts.map +1 -1
  111. package/dist/model/distinct.d.ts +5 -0
  112. package/dist/model/distinct.d.ts.map +1 -0
  113. package/dist/model/edit.d.ts +12 -12
  114. package/dist/model/edit.d.ts.map +1 -1
  115. package/dist/model/editType.d.ts +4 -4
  116. package/dist/model/editType.d.ts.map +1 -1
  117. package/dist/model/errorBase.d.ts +6 -6
  118. package/dist/model/errorBase.d.ts.map +1 -1
  119. package/dist/model/exactOnSingleWordQuery.d.ts +4 -4
  120. package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
  121. package/dist/model/exhaustive.d.ts +26 -0
  122. package/dist/model/exhaustive.d.ts.map +1 -0
  123. package/dist/model/facetFilters.d.ts +5 -5
  124. package/dist/model/facetFilters.d.ts.map +1 -1
  125. package/dist/model/facetHits.d.ts +14 -14
  126. package/dist/model/facetHits.d.ts.map +1 -1
  127. package/dist/model/facetOrdering.d.ts +12 -12
  128. package/dist/model/facetOrdering.d.ts.map +1 -1
  129. package/dist/model/facets.d.ts +9 -9
  130. package/dist/model/facets.d.ts.map +1 -1
  131. package/dist/model/facetsStats.d.ts +18 -18
  132. package/dist/model/facetsStats.d.ts.map +1 -1
  133. package/dist/model/fetchedIndex.d.ts +46 -46
  134. package/dist/model/fetchedIndex.d.ts.map +1 -1
  135. package/dist/model/getApiKeyResponse.d.ts +4 -0
  136. package/dist/model/getApiKeyResponse.d.ts.map +1 -0
  137. package/dist/model/getDictionarySettingsResponse.d.ts +4 -4
  138. package/dist/model/getDictionarySettingsResponse.d.ts.map +1 -1
  139. package/dist/model/getLogsResponse.d.ts +4 -4
  140. package/dist/model/getLogsResponse.d.ts.map +1 -1
  141. package/dist/model/getObjectsParams.d.ts +7 -7
  142. package/dist/model/getObjectsParams.d.ts.map +1 -1
  143. package/dist/model/getObjectsRequest.d.ts +18 -0
  144. package/dist/model/getObjectsRequest.d.ts.map +1 -0
  145. package/dist/model/getObjectsResponse.d.ts +6 -6
  146. package/dist/model/getObjectsResponse.d.ts.map +1 -1
  147. package/dist/model/getTaskResponse.d.ts +4 -4
  148. package/dist/model/getTaskResponse.d.ts.map +1 -1
  149. package/dist/model/getTopUserIdsResponse.d.ts +10 -10
  150. package/dist/model/getTopUserIdsResponse.d.ts.map +1 -1
  151. package/dist/model/hasPendingMappingsResponse.d.ts +10 -10
  152. package/dist/model/hasPendingMappingsResponse.d.ts.map +1 -1
  153. package/dist/model/highlightResult.d.ts +2 -2
  154. package/dist/model/highlightResult.d.ts.map +1 -1
  155. package/dist/model/highlightResultOption.d.ts +19 -19
  156. package/dist/model/highlightResultOption.d.ts.map +1 -1
  157. package/dist/model/hit.d.ts +22 -22
  158. package/dist/model/hit.d.ts.map +1 -1
  159. package/dist/model/ignorePlurals.d.ts +4 -4
  160. package/dist/model/ignorePlurals.d.ts.map +1 -1
  161. package/dist/model/index.d.ts +163 -152
  162. package/dist/model/index.d.ts.map +1 -1
  163. package/dist/model/indexSettings.d.ts +6 -6
  164. package/dist/model/indexSettings.d.ts.map +1 -1
  165. package/dist/model/indexSettingsAsSearchParams.d.ts +162 -158
  166. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  167. package/dist/model/languages.d.ts +9 -9
  168. package/dist/model/languages.d.ts.map +1 -1
  169. package/dist/model/listApiKeysResponse.d.ts +7 -7
  170. package/dist/model/listApiKeysResponse.d.ts.map +1 -1
  171. package/dist/model/listClustersResponse.d.ts +9 -9
  172. package/dist/model/listClustersResponse.d.ts.map +1 -1
  173. package/dist/model/listIndicesResponse.d.ts +11 -11
  174. package/dist/model/listIndicesResponse.d.ts.map +1 -1
  175. package/dist/model/listUserIdsResponse.d.ts +10 -10
  176. package/dist/model/listUserIdsResponse.d.ts.map +1 -1
  177. package/dist/model/log.d.ts +63 -63
  178. package/dist/model/log.d.ts.map +1 -1
  179. package/dist/model/logQuery.d.ts +14 -14
  180. package/dist/model/logQuery.d.ts.map +1 -1
  181. package/dist/model/logType.d.ts +1 -1
  182. package/dist/model/logType.d.ts.map +1 -1
  183. package/dist/model/matchLevel.d.ts +4 -4
  184. package/dist/model/matchLevel.d.ts.map +1 -1
  185. package/dist/model/matchedGeoLocation.d.ts +14 -14
  186. package/dist/model/matchedGeoLocation.d.ts.map +1 -1
  187. package/dist/model/mixedSearchFilters.d.ts +1 -1
  188. package/dist/model/mixedSearchFilters.d.ts.map +1 -1
  189. package/dist/model/mode.d.ts +5 -0
  190. package/dist/model/mode.d.ts.map +1 -0
  191. package/dist/model/multipleBatchRequest.d.ts +13 -0
  192. package/dist/model/multipleBatchRequest.d.ts.map +1 -0
  193. package/dist/model/multipleBatchResponse.d.ts +10 -10
  194. package/dist/model/multipleBatchResponse.d.ts.map +1 -1
  195. package/dist/model/numericFilters.d.ts +5 -5
  196. package/dist/model/numericFilters.d.ts.map +1 -1
  197. package/dist/model/operationIndexParams.d.ts +13 -13
  198. package/dist/model/operationIndexParams.d.ts.map +1 -1
  199. package/dist/model/operationType.d.ts +4 -4
  200. package/dist/model/operationType.d.ts.map +1 -1
  201. package/dist/model/optionalFilters.d.ts +5 -5
  202. package/dist/model/optionalFilters.d.ts.map +1 -1
  203. package/dist/model/params.d.ts +12 -12
  204. package/dist/model/params.d.ts.map +1 -1
  205. package/dist/model/personalization.d.ts +14 -14
  206. package/dist/model/personalization.d.ts.map +1 -1
  207. package/dist/model/promote.d.ts +3 -3
  208. package/dist/model/promote.d.ts.map +1 -1
  209. package/dist/model/promoteObjectID.d.ts +13 -13
  210. package/dist/model/promoteObjectID.d.ts.map +1 -1
  211. package/dist/model/promoteObjectIDs.d.ts +13 -13
  212. package/dist/model/promoteObjectIDs.d.ts.map +1 -1
  213. package/dist/model/queryType.d.ts +4 -4
  214. package/dist/model/queryType.d.ts.map +1 -1
  215. package/dist/model/rankingInfo.d.ts +50 -50
  216. package/dist/model/rankingInfo.d.ts.map +1 -1
  217. package/dist/model/reRankingApplyFilter.d.ts +5 -5
  218. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  219. package/dist/model/redirect.d.ts +8 -0
  220. package/dist/model/redirect.d.ts.map +1 -0
  221. package/dist/model/redirectRuleIndexMetadata.d.ts +21 -0
  222. package/dist/model/redirectRuleIndexMetadata.d.ts.map +1 -0
  223. package/dist/model/redirectRuleIndexMetadataData.d.ts +7 -0
  224. package/dist/model/redirectRuleIndexMetadataData.d.ts.map +1 -0
  225. package/dist/model/removeStopWords.d.ts +4 -4
  226. package/dist/model/removeStopWords.d.ts.map +1 -1
  227. package/dist/model/removeUserIdResponse.d.ts +6 -6
  228. package/dist/model/removeUserIdResponse.d.ts.map +1 -1
  229. package/dist/model/removeWordsIfNoResults.d.ts +4 -4
  230. package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
  231. package/dist/model/renderingContent.d.ts +7 -7
  232. package/dist/model/renderingContent.d.ts.map +1 -1
  233. package/dist/model/replaceSourceResponse.d.ts +6 -6
  234. package/dist/model/replaceSourceResponse.d.ts.map +1 -1
  235. package/dist/model/rule.d.ts +29 -29
  236. package/dist/model/rule.d.ts.map +1 -1
  237. package/dist/model/saveObjectResponse.d.ts +14 -11
  238. package/dist/model/saveObjectResponse.d.ts.map +1 -1
  239. package/dist/model/saveSynonymResponse.d.ts +14 -14
  240. package/dist/model/saveSynonymResponse.d.ts.map +1 -1
  241. package/dist/model/scopeType.d.ts +1 -1
  242. package/dist/model/scopeType.d.ts.map +1 -1
  243. package/dist/model/searchDictionaryEntriesParams.d.ts +21 -21
  244. package/dist/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  245. package/dist/model/searchForFacetValuesRequest.d.ts +14 -14
  246. package/dist/model/searchForFacetValuesRequest.d.ts.map +1 -1
  247. package/dist/model/searchForFacetValuesResponse.d.ts +12 -4
  248. package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -1
  249. package/dist/model/searchForFacets.d.ts +3 -3
  250. package/dist/model/searchForFacets.d.ts.map +1 -1
  251. package/dist/model/searchForFacetsOptions.d.ts +20 -20
  252. package/dist/model/searchForFacetsOptions.d.ts.map +1 -1
  253. package/dist/model/searchForHits.d.ts +3 -3
  254. package/dist/model/searchForHits.d.ts.map +1 -1
  255. package/dist/model/searchForHitsOptions.d.ts +12 -12
  256. package/dist/model/searchForHitsOptions.d.ts.map +1 -1
  257. package/dist/model/searchHits.d.ts +12 -4
  258. package/dist/model/searchHits.d.ts.map +1 -1
  259. package/dist/model/searchMethodParams.d.ts +6 -6
  260. package/dist/model/searchMethodParams.d.ts.map +1 -1
  261. package/dist/model/searchParams.d.ts +3 -3
  262. package/dist/model/searchParams.d.ts.map +1 -1
  263. package/dist/model/searchParamsObject.d.ts +3 -3
  264. package/dist/model/searchParamsObject.d.ts.map +1 -1
  265. package/dist/model/searchParamsQuery.d.ts +6 -6
  266. package/dist/model/searchParamsQuery.d.ts.map +1 -1
  267. package/dist/model/searchParamsString.d.ts +6 -6
  268. package/dist/model/searchParamsString.d.ts.map +1 -1
  269. package/dist/model/searchQuery.d.ts +3 -3
  270. package/dist/model/searchQuery.d.ts.map +1 -1
  271. package/dist/model/searchResponse.d.ts +3 -3
  272. package/dist/model/searchResponse.d.ts.map +1 -1
  273. package/dist/model/searchResponses.d.ts +4 -4
  274. package/dist/model/searchResponses.d.ts.map +1 -1
  275. package/dist/model/searchResult.d.ts +4 -0
  276. package/dist/model/searchResult.d.ts.map +1 -0
  277. package/dist/model/searchRulesParams.d.ts +31 -31
  278. package/dist/model/searchRulesParams.d.ts.map +1 -1
  279. package/dist/model/searchRulesResponse.d.ts +19 -19
  280. package/dist/model/searchRulesResponse.d.ts.map +1 -1
  281. package/dist/model/searchStrategy.d.ts +4 -1
  282. package/dist/model/searchStrategy.d.ts.map +1 -1
  283. package/dist/model/searchSynonymsParams.d.ts +16 -6
  284. package/dist/model/searchSynonymsParams.d.ts.map +1 -1
  285. package/dist/model/searchSynonymsResponse.d.ts +11 -11
  286. package/dist/model/searchSynonymsResponse.d.ts.map +1 -1
  287. package/dist/model/searchTypeDefault.d.ts +4 -4
  288. package/dist/model/searchTypeDefault.d.ts.map +1 -1
  289. package/dist/model/searchTypeFacet.d.ts +4 -4
  290. package/dist/model/searchTypeFacet.d.ts.map +1 -1
  291. package/dist/model/searchUserIdsParams.d.ts +21 -21
  292. package/dist/model/searchUserIdsParams.d.ts.map +1 -1
  293. package/dist/model/searchUserIdsResponse.d.ts +26 -26
  294. package/dist/model/searchUserIdsResponse.d.ts.map +1 -1
  295. package/dist/model/semanticSearch.d.ts +10 -0
  296. package/dist/model/semanticSearch.d.ts.map +1 -0
  297. package/dist/model/snippetResult.d.ts +2 -2
  298. package/dist/model/snippetResult.d.ts.map +1 -1
  299. package/dist/model/snippetResultOption.d.ts +11 -11
  300. package/dist/model/snippetResultOption.d.ts.map +1 -1
  301. package/dist/model/sortRemainingBy.d.ts +4 -4
  302. package/dist/model/sortRemainingBy.d.ts.map +1 -1
  303. package/dist/model/source.d.ts +13 -13
  304. package/dist/model/source.d.ts.map +1 -1
  305. package/dist/model/standardEntries.d.ts +17 -17
  306. package/dist/model/standardEntries.d.ts.map +1 -1
  307. package/dist/model/synonymHit.d.ts +35 -37
  308. package/dist/model/synonymHit.d.ts.map +1 -1
  309. package/dist/model/synonymType.d.ts +4 -4
  310. package/dist/model/synonymType.d.ts.map +1 -1
  311. package/dist/model/tagFilters.d.ts +5 -5
  312. package/dist/model/tagFilters.d.ts.map +1 -1
  313. package/dist/model/taskStatus.d.ts +4 -1
  314. package/dist/model/taskStatus.d.ts.map +1 -1
  315. package/dist/model/timeRange.d.ts +10 -10
  316. package/dist/model/timeRange.d.ts.map +1 -1
  317. package/dist/model/typoTolerance.d.ts +5 -5
  318. package/dist/model/typoTolerance.d.ts.map +1 -1
  319. package/dist/model/typoToleranceEnum.d.ts +1 -1
  320. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  321. package/dist/model/updateApiKeyResponse.d.ts +10 -10
  322. package/dist/model/updateApiKeyResponse.d.ts.map +1 -1
  323. package/dist/model/updatedAtResponse.d.ts +13 -13
  324. package/dist/model/updatedAtResponse.d.ts.map +1 -1
  325. package/dist/model/updatedAtWithObjectIdResponse.d.ts +17 -17
  326. package/dist/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
  327. package/dist/model/updatedRuleResponse.d.ts +14 -14
  328. package/dist/model/updatedRuleResponse.d.ts.map +1 -1
  329. package/dist/model/userHighlightResult.d.ts +5 -11
  330. package/dist/model/userHighlightResult.d.ts.map +1 -1
  331. package/dist/model/userHit.d.ts +24 -24
  332. package/dist/model/userHit.d.ts.map +1 -1
  333. package/dist/model/userId.d.ts +21 -21
  334. package/dist/model/userId.d.ts.map +1 -1
  335. package/dist/model/value.d.ts +8 -8
  336. package/dist/model/value.d.ts.map +1 -1
  337. package/dist/src/searchClient.d.ts +845 -673
  338. package/dist/src/searchClient.d.ts.map +1 -1
  339. package/index.js +1 -1
  340. package/model/acl.ts +5 -1
  341. package/model/action.ts +2 -2
  342. package/model/addApiKeyResponse.ts +4 -3
  343. package/model/advancedSyntaxFeatures.ts +1 -1
  344. package/model/alternativesAsExact.ts +1 -1
  345. package/model/anchoring.ts +2 -2
  346. package/model/apiKey.ts +17 -10
  347. package/model/aroundPrecision.ts +8 -0
  348. package/model/aroundPrecisionFromValueInner.ts +7 -0
  349. package/model/aroundRadius.ts +2 -2
  350. package/model/aroundRadiusAll.ts +1 -1
  351. package/model/assignUserIdParams.ts +2 -2
  352. package/model/attributeToUpdate.ts +5 -0
  353. package/model/automaticFacetFilter.ts +3 -1
  354. package/model/automaticFacetFilters.ts +1 -1
  355. package/model/baseGetApiKeyResponse.ts +13 -0
  356. package/model/baseIndexSettings.ts +38 -15
  357. package/model/baseSearchParams.ts +1 -1
  358. package/model/baseSearchParamsWithoutQuery.ts +69 -42
  359. package/model/baseSearchResponse.ts +61 -31
  360. package/model/batchAssignUserIdsParams.ts +4 -3
  361. package/model/batchDictionaryEntriesParams.ts +5 -4
  362. package/model/batchDictionaryEntriesRequest.ts +2 -1
  363. package/model/batchParams.ts +4 -4
  364. package/model/batchRequest.ts +12 -0
  365. package/model/batchResponse.ts +4 -3
  366. package/model/batchWriteParams.ts +4 -4
  367. package/model/browseParams.ts +6 -0
  368. package/model/browseParamsObject.ts +6 -0
  369. package/model/browseResponse.ts +4 -4
  370. package/model/builtInOperation.ts +3 -2
  371. package/model/builtInOperationType.ts +2 -2
  372. package/model/clientMethodProps.ts +169 -166
  373. package/model/condition.ts +4 -1
  374. package/model/consequence.ts +10 -6
  375. package/model/consequenceHide.ts +3 -3
  376. package/model/consequenceParams.ts +1 -1
  377. package/model/consequenceQuery.ts +1 -1
  378. package/model/consequenceQueryObject.ts +2 -1
  379. package/model/createdAtResponse.ts +3 -3
  380. package/model/cursor.ts +8 -0
  381. package/model/deleteApiKeyResponse.ts +2 -2
  382. package/model/deleteByParams.ts +36 -0
  383. package/model/deleteSourceResponse.ts +2 -2
  384. package/model/deletedAtResponse.ts +5 -4
  385. package/model/dictionaryAction.ts +1 -1
  386. package/model/dictionaryEntry.ts +12 -7
  387. package/model/dictionaryEntryState.ts +2 -2
  388. package/model/dictionaryLanguage.ts +3 -3
  389. package/model/dictionarySettingsParams.ts +2 -2
  390. package/model/dictionaryType.ts +1 -1
  391. package/model/distinct.ts +6 -0
  392. package/model/edit.ts +3 -1
  393. package/model/editType.ts +1 -1
  394. package/model/errorBase.ts +1 -1
  395. package/model/exactOnSingleWordQuery.ts +2 -2
  396. package/model/exhaustive.ts +31 -0
  397. package/model/facetFilters.ts +2 -2
  398. package/model/facetHits.ts +6 -4
  399. package/model/facetOrdering.ts +4 -3
  400. package/model/facets.ts +2 -2
  401. package/model/facetsStats.ts +8 -5
  402. package/model/fetchedIndex.ts +13 -3
  403. package/model/getApiKeyResponse.ts +6 -0
  404. package/model/getDictionarySettingsResponse.ts +1 -1
  405. package/model/getLogsResponse.ts +1 -1
  406. package/model/getObjectsParams.ts +4 -4
  407. package/model/getObjectsRequest.ts +21 -0
  408. package/model/getObjectsResponse.ts +4 -4
  409. package/model/getTaskResponse.ts +1 -1
  410. package/model/getTopUserIdsResponse.ts +3 -3
  411. package/model/hasPendingMappingsResponse.ts +4 -3
  412. package/model/highlightResult.ts +5 -2
  413. package/model/highlightResultOption.ts +5 -2
  414. package/model/hit.ts +7 -3
  415. package/model/ignorePlurals.ts +2 -2
  416. package/model/index.ts +21 -10
  417. package/model/indexSettings.ts +2 -2
  418. package/model/indexSettingsAsSearchParams.ts +92 -44
  419. package/model/languages.ts +4 -2
  420. package/model/listApiKeysResponse.ts +4 -4
  421. package/model/listClustersResponse.ts +3 -3
  422. package/model/listIndicesResponse.ts +4 -3
  423. package/model/listUserIdsResponse.ts +3 -3
  424. package/model/log.ts +22 -8
  425. package/model/logQuery.ts +4 -2
  426. package/model/logType.ts +1 -1
  427. package/model/matchLevel.ts +1 -1
  428. package/model/matchedGeoLocation.ts +3 -1
  429. package/model/mixedSearchFilters.ts +1 -1
  430. package/model/mode.ts +6 -0
  431. package/model/multipleBatchRequest.ts +17 -0
  432. package/model/multipleBatchResponse.ts +6 -5
  433. package/model/numericFilters.ts +2 -2
  434. package/model/operationIndexParams.ts +5 -3
  435. package/model/operationType.ts +2 -2
  436. package/model/optionalFilters.ts +2 -2
  437. package/model/params.ts +5 -2
  438. package/model/personalization.ts +3 -1
  439. package/model/promote.ts +1 -1
  440. package/model/promoteObjectID.ts +5 -4
  441. package/model/promoteObjectIDs.ts +5 -4
  442. package/model/queryType.ts +2 -2
  443. package/model/rankingInfo.ts +13 -1
  444. package/model/reRankingApplyFilter.ts +2 -2
  445. package/model/redirect.ts +10 -0
  446. package/model/redirectRuleIndexMetadata.ts +27 -0
  447. package/model/redirectRuleIndexMetadataData.ts +8 -0
  448. package/model/removeStopWords.ts +2 -2
  449. package/model/removeUserIdResponse.ts +2 -2
  450. package/model/removeWordsIfNoResults.ts +2 -2
  451. package/model/renderingContent.ts +2 -2
  452. package/model/replaceSourceResponse.ts +2 -2
  453. package/model/rule.ts +11 -6
  454. package/model/saveObjectResponse.ts +10 -5
  455. package/model/saveSynonymResponse.ts +6 -4
  456. package/model/scopeType.ts +1 -1
  457. package/model/searchDictionaryEntriesParams.ts +9 -6
  458. package/model/searchForFacetValuesRequest.ts +5 -3
  459. package/model/searchForFacetValuesResponse.ts +11 -1
  460. package/model/searchForFacets.ts +1 -1
  461. package/model/searchForFacetsOptions.ts +8 -4
  462. package/model/searchForHits.ts +1 -1
  463. package/model/searchForHitsOptions.ts +3 -2
  464. package/model/searchHits.ts +13 -3
  465. package/model/searchMethodParams.ts +2 -1
  466. package/model/searchParams.ts +1 -1
  467. package/model/searchParamsObject.ts +1 -1
  468. package/model/searchParamsQuery.ts +2 -2
  469. package/model/searchParamsString.ts +2 -2
  470. package/model/searchQuery.ts +1 -1
  471. package/model/searchResponse.ts +3 -2
  472. package/model/searchResponses.ts +4 -4
  473. package/model/searchResult.ts +8 -0
  474. package/model/searchRulesParams.ts +15 -9
  475. package/model/searchRulesResponse.ts +4 -1
  476. package/model/searchStrategy.ts +4 -1
  477. package/model/searchSynonymsParams.ts +16 -2
  478. package/model/searchSynonymsResponse.ts +4 -3
  479. package/model/searchTypeDefault.ts +2 -2
  480. package/model/searchTypeFacet.ts +2 -2
  481. package/model/searchUserIdsParams.ts +8 -5
  482. package/model/searchUserIdsResponse.ts +10 -6
  483. package/model/semanticSearch.ts +11 -0
  484. package/model/snippetResult.ts +5 -2
  485. package/model/snippetResultOption.ts +3 -2
  486. package/model/sortRemainingBy.ts +2 -2
  487. package/model/source.ts +5 -4
  488. package/model/standardEntries.ts +7 -5
  489. package/model/synonymHit.ts +14 -9
  490. package/model/synonymType.ts +2 -2
  491. package/model/tagFilters.ts +2 -2
  492. package/model/taskStatus.ts +4 -1
  493. package/model/timeRange.ts +2 -1
  494. package/model/typoTolerance.ts +2 -2
  495. package/model/typoToleranceEnum.ts +1 -1
  496. package/model/updateApiKeyResponse.ts +4 -3
  497. package/model/updatedAtResponse.ts +5 -4
  498. package/model/updatedAtWithObjectIdResponse.ts +7 -5
  499. package/model/updatedRuleResponse.ts +6 -4
  500. package/model/userHighlightResult.ts +4 -9
  501. package/model/userHit.ts +7 -2
  502. package/model/userId.ts +6 -3
  503. package/model/value.ts +2 -1
  504. package/package.json +32 -13
  505. package/dist/model/attributeOrBuiltInOperation.d.ts +0 -3
  506. package/dist/model/attributeOrBuiltInOperation.d.ts.map +0 -1
  507. package/dist/model/baseBrowseResponse.d.ts +0 -7
  508. package/dist/model/baseBrowseResponse.d.ts.map +0 -1
  509. package/dist/model/batchOperation.d.ts +0 -9
  510. package/dist/model/batchOperation.d.ts.map +0 -1
  511. package/dist/model/browseRequest.d.ts +0 -11
  512. package/dist/model/browseRequest.d.ts.map +0 -1
  513. package/dist/model/createdAtObject.d.ts +0 -7
  514. package/dist/model/createdAtObject.d.ts.map +0 -1
  515. package/dist/model/key.d.ts +0 -4
  516. package/dist/model/key.d.ts.map +0 -1
  517. package/dist/model/multipleBatchOperation.d.ts +0 -13
  518. package/dist/model/multipleBatchOperation.d.ts.map +0 -1
  519. package/dist/model/multipleGetObjectsParams.d.ts +0 -18
  520. package/dist/model/multipleGetObjectsParams.d.ts.map +0 -1
  521. package/dist/model/synonymHitHighlightResult.d.ts +0 -12
  522. package/dist/model/synonymHitHighlightResult.d.ts.map +0 -1
  523. package/model/attributeOrBuiltInOperation.ts +0 -5
  524. package/model/baseBrowseResponse.ts +0 -8
  525. package/model/batchOperation.ts +0 -11
  526. package/model/browseRequest.ts +0 -12
  527. package/model/createdAtObject.ts +0 -8
  528. package/model/key.ts +0 -6
  529. package/model/multipleBatchOperation.ts +0 -15
  530. package/model/multipleGetObjectsParams.ts +0 -19
  531. package/model/synonymHitHighlightResult.ts +0 -14
@@ -1,18 +1,17 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
- import type { CreateRetryablePromiseOptions } from '@algolia/client-common';
3
+ import type { CreateIterablePromise } from '@algolia/client-common';
4
4
 
5
5
  import type { ApiKey } from './apiKey';
6
6
  import type { AssignUserIdParams } from './assignUserIdParams';
7
- import type { AttributeOrBuiltInOperation } from './attributeOrBuiltInOperation';
7
+ import type { AttributeToUpdate } from './attributeToUpdate';
8
8
  import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
9
9
  import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
10
10
  import type { BatchWriteParams } from './batchWriteParams';
11
- import type { BrowseRequest } from './browseRequest';
11
+ import type { BrowseParams } from './browseParams';
12
+ import type { DeleteByParams } from './deleteByParams';
12
13
  import type { DictionaryType } from './dictionaryType';
13
- import type { GetTaskResponse } from './getTaskResponse';
14
14
  import type { IndexSettings } from './indexSettings';
15
- import type { Key } from './key';
16
15
  import type { LogType } from './logType';
17
16
  import type { OperationIndexParams } from './operationIndexParams';
18
17
  import type { Rule } from './rule';
@@ -26,22 +25,21 @@ import type { SearchRulesParams } from './searchRulesParams';
26
25
  import type { SearchSynonymsParams } from './searchSynonymsParams';
27
26
  import type { Source } from './source';
28
27
  import type { SynonymHit } from './synonymHit';
29
- import type { SynonymType } from './synonymType';
30
28
 
31
29
  /**
32
30
  * Properties for the `addOrUpdateObject` method.
33
31
  */
34
32
  export type AddOrUpdateObjectProps = {
35
33
  /**
36
- * The index in which to perform the request.
34
+ * Index on which to perform the request.
37
35
  */
38
36
  indexName: string;
39
37
  /**
40
- * Unique identifier of an object.
38
+ * Unique record (object) identifier.
41
39
  */
42
40
  objectID: string;
43
41
  /**
44
- * The Algolia object.
42
+ * Algolia record.
45
43
  */
46
44
  body: Record<string, any>;
47
45
  };
@@ -62,7 +60,7 @@ export type AssignUserIdProps = {
62
60
  */
63
61
  export type BatchProps = {
64
62
  /**
65
- * The index in which to perform the request.
63
+ * Index on which to perform the request.
66
64
  */
67
65
  indexName: string;
68
66
  batchWriteParams: BatchWriteParams;
@@ -84,7 +82,7 @@ export type BatchAssignUserIdsProps = {
84
82
  */
85
83
  export type BatchDictionaryEntriesProps = {
86
84
  /**
87
- * The dictionary to search in.
85
+ * Dictionary to search in.
88
86
  */
89
87
  dictionaryName: DictionaryType;
90
88
  batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
@@ -95,62 +93,112 @@ export type BatchDictionaryEntriesProps = {
95
93
  */
96
94
  export type BrowseProps = {
97
95
  /**
98
- * The index in which to perform the request.
96
+ * Index on which to perform the request.
99
97
  */
100
98
  indexName: string;
101
- browseRequest?: BrowseRequest;
99
+ browseParams?: BrowseParams;
102
100
  };
103
101
 
104
102
  /**
105
- * Properties for the `clearAllSynonyms` method.
103
+ * Properties for the `clearObjects` method.
106
104
  */
107
- export type ClearAllSynonymsProps = {
105
+ export type ClearObjectsProps = {
108
106
  /**
109
- * The index in which to perform the request.
107
+ * Index on which to perform the request.
108
+ */
109
+ indexName: string;
110
+ };
111
+
112
+ /**
113
+ * Properties for the `clearRules` method.
114
+ */
115
+ export type ClearRulesProps = {
116
+ /**
117
+ * Index on which to perform the request.
110
118
  */
111
119
  indexName: string;
112
120
  /**
113
- * When true, changes are also propagated to replicas of the given indexName.
121
+ * Indicates whether changed index settings are forwarded to the replica indices.
114
122
  */
115
123
  forwardToReplicas?: boolean;
116
124
  };
117
125
 
118
126
  /**
119
- * Properties for the `clearObjects` method.
127
+ * Properties for the `clearSynonyms` method.
120
128
  */
121
- export type ClearObjectsProps = {
129
+ export type ClearSynonymsProps = {
122
130
  /**
123
- * The index in which to perform the request.
131
+ * Index on which to perform the request.
124
132
  */
125
133
  indexName: string;
134
+ /**
135
+ * Indicates whether changed index settings are forwarded to the replica indices.
136
+ */
137
+ forwardToReplicas?: boolean;
126
138
  };
127
139
 
128
140
  /**
129
- * Properties for the `clearRules` method.
141
+ * Properties for the `customDelete` method.
130
142
  */
131
- export type ClearRulesProps = {
143
+ export type CustomDeleteProps = {
132
144
  /**
133
- * The index in which to perform the request.
145
+ * Path of the endpoint, anything after \"/1\" must be specified.
134
146
  */
135
- indexName: string;
147
+ path: string;
136
148
  /**
137
- * When true, changes are also propagated to replicas of the given indexName.
149
+ * Query parameters to apply to the current query.
138
150
  */
139
- forwardToReplicas?: boolean;
151
+ parameters?: Record<string, any>;
152
+ };
153
+
154
+ /**
155
+ * Properties for the `customGet` method.
156
+ */
157
+ export type CustomGetProps = {
158
+ /**
159
+ * Path of the endpoint, anything after \"/1\" must be specified.
160
+ */
161
+ path: string;
162
+ /**
163
+ * Query parameters to apply to the current query.
164
+ */
165
+ parameters?: Record<string, any>;
166
+ };
167
+
168
+ /**
169
+ * Properties for the `customPost` method.
170
+ */
171
+ export type CustomPostProps = {
172
+ /**
173
+ * Path of the endpoint, anything after \"/1\" must be specified.
174
+ */
175
+ path: string;
176
+ /**
177
+ * Query parameters to apply to the current query.
178
+ */
179
+ parameters?: Record<string, any>;
180
+ /**
181
+ * Parameters to send with the custom request.
182
+ */
183
+ body?: Record<string, any>;
140
184
  };
141
185
 
142
186
  /**
143
- * Properties for the `del` method.
187
+ * Properties for the `customPut` method.
144
188
  */
145
- export type DelProps = {
189
+ export type CustomPutProps = {
146
190
  /**
147
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
191
+ * Path of the endpoint, anything after \"/1\" must be specified.
148
192
  */
149
193
  path: string;
150
194
  /**
151
- * Query parameters to be applied to the current query.
195
+ * Query parameters to apply to the current query.
152
196
  */
153
197
  parameters?: Record<string, any>;
198
+ /**
199
+ * Parameters to send with the custom request.
200
+ */
201
+ body?: Record<string, any>;
154
202
  };
155
203
 
156
204
  /**
@@ -158,7 +206,7 @@ export type DelProps = {
158
206
  */
159
207
  export type DeleteApiKeyProps = {
160
208
  /**
161
- * API Key string.
209
+ * API key.
162
210
  */
163
211
  key: string;
164
212
  };
@@ -168,10 +216,10 @@ export type DeleteApiKeyProps = {
168
216
  */
169
217
  export type DeleteByProps = {
170
218
  /**
171
- * The index in which to perform the request.
219
+ * Index on which to perform the request.
172
220
  */
173
221
  indexName: string;
174
- searchParams: SearchParams;
222
+ deleteByParams: DeleteByParams;
175
223
  };
176
224
 
177
225
  /**
@@ -179,7 +227,7 @@ export type DeleteByProps = {
179
227
  */
180
228
  export type DeleteIndexProps = {
181
229
  /**
182
- * The index in which to perform the request.
230
+ * Index on which to perform the request.
183
231
  */
184
232
  indexName: string;
185
233
  };
@@ -189,11 +237,11 @@ export type DeleteIndexProps = {
189
237
  */
190
238
  export type DeleteObjectProps = {
191
239
  /**
192
- * The index in which to perform the request.
240
+ * Index on which to perform the request.
193
241
  */
194
242
  indexName: string;
195
243
  /**
196
- * Unique identifier of an object.
244
+ * Unique record (object) identifier.
197
245
  */
198
246
  objectID: string;
199
247
  };
@@ -203,15 +251,15 @@ export type DeleteObjectProps = {
203
251
  */
204
252
  export type DeleteRuleProps = {
205
253
  /**
206
- * The index in which to perform the request.
254
+ * Index on which to perform the request.
207
255
  */
208
256
  indexName: string;
209
257
  /**
210
- * Unique identifier of an object.
258
+ * Unique identifier of a rule object.
211
259
  */
212
260
  objectID: string;
213
261
  /**
214
- * When true, changes are also propagated to replicas of the given indexName.
262
+ * Indicates whether changed index settings are forwarded to the replica indices.
215
263
  */
216
264
  forwardToReplicas?: boolean;
217
265
  };
@@ -221,7 +269,7 @@ export type DeleteRuleProps = {
221
269
  */
222
270
  export type DeleteSourceProps = {
223
271
  /**
224
- * The IP range of the source.
272
+ * IP address range of the source.
225
273
  */
226
274
  source: string;
227
275
  };
@@ -231,39 +279,25 @@ export type DeleteSourceProps = {
231
279
  */
232
280
  export type DeleteSynonymProps = {
233
281
  /**
234
- * The index in which to perform the request.
282
+ * Index on which to perform the request.
235
283
  */
236
284
  indexName: string;
237
285
  /**
238
- * Unique identifier of an object.
286
+ * Unique identifier of a synonym object.
239
287
  */
240
288
  objectID: string;
241
289
  /**
242
- * When true, changes are also propagated to replicas of the given indexName.
290
+ * Indicates whether changed index settings are forwarded to the replica indices.
243
291
  */
244
292
  forwardToReplicas?: boolean;
245
293
  };
246
294
 
247
- /**
248
- * Properties for the `get` method.
249
- */
250
- export type GetProps = {
251
- /**
252
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
253
- */
254
- path: string;
255
- /**
256
- * Query parameters to be applied to the current query.
257
- */
258
- parameters?: Record<string, any>;
259
- };
260
-
261
295
  /**
262
296
  * Properties for the `getApiKey` method.
263
297
  */
264
298
  export type GetApiKeyProps = {
265
299
  /**
266
- * API Key string.
300
+ * API key.
267
301
  */
268
302
  key: string;
269
303
  };
@@ -273,15 +307,15 @@ export type GetApiKeyProps = {
273
307
  */
274
308
  export type GetLogsProps = {
275
309
  /**
276
- * First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry.
310
+ * First log entry to retrieve. Sorted by decreasing date with 0 being the most recent.
277
311
  */
278
312
  offset?: number;
279
313
  /**
280
- * Maximum number of entries to retrieve. The maximum allowed value is 1000.
314
+ * Maximum number of entries to retrieve.
281
315
  */
282
316
  length?: number;
283
317
  /**
284
- * Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices.
318
+ * Index for which log entries should be retrieved. When omitted, log entries are retrieved for all indices.
285
319
  */
286
320
  indexName?: string;
287
321
  /**
@@ -295,15 +329,15 @@ export type GetLogsProps = {
295
329
  */
296
330
  export type GetObjectProps = {
297
331
  /**
298
- * The index in which to perform the request.
332
+ * Index on which to perform the request.
299
333
  */
300
334
  indexName: string;
301
335
  /**
302
- * Unique identifier of an object.
336
+ * Unique record (object) identifier.
303
337
  */
304
338
  objectID: string;
305
339
  /**
306
- * List of attributes to retrieve. If not specified, all retrievable attributes are returned.
340
+ * Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved, even when not specified. [`unretrievableAttributes`](https://www.algolia.com/doc/api-reference/api-parameters/unretrievableAttributes/) won\'t be retrieved unless the request is authenticated with the admin API key.
307
341
  */
308
342
  attributesToRetrieve?: string[];
309
343
  };
@@ -313,11 +347,11 @@ export type GetObjectProps = {
313
347
  */
314
348
  export type GetRuleProps = {
315
349
  /**
316
- * The index in which to perform the request.
350
+ * Index on which to perform the request.
317
351
  */
318
352
  indexName: string;
319
353
  /**
320
- * Unique identifier of an object.
354
+ * Unique identifier of a rule object.
321
355
  */
322
356
  objectID: string;
323
357
  };
@@ -327,7 +361,7 @@ export type GetRuleProps = {
327
361
  */
328
362
  export type GetSettingsProps = {
329
363
  /**
330
- * The index in which to perform the request.
364
+ * Index on which to perform the request.
331
365
  */
332
366
  indexName: string;
333
367
  };
@@ -337,11 +371,11 @@ export type GetSettingsProps = {
337
371
  */
338
372
  export type GetSynonymProps = {
339
373
  /**
340
- * The index in which to perform the request.
374
+ * Index on which to perform the request.
341
375
  */
342
376
  indexName: string;
343
377
  /**
344
- * Unique identifier of an object.
378
+ * Unique identifier of a synonym object.
345
379
  */
346
380
  objectID: string;
347
381
  };
@@ -351,11 +385,11 @@ export type GetSynonymProps = {
351
385
  */
352
386
  export type GetTaskProps = {
353
387
  /**
354
- * The index in which to perform the request.
388
+ * Index on which to perform the request.
355
389
  */
356
390
  indexName: string;
357
391
  /**
358
- * Unique identifier of an task. Numeric value (up to 64bits).
392
+ * Unique task identifier.
359
393
  */
360
394
  taskID: number;
361
395
  };
@@ -375,7 +409,7 @@ export type GetUserIdProps = {
375
409
  */
376
410
  export type HasPendingMappingsProps = {
377
411
  /**
378
- * If the clusters pending mapping state should be on the response.
412
+ * Indicates whether to include the cluster\'s pending mapping state in the response.
379
413
  */
380
414
  getClusters?: boolean;
381
415
  };
@@ -385,9 +419,13 @@ export type HasPendingMappingsProps = {
385
419
  */
386
420
  export type ListIndicesProps = {
387
421
  /**
388
- * Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
422
+ * Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
389
423
  */
390
424
  page?: number;
425
+ /**
426
+ * Maximum number of hits per page.
427
+ */
428
+ hitsPerPage?: number;
391
429
  };
392
430
 
393
431
  /**
@@ -395,11 +433,11 @@ export type ListIndicesProps = {
395
433
  */
396
434
  export type ListUserIdsProps = {
397
435
  /**
398
- * Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
436
+ * Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
399
437
  */
400
438
  page?: number;
401
439
  /**
402
- * Maximum number of objects to retrieve.
440
+ * Maximum number of hits per page.
403
441
  */
404
442
  hitsPerPage?: number;
405
443
  };
@@ -409,7 +447,7 @@ export type ListUserIdsProps = {
409
447
  */
410
448
  export type OperationIndexProps = {
411
449
  /**
412
- * The index in which to perform the request.
450
+ * Index on which to perform the request.
413
451
  */
414
452
  indexName: string;
415
453
  operationIndexParams: OperationIndexParams;
@@ -420,61 +458,23 @@ export type OperationIndexProps = {
420
458
  */
421
459
  export type PartialUpdateObjectProps = {
422
460
  /**
423
- * The index in which to perform the request.
461
+ * Index on which to perform the request.
424
462
  */
425
463
  indexName: string;
426
464
  /**
427
- * Unique identifier of an object.
465
+ * Unique record (object) identifier.
428
466
  */
429
467
  objectID: string;
430
468
  /**
431
- * List of attributes to update.
469
+ * Object with attributes to update.
432
470
  */
433
- attributeOrBuiltInOperation: Array<
434
- Record<string, AttributeOrBuiltInOperation>
435
- >;
471
+ attributesToUpdate: Record<string, AttributeToUpdate>;
436
472
  /**
437
- * Creates the record if it does not exist yet.
473
+ * Indicates whether to create a new record if it doesn\'t exist yet.
438
474
  */
439
475
  createIfNotExists?: boolean;
440
476
  };
441
477
 
442
- /**
443
- * Properties for the `post` method.
444
- */
445
- export type PostProps = {
446
- /**
447
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
448
- */
449
- path: string;
450
- /**
451
- * Query parameters to be applied to the current query.
452
- */
453
- parameters?: Record<string, any>;
454
- /**
455
- * The parameters to send with the custom request.
456
- */
457
- body?: Record<string, any>;
458
- };
459
-
460
- /**
461
- * Properties for the `put` method.
462
- */
463
- export type PutProps = {
464
- /**
465
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
466
- */
467
- path: string;
468
- /**
469
- * Query parameters to be applied to the current query.
470
- */
471
- parameters?: Record<string, any>;
472
- /**
473
- * The parameters to send with the custom request.
474
- */
475
- body?: Record<string, any>;
476
- };
477
-
478
478
  /**
479
479
  * Properties for the `removeUserId` method.
480
480
  */
@@ -490,7 +490,7 @@ export type RemoveUserIdProps = {
490
490
  */
491
491
  export type ReplaceSourcesProps = {
492
492
  /**
493
- * The sources to allow.
493
+ * Allowed sources.
494
494
  */
495
495
  source: Source[];
496
496
  };
@@ -500,7 +500,7 @@ export type ReplaceSourcesProps = {
500
500
  */
501
501
  export type RestoreApiKeyProps = {
502
502
  /**
503
- * API Key string.
503
+ * API key.
504
504
  */
505
505
  key: string;
506
506
  };
@@ -510,7 +510,7 @@ export type RestoreApiKeyProps = {
510
510
  */
511
511
  export type SaveObjectProps = {
512
512
  /**
513
- * The index in which to perform the request.
513
+ * Index on which to perform the request.
514
514
  */
515
515
  indexName: string;
516
516
  /**
@@ -524,16 +524,16 @@ export type SaveObjectProps = {
524
524
  */
525
525
  export type SaveRuleProps = {
526
526
  /**
527
- * The index in which to perform the request.
527
+ * Index on which to perform the request.
528
528
  */
529
529
  indexName: string;
530
530
  /**
531
- * Unique identifier of an object.
531
+ * Unique identifier of a rule object.
532
532
  */
533
533
  objectID: string;
534
534
  rule: Rule;
535
535
  /**
536
- * When true, changes are also propagated to replicas of the given indexName.
536
+ * Indicates whether changed index settings are forwarded to the replica indices.
537
537
  */
538
538
  forwardToReplicas?: boolean;
539
539
  };
@@ -543,16 +543,16 @@ export type SaveRuleProps = {
543
543
  */
544
544
  export type SaveRulesProps = {
545
545
  /**
546
- * The index in which to perform the request.
546
+ * Index on which to perform the request.
547
547
  */
548
548
  indexName: string;
549
- rule: Rule[];
549
+ rules: Rule[];
550
550
  /**
551
- * When true, changes are also propagated to replicas of the given indexName.
551
+ * Indicates whether changed index settings are forwarded to the replica indices.
552
552
  */
553
553
  forwardToReplicas?: boolean;
554
554
  /**
555
- * When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
555
+ * Indicates whether existing rules should be deleted before adding this batch.
556
556
  */
557
557
  clearExistingRules?: boolean;
558
558
  };
@@ -562,16 +562,16 @@ export type SaveRulesProps = {
562
562
  */
563
563
  export type SaveSynonymProps = {
564
564
  /**
565
- * The index in which to perform the request.
565
+ * Index on which to perform the request.
566
566
  */
567
567
  indexName: string;
568
568
  /**
569
- * Unique identifier of an object.
569
+ * Unique identifier of a synonym object.
570
570
  */
571
571
  objectID: string;
572
572
  synonymHit: SynonymHit;
573
573
  /**
574
- * When true, changes are also propagated to replicas of the given indexName.
574
+ * Indicates whether changed index settings are forwarded to the replica indices.
575
575
  */
576
576
  forwardToReplicas?: boolean;
577
577
  };
@@ -581,16 +581,16 @@ export type SaveSynonymProps = {
581
581
  */
582
582
  export type SaveSynonymsProps = {
583
583
  /**
584
- * The index in which to perform the request.
584
+ * Index on which to perform the request.
585
585
  */
586
586
  indexName: string;
587
587
  synonymHit: SynonymHit[];
588
588
  /**
589
- * When true, changes are also propagated to replicas of the given indexName.
589
+ * Indicates whether changed index settings are forwarded to the replica indices.
590
590
  */
591
591
  forwardToReplicas?: boolean;
592
592
  /**
593
- * Replace all synonyms of the index with the ones sent with this request.
593
+ * Indicates whether to replace all synonyms in the index with the ones sent with this request.
594
594
  */
595
595
  replaceExistingSynonyms?: boolean;
596
596
  };
@@ -632,7 +632,7 @@ export type LegacySearchMethodProps = LegacySearchQuery[];
632
632
  */
633
633
  export type SearchDictionaryEntriesProps = {
634
634
  /**
635
- * The dictionary to search in.
635
+ * Dictionary to search in.
636
636
  */
637
637
  dictionaryName: DictionaryType;
638
638
  searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
@@ -643,11 +643,11 @@ export type SearchDictionaryEntriesProps = {
643
643
  */
644
644
  export type SearchForFacetValuesProps = {
645
645
  /**
646
- * The index in which to perform the request.
646
+ * Index on which to perform the request.
647
647
  */
648
648
  indexName: string;
649
649
  /**
650
- * The facet name.
650
+ * Facet name.
651
651
  */
652
652
  facetName: string;
653
653
  searchForFacetValuesRequest?: SearchForFacetValuesRequest;
@@ -658,10 +658,10 @@ export type SearchForFacetValuesProps = {
658
658
  */
659
659
  export type SearchRulesProps = {
660
660
  /**
661
- * The index in which to perform the request.
661
+ * Index on which to perform the request.
662
662
  */
663
663
  indexName: string;
664
- searchRulesParams: SearchRulesParams;
664
+ searchRulesParams?: SearchRulesParams;
665
665
  };
666
666
 
667
667
  /**
@@ -669,10 +669,10 @@ export type SearchRulesProps = {
669
669
  */
670
670
  export type SearchSingleIndexProps = {
671
671
  /**
672
- * The index in which to perform the request.
672
+ * Index on which to perform the request.
673
673
  */
674
674
  indexName: string;
675
- searchParams: SearchParams;
675
+ searchParams?: SearchParams;
676
676
  };
677
677
 
678
678
  /**
@@ -680,23 +680,11 @@ export type SearchSingleIndexProps = {
680
680
  */
681
681
  export type SearchSynonymsProps = {
682
682
  /**
683
- * The index in which to perform the request.
683
+ * Index on which to perform the request.
684
684
  */
685
685
  indexName: string;
686
686
  /**
687
- * Only search for specific types of synonyms.
688
- */
689
- type?: SynonymType;
690
- /**
691
- * Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
692
- */
693
- page?: number;
694
- /**
695
- * Maximum number of objects to retrieve.
696
- */
697
- hitsPerPage?: number;
698
- /**
699
- * The body of the the `searchSynonyms` method.
687
+ * Body of the `searchSynonyms` operation.
700
688
  */
701
689
  searchSynonymsParams?: SearchSynonymsParams;
702
690
  };
@@ -706,12 +694,12 @@ export type SearchSynonymsProps = {
706
694
  */
707
695
  export type SetSettingsProps = {
708
696
  /**
709
- * The index in which to perform the request.
697
+ * Index on which to perform the request.
710
698
  */
711
699
  indexName: string;
712
700
  indexSettings: IndexSettings;
713
701
  /**
714
- * When true, changes are also propagated to replicas of the given indexName.
702
+ * Indicates whether changed index settings are forwarded to the replica indices.
715
703
  */
716
704
  forwardToReplicas?: boolean;
717
705
  };
@@ -721,18 +709,33 @@ export type SetSettingsProps = {
721
709
  */
722
710
  export type UpdateApiKeyProps = {
723
711
  /**
724
- * API Key string.
712
+ * API key.
725
713
  */
726
714
  key: string;
727
715
  apiKey: ApiKey;
728
716
  };
729
717
 
730
- type WaitForOptions<T> = Omit<
731
- CreateRetryablePromiseOptions<T>,
732
- 'func' | 'validate'
733
- >;
718
+ /**
719
+ * The `browseObjects`, `browseRules`, `browseSynonyms` options.
720
+ */
721
+ export type BrowseOptions<T> = Partial<
722
+ Pick<CreateIterablePromise<T>, 'validate'>
723
+ > &
724
+ Required<Pick<CreateIterablePromise<T>, 'aggregator'>>;
725
+
726
+ type WaitForOptions = Partial<{
727
+ /**
728
+ * The maximum number of retries. 50 by default.
729
+ */
730
+ maxRetries: number;
731
+
732
+ /**
733
+ * The function to decide how long to wait between retries.
734
+ */
735
+ timeout: (retryCount: number) => number;
736
+ }>;
734
737
 
735
- export type WaitForTaskOptions = WaitForOptions<GetTaskResponse> & {
738
+ export type WaitForTaskOptions = WaitForOptions & {
736
739
  /**
737
740
  * The `indexName` where the operation was performed.
738
741
  */
@@ -743,7 +746,7 @@ export type WaitForTaskOptions = WaitForOptions<GetTaskResponse> & {
743
746
  taskID: number;
744
747
  };
745
748
 
746
- export type WaitForApiKeyOptions = WaitForOptions<Key> & {
749
+ export type WaitForApiKeyOptions = WaitForOptions & {
747
750
  /**
748
751
  * The API Key.
749
752
  */