@algolia/client-search 5.0.0-alpha.9 → 5.0.0-alpha.90

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} +2023 -1991
  4. package/dist/client-search.esm.browser.js +2214 -2236
  5. package/dist/client-search.esm.node.js +2023 -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 +719 -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 +4 -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 +6 -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 +11 -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 +746 -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 +91 -86
  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 +1 -1
  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 +1 -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 +4 -4
  471. package/model/searchResult.ts +6 -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 +2 -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 +1 -1
  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 +1 -1
  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
package/model/promote.ts CHANGED
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { PromoteObjectID } from './promoteObjectID';
4
4
  import type { PromoteObjectIDs } from './promoteObjectIDs';
@@ -1,16 +1,16 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Single objectID to promote as hits.
4
+ * Record to promote.
5
5
  */
6
6
  export type PromoteObjectID = {
7
7
  /**
8
- * Unique identifier of the object to promote.
8
+ * Unique identifier of the record to promote.
9
9
  */
10
10
  objectID: string;
11
11
 
12
12
  /**
13
- * The position to promote the objects to (zero-based). If you pass objectIDs, the objects are placed at this position as a group. For example, if you pass four objectIDs to position 0, the objects take the first four positions.
13
+ * The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
14
14
  */
15
15
  position: number;
16
16
  };
@@ -1,16 +1,16 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Multiple objectIDs to promote as hits.
4
+ * Records to promote.
5
5
  */
6
6
  export type PromoteObjectIDs = {
7
7
  /**
8
- * Array of unique identifiers of the objects to promote.
8
+ * Unique identifiers of the records to promote.
9
9
  */
10
10
  objectIDs: string[];
11
11
 
12
12
  /**
13
- * The position to promote the objects to (zero-based). If you pass objectIDs, the objects are placed at this position as a group. For example, if you pass four objectIDs to position 0, the objects take the first four positions.
13
+ * The position to promote the records to. If you pass objectIDs, the records are placed at this position as a group. For example, if you pronmote four objectIDs to position 0, the records take the first four positions.
14
14
  */
15
15
  position: number;
16
16
  };
@@ -1,6 +1,6 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Controls if and how query words are interpreted as prefixes.
4
+ * Determines how query words are [interpreted as prefixes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/prefix-searching/).
5
5
  */
6
6
  export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
@@ -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 { MatchedGeoLocation } from './matchedGeoLocation';
4
4
  import type { Personalization } from './personalization';
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { MixedSearchFilters } from './mixedSearchFilters';
4
4
 
5
5
  /**
6
- * When Dynamic Re-Ranking is enabled, only records that match these filters will be impacted by Dynamic Re-Ranking.
6
+ * When [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) is enabled, only records that match these filters will be affected by Dynamic Re-Ranking.
7
7
  */
8
8
  export type ReRankingApplyFilter = MixedSearchFilters[] | string;
@@ -0,0 +1,10 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { RedirectRuleIndexMetadata } from './redirectRuleIndexMetadata';
4
+
5
+ /**
6
+ * [Redirect results to a URL](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/redirects/).
7
+ */
8
+ export type Redirect = {
9
+ index?: RedirectRuleIndexMetadata[];
10
+ };
@@ -0,0 +1,27 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData';
4
+
5
+ export type RedirectRuleIndexMetadata = {
6
+ /**
7
+ * Source index for the redirect rule.
8
+ */
9
+ source: string;
10
+
11
+ /**
12
+ * Destination index for the redirect rule.
13
+ */
14
+ dest: string;
15
+
16
+ /**
17
+ * Reason for the redirect rule.
18
+ */
19
+ reason: string;
20
+
21
+ /**
22
+ * Redirect rule status.
23
+ */
24
+ succeed: boolean;
25
+
26
+ data: RedirectRuleIndexMetadataData;
27
+ };
@@ -0,0 +1,8 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ /**
4
+ * Redirect rule data.
5
+ */
6
+ export type RedirectRuleIndexMetadataData = {
7
+ ruleObjectID: string;
8
+ };
@@ -1,6 +1,6 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Removes stop (common) words from the query before executing it. RemoveStopWords is used in conjunction with the queryLanguages setting. List: language ISO codes for which ignoring plurals should be enabled. This list will override any values that you may have set in queryLanguages. True: enables the stop word functionality, ensuring that stop words are removed from consideration in a search. The languages supported here are either every language, or those set by queryLanguages. False: disables stop word functionality, allowing stop words to be taken into account in a search.
4
+ * Removes stop (common) words from the query before executing it. `removeStopWords` is used in conjunction with the `queryLanguages` setting. _list_: language ISO codes for which stop words should be enabled. This list will override any values that you may have set in `queryLanguages`. _true_: enables the stop words feature, ensuring that stop words are removed from consideration in a search. The languages supported here are either [every language](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) (this is the default) or those set by `queryLanguages`. _false_: turns off the stop words feature, allowing stop words to be taken into account in a search.
5
5
  */
