@algolia/client-search 5.0.0-alpha.10 → 5.0.0-alpha.101

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