6
6
  export type RemoveStopWords = string[] | boolean;
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type RemoveUserIdResponse = {
4
4
  /**
5
- * Date of deletion (ISO-8601 format).
5
+ * Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
6
6
  */
7
7
  deletedAt: string;
8
8
  };
@@ -1,7 +1,7 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * Selects a strategy to remove words from the query when it doesn\'t match any hits.
4
+ * Strategy to [remove words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/) from the query when it doesn\'t match any hits.
5
5
  */
6
6
  export type RemoveWordsIfNoResults =
7
7
  | 'allOptional'
@@ -1,9 +1,9 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { FacetOrdering } from './facetOrdering';
4
4
 
5
5
  /**
6
- * Content defining how the search interface should be rendered. Can be set via the settings for a default value and can be overridden via rules.
6
+ * Extra content for the search UI, for example, to control the [ordering and display of facets](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/merchandising-facets/#merchandise-facets-and-their-values-in-the-manual-editor). You can set a default value and dynamically override it with [Rules](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/).
7
7
  */
8
8
  export type RenderingContent = {
9
9
  facetOrdering?: FacetOrdering;
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type ReplaceSourceResponse = {
4
4
  /**
5
- * Date of last update (ISO-8601 format).
5
+ * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
6
6
  */
7
7
  updatedAt: string;
8
8
  };
package/model/rule.ts CHANGED
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { Condition } from './condition';
4
4
  import type { Consequence } from './consequence';
@@ -9,29 +9,29 @@ import type { TimeRange } from './timeRange';
9
9
  */
10
10
  export type Rule = {
11
11
  /**
12
- * Unique identifier of the object.
12
+ * Unique identifier for a rule object.
13
13
  */
14
14
  objectID: string;
15
15
 
16
16
  /**
17
- * A list of conditions that should apply to activate a Rule. You can use up to 25 conditions per Rule.
17
+ * [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule.
18
18
  */
19
19
  conditions?: Condition[];
20
20
 
21
21
  consequence?: Consequence;
22
22
 
23
23
  /**
24
- * This field is intended for Rule management purposes, in particular to ease searching for Rules and presenting them to human readers. It\'s not interpreted by the API.
24
+ * Description of the rule\'s purpose. This can be helpful for display in the Algolia dashboard.
25
25
  */
26
26
  description?: string;
27
27
 
28
28
  /**
29
- * Whether the Rule is enabled. Disabled Rules remain in the index, but aren\'t applied at query time.
29
+ * Indicates whether to enable the rule. If it isn\'t enabled, it isn\'t applied at query time.
30
30
  */
31
31
  enabled?: boolean;
32
32
 
33
33
  /**
34
- * By default, Rules are permanently valid. When validity periods are specified, the Rule applies only during those periods; it\'s ignored the rest of the time. The list must not be empty.
34
+ * If you specify a validity period, the rule _only_ applies only during that period. If specified, the array must not be empty.
35
35
  */
36
36
  validity?: TimeRange[];
37
37
  };
@@ -1,15 +1,18 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type SaveObjectResponse = {
4
+ /**
5
+ * Date of creation (ISO-8601 format).
6
+ */
4
7
  createdAt: string;
5
8
 
6
9
  /**
7
- * TaskID of the task to wait for.
10
+ * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
8
11
  */
9
12
  taskID: number;
10
13
 
11
14
  /**
12
- * Unique identifier of the object.
15
+ * Unique object identifier.
13
16
  */
14
17
  objectID?: string;
15
18
  };
@@ -1,18 +1,18 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type SaveSynonymResponse = {
4
4
  /**
5
- * TaskID of the task to wait for.
5
+ * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the `task` operation and this `taskID`.
6
6
  */
7
7
  taskID: number;
8
8
 
9
9
  /**
10
- * Date of last update (ISO-8601 format).
10
+ * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
11
11
  */
12
12
  updatedAt: string;
13
13
 
14
14
  /**
15
- * ObjectID of the inserted object.
15
+ * Unique identifier of a synonym object.
16
16
  */
17
17
  id: string;
18
18
  };
@@ -1,3 +1,3 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type ScopeType = 'rules' | 'settings' | 'synonyms';
@@ -1,26 +1,26 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
- * The `searchDictionaryEntries` parameters.
4
+ * `searchDictionaryEntries` parameters.
5
5
  */
6
6
  export type SearchDictionaryEntriesParams = {
7
7
  /**
8
- * The text to search in the index.
8
+ * Text to search for in an index.
9
9
  */
10
10
  query: string;
11
11
 
12
12
  /**
13
- * Specify the page to retrieve.
13
+ * Page to retrieve (the first page is `0`, not `1`).
14
14
  */
15
15
  page?: number;
16
16
 
17
17
  /**
18
- * Set the number of hits per page.
18
+ * Number of hits per page.
19
19
  */
20
20
  hitsPerPage?: number;
21
21
 
22
22
  /**
23
- * Language ISO code supported by the dictionary (e.g., \"en\" for English).
23
+ * [Supported language ISO code](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/).
24
24
  */
25
25
  language?: string;
26
26
  };
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type SearchForFacetValuesRequest = {
4
4
  /**
5
- * Search parameters as URL-encoded query string.
5
+ * Search parameters as a URL-encoded query string.
6
6
  */
7
7
  params?: string;
8
8
 
@@ -12,7 +12,7 @@ export type SearchForFacetValuesRequest = {
12
12
  facetQuery?: string;
13
13
 
14
14
  /**
15
- * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
15
+ * Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
16
16
  */
17
17
  maxFacetHits?: number;
18
18
  };
@@ -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 { FacetHits } from './facetHits';
4
4
 
@@ -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 { SearchForFacetsOptions } from './searchForFacetsOptions';
4
4
  import type { SearchParams } from './searchParams';
@@ -1,15 +1,15 @@
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 { SearchTypeFacet } from './searchTypeFacet';
4
4
 
5
5
  export type SearchForFacetsOptions = {
6
6
  /**
7
- * The `facet` name.
7
+ * Facet name.
8
8
  */
9
9
  facet: string;
10
10
 
11
11
  /**
12
- * The Algolia index name.
12
+ * Algolia index name.
13
13
  */
14
14
  indexName: string;
15
15
 
@@ -19,7 +19,7 @@ export type SearchForFacetsOptions = {
19
19
  facetQuery?: string;
20
20
 
21
21
  /**
22
- * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
22
+ * Maximum number of facet hits to return when [searching for facet values](https://www.algolia.com/doc/guides/managing-results/refine-results/faceting/#search-for-facet-values).
23
23
  */
24
24
  maxFacetHits?: number;
25
25
 
@@ -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 { SearchForHitsOptions } from './searchForHitsOptions';
4
4
  import type { SearchParams } from './searchParams';
@@ -1,10 +1,10 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { SearchTypeDefault } from './searchTypeDefault';
4
4
 
5
5
  export type SearchForHitsOptions = {
6
6
  /**
7
- * The Algolia index name.
7
+ * Algolia index name.
8
8
  */
9
9
  indexName: string;
10
10
 
@@ -1,7 +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
3
  import type { Hit } from './hit';
4
4
 
5
- export type SearchHits<T = Record<string, any>> = {
5
+ export type SearchHits<T = Record<string, any>> = Record<string, any> & {
6
6
  hits: Array<Hit<T>>;
7
+
8
+ /**
9
+ * Text to search for in an index.
10
+ */
11
+ query: T;
12
+
13
+ /**
14
+ * URL-encoded string of all search parameters.
15
+ */
16
+ params: T;
7
17
  };
@@ -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 { SearchQuery } from './searchQuery';
4
4
  import type { SearchStrategy } from './searchStrategy';
@@ -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 { SearchParamsObject } from './searchParamsObject';
4
4
  import type { SearchParamsString } from './searchParamsString';
@@ -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 { BaseSearchParams } from './baseSearchParams';
4
4
  import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type SearchParamsQuery = {
4
4
  /**
5
- * The text to search in the index.
5
+ * Text to search for in an index.
6
6
  */
7
7
  query?: string;
8
8
  };
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type SearchParamsString = {
4
4
  /**
5
- * Search parameters as URL-encoded query string.
5
+ * Search parameters as a URL-encoded query string.
6
6
  */
7
7
  params?: string;
8
8
  };
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { SearchForFacets } from './searchForFacets';
4
4
  import type { SearchForHits } from './searchForHits';
@@ -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 { BaseSearchResponse } from './baseSearchResponse';
4
4
  import type { SearchHits } from './searchHits';
@@ -1,7 +1,7 @@
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 { SearchResponse } from './searchResponse';
3
+ import type { SearchResult } from './searchResult';
4
4
 
5
- export type SearchResponses<T = Record<string, any>> = {
6
- results: Array<SearchResponse<T>>;
5
+ export type SearchResponses = {
6
+ results: SearchResult[];
7
7
  };
@@ -0,0 +1,6 @@
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ import type { SearchForFacetValuesResponse } from './searchForFacetValuesResponse';
4
+ import type { SearchResponse } from './searchResponse';
5
+
6
+ export type SearchResult = SearchForFacetValuesResponse | SearchResponse;
@@ -1,40 +1,40 @@
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 { Anchoring } from './anchoring';
4
4
 
5
5
  /**
6
- * Parameters for the search.
6
+ * Rules search parameters.
7
7
  */
8
8
  export type SearchRulesParams = {
9
9
  /**
10
- * Full text query.
10
+ * Rule object query.
11
11
  */
12
12
  query?: string;
13
13
 
14
14
  anchoring?: Anchoring;
15
15
 
16
16
  /**
17
- * Restricts matches to contextual rules with a specific context (exact match).
17
+ * Restricts responses to the specified [contextual rule](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/how-to/customize-search-results-by-platform/#creating-contextual-rules).
18
18
  */
19
19
  context?: string;
20
20
 
21
21
  /**
22
- * Requested page (zero-based).
22
+ * Requested page (the first page is page 0).
23
23
  */
24
24
  page?: number;
25
25
 
26
26
  /**
27
- * Maximum number of hits in a page. Minimum is 1, maximum is 1000.
27
+ * Maximum number of hits per page.
28
28
  */
29
29
  hitsPerPage?: number;
30
30
 
31
31
  /**
32
- * When specified, restricts matches to rules with a specific enabled status. When absent (default), all rules are retrieved, regardless of their enabled status.
32
+ * Restricts responses to enabled rules. When not specified (default), _all_ rules are retrieved.
33
33
  */
34
- enabled?: boolean;
34
+ enabled?: boolean | null;
35
35
 
36
36
  /**
37
- * A mapping of requestOptions to send along with the request.
37
+ * Request options to send with the API call.
38
38
  */
39
39
  requestOptions?: Array<Record<string, any>>;
40
40
  };
@@ -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 { Rule } from './rule';
4
4
 
@@ -1,3 +1,6 @@
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
+ /**
4
+ * - `none`: executes all queries. - `stopIfEnoughMatches`: executes queries one by one, stopping further query execution as soon as a query matches at least the `hitsPerPage` number of results.
5
+ */
3
6
  export type SearchStrategy = 'none' | 'stopIfEnoughMatches';
@@ -1,8 +1,8 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type SearchSynonymsParams = {
4
4
  /**
5
- * The text to search in the index.
5
+ * Text to search for in an index.
6
6
  */
7
7
  query?: string;
8
8
  };
@@ -1,15 +1,15 @@
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 { SynonymHit } from './synonymHit';
4
4
 
5
5
  export type SearchSynonymsResponse = Record<string, any> & {
6
6
  /**
7
- * Array of synonym objects.
7
+ * Synonym objects.
8
8
  */
9
9
  hits: SynonymHit[];
10
10
 
11
11
  /**
12
- * Number of hits that the search query matched.
12
+ * Number of hits the search query matched.
13
13
  */
14
14
  nbHits: number;
15
15
  };