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

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 (296) hide show
  1. package/dist/builds/browser.d.ts +2 -2
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +2 -2
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/client-search.cjs.js +159 -37
  6. package/dist/client-search.esm.browser.js +192 -68
  7. package/dist/client-search.esm.node.js +160 -38
  8. package/dist/client-search.umd.js +2 -2
  9. package/dist/model/acl.d.ts +3 -0
  10. package/dist/model/acl.d.ts.map +1 -1
  11. package/dist/model/action.d.ts.map +1 -1
  12. package/dist/model/addApiKeyResponse.d.ts +1 -1
  13. package/dist/model/addApiKeyResponse.d.ts.map +1 -1
  14. package/dist/model/advancedSyntaxFeatures.d.ts.map +1 -1
  15. package/dist/model/alternativesAsExact.d.ts.map +1 -1
  16. package/dist/model/anchoring.d.ts.map +1 -1
  17. package/dist/model/apiKey.d.ts.map +1 -1
  18. package/dist/model/aroundRadius.d.ts.map +1 -1
  19. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  20. package/dist/model/assignUserIdParams.d.ts.map +1 -1
  21. package/dist/model/attributeToUpdate.d.ts +3 -0
  22. package/dist/model/attributeToUpdate.d.ts.map +1 -0
  23. package/dist/model/automaticFacetFilter.d.ts.map +1 -1
  24. package/dist/model/automaticFacetFilters.d.ts.map +1 -1
  25. package/dist/model/baseGetApiKeyResponse.d.ts +11 -0
  26. package/dist/model/baseGetApiKeyResponse.d.ts.map +1 -0
  27. package/dist/model/baseIndexSettings.d.ts.map +1 -1
  28. package/dist/model/baseSearchParams.d.ts.map +1 -1
  29. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  30. package/dist/model/baseSearchResponse.d.ts +3 -3
  31. package/dist/model/baseSearchResponse.d.ts.map +1 -1
  32. package/dist/model/batchAssignUserIdsParams.d.ts.map +1 -1
  33. package/dist/model/batchDictionaryEntriesParams.d.ts.map +1 -1
  34. package/dist/model/batchDictionaryEntriesRequest.d.ts.map +1 -1
  35. package/dist/model/batchParams.d.ts +2 -2
  36. package/dist/model/batchParams.d.ts.map +1 -1
  37. package/dist/model/batchRequest.d.ts +9 -0
  38. package/dist/model/batchRequest.d.ts.map +1 -0
  39. package/dist/model/batchResponse.d.ts.map +1 -1
  40. package/dist/model/batchWriteParams.d.ts +2 -2
  41. package/dist/model/batchWriteParams.d.ts.map +1 -1
  42. package/dist/model/browseParams.d.ts +4 -0
  43. package/dist/model/browseParams.d.ts.map +1 -0
  44. package/dist/model/browseParamsObject.d.ts +4 -0
  45. package/dist/model/browseParamsObject.d.ts.map +1 -0
  46. package/dist/model/browseResponse.d.ts +2 -2
  47. package/dist/model/browseResponse.d.ts.map +1 -1
  48. package/dist/model/builtInOperation.d.ts.map +1 -1
  49. package/dist/model/builtInOperationType.d.ts.map +1 -1
  50. package/dist/model/clientMethodProps.d.ts +25 -14
  51. package/dist/model/clientMethodProps.d.ts.map +1 -1
  52. package/dist/model/condition.d.ts.map +1 -1
  53. package/dist/model/consequence.d.ts.map +1 -1
  54. package/dist/model/consequenceHide.d.ts.map +1 -1
  55. package/dist/model/consequenceParams.d.ts.map +1 -1
  56. package/dist/model/consequenceQuery.d.ts.map +1 -1
  57. package/dist/model/consequenceQueryObject.d.ts.map +1 -1
  58. package/dist/model/createdAtResponse.d.ts.map +1 -1
  59. package/dist/model/{baseBrowseResponse.d.ts → cursor.d.ts} +3 -3
  60. package/dist/model/cursor.d.ts.map +1 -0
  61. package/dist/model/deleteApiKeyResponse.d.ts.map +1 -1
  62. package/dist/model/deleteSourceResponse.d.ts.map +1 -1
  63. package/dist/model/deletedAtResponse.d.ts.map +1 -1
  64. package/dist/model/dictionaryAction.d.ts.map +1 -1
  65. package/dist/model/dictionaryEntry.d.ts.map +1 -1
  66. package/dist/model/dictionaryEntryState.d.ts.map +1 -1
  67. package/dist/model/dictionaryLanguage.d.ts.map +1 -1
  68. package/dist/model/dictionarySettingsParams.d.ts.map +1 -1
  69. package/dist/model/dictionaryType.d.ts.map +1 -1
  70. package/dist/model/distinct.d.ts +5 -0
  71. package/dist/model/distinct.d.ts.map +1 -0
  72. package/dist/model/edit.d.ts.map +1 -1
  73. package/dist/model/editType.d.ts.map +1 -1
  74. package/dist/model/errorBase.d.ts.map +1 -1
  75. package/dist/model/exactOnSingleWordQuery.d.ts.map +1 -1
  76. package/dist/model/facetFilters.d.ts.map +1 -1
  77. package/dist/model/facetHits.d.ts.map +1 -1
  78. package/dist/model/facetOrdering.d.ts.map +1 -1
  79. package/dist/model/facets.d.ts.map +1 -1
  80. package/dist/model/facetsStats.d.ts.map +1 -1
  81. package/dist/model/fetchedIndex.d.ts.map +1 -1
  82. package/dist/model/getApiKeyResponse.d.ts +4 -0
  83. package/dist/model/getApiKeyResponse.d.ts.map +1 -0
  84. package/dist/model/getDictionarySettingsResponse.d.ts.map +1 -1
  85. package/dist/model/getLogsResponse.d.ts.map +1 -1
  86. package/dist/model/getObjectsParams.d.ts +2 -2
  87. package/dist/model/getObjectsParams.d.ts.map +1 -1
  88. package/dist/model/{multipleGetObjectsParams.d.ts → getObjectsRequest.d.ts} +2 -2
  89. package/dist/model/getObjectsRequest.d.ts.map +1 -0
  90. package/dist/model/getObjectsResponse.d.ts +2 -2
  91. package/dist/model/getObjectsResponse.d.ts.map +1 -1
  92. package/dist/model/getTaskResponse.d.ts.map +1 -1
  93. package/dist/model/getTopUserIdsResponse.d.ts.map +1 -1
  94. package/dist/model/hasPendingMappingsResponse.d.ts.map +1 -1
  95. package/dist/model/highlightResult.d.ts.map +1 -1
  96. package/dist/model/highlightResultOption.d.ts.map +1 -1
  97. package/dist/model/hit.d.ts +1 -1
  98. package/dist/model/hit.d.ts.map +1 -1
  99. package/dist/model/ignorePlurals.d.ts.map +1 -1
  100. package/dist/model/index.d.ts +10 -8
  101. package/dist/model/index.d.ts.map +1 -1
  102. package/dist/model/indexSettings.d.ts.map +1 -1
  103. package/dist/model/indexSettingsAsSearchParams.d.ts +4 -2
  104. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  105. package/dist/model/languages.d.ts.map +1 -1
  106. package/dist/model/listApiKeysResponse.d.ts +2 -2
  107. package/dist/model/listApiKeysResponse.d.ts.map +1 -1
  108. package/dist/model/listClustersResponse.d.ts.map +1 -1
  109. package/dist/model/listIndicesResponse.d.ts +1 -1
  110. package/dist/model/listIndicesResponse.d.ts.map +1 -1
  111. package/dist/model/listUserIdsResponse.d.ts.map +1 -1
  112. package/dist/model/log.d.ts.map +1 -1
  113. package/dist/model/logQuery.d.ts.map +1 -1
  114. package/dist/model/logType.d.ts.map +1 -1
  115. package/dist/model/matchLevel.d.ts.map +1 -1
  116. package/dist/model/matchedGeoLocation.d.ts.map +1 -1
  117. package/dist/model/mixedSearchFilters.d.ts.map +1 -1
  118. package/dist/model/{multipleBatchOperation.d.ts → multipleBatchRequest.d.ts} +5 -5
  119. package/dist/model/multipleBatchRequest.d.ts.map +1 -0
  120. package/dist/model/multipleBatchResponse.d.ts +2 -2
  121. package/dist/model/multipleBatchResponse.d.ts.map +1 -1
  122. package/dist/model/numericFilters.d.ts.map +1 -1
  123. package/dist/model/operationIndexParams.d.ts.map +1 -1
  124. package/dist/model/operationType.d.ts.map +1 -1
  125. package/dist/model/optionalFilters.d.ts.map +1 -1
  126. package/dist/model/params.d.ts.map +1 -1
  127. package/dist/model/personalization.d.ts.map +1 -1
  128. package/dist/model/promote.d.ts.map +1 -1
  129. package/dist/model/promoteObjectID.d.ts.map +1 -1
  130. package/dist/model/promoteObjectIDs.d.ts.map +1 -1
  131. package/dist/model/queryType.d.ts.map +1 -1
  132. package/dist/model/rankingInfo.d.ts.map +1 -1
  133. package/dist/model/reRankingApplyFilter.d.ts.map +1 -1
  134. package/dist/model/removeStopWords.d.ts.map +1 -1
  135. package/dist/model/removeUserIdResponse.d.ts.map +1 -1
  136. package/dist/model/removeWordsIfNoResults.d.ts.map +1 -1
  137. package/dist/model/renderingContent.d.ts.map +1 -1
  138. package/dist/model/replaceSourceResponse.d.ts.map +1 -1
  139. package/dist/model/rule.d.ts.map +1 -1
  140. package/dist/model/saveObjectResponse.d.ts +2 -2
  141. package/dist/model/saveObjectResponse.d.ts.map +1 -1
  142. package/dist/model/saveSynonymResponse.d.ts.map +1 -1
  143. package/dist/model/scopeType.d.ts.map +1 -1
  144. package/dist/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  145. package/dist/model/searchForFacetValuesRequest.d.ts.map +1 -1
  146. package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -1
  147. package/dist/model/searchForFacets.d.ts.map +1 -1
  148. package/dist/model/searchForFacetsOptions.d.ts.map +1 -1
  149. package/dist/model/searchForHits.d.ts.map +1 -1
  150. package/dist/model/searchForHitsOptions.d.ts.map +1 -1
  151. package/dist/model/searchHits.d.ts +2 -2
  152. package/dist/model/searchHits.d.ts.map +1 -1
  153. package/dist/model/searchMethodParams.d.ts.map +1 -1
  154. package/dist/model/searchParams.d.ts.map +1 -1
  155. package/dist/model/searchParamsObject.d.ts.map +1 -1
  156. package/dist/model/searchParamsQuery.d.ts.map +1 -1
  157. package/dist/model/searchParamsString.d.ts.map +1 -1
  158. package/dist/model/searchQuery.d.ts.map +1 -1
  159. package/dist/model/searchResponse.d.ts +1 -1
  160. package/dist/model/searchResponse.d.ts.map +1 -1
  161. package/dist/model/searchResponses.d.ts +1 -1
  162. package/dist/model/searchResponses.d.ts.map +1 -1
  163. package/dist/model/searchRulesParams.d.ts.map +1 -1
  164. package/dist/model/searchRulesResponse.d.ts.map +1 -1
  165. package/dist/model/searchStrategy.d.ts.map +1 -1
  166. package/dist/model/searchSynonymsParams.d.ts.map +1 -1
  167. package/dist/model/searchSynonymsResponse.d.ts.map +1 -1
  168. package/dist/model/searchTypeDefault.d.ts.map +1 -1
  169. package/dist/model/searchTypeFacet.d.ts.map +1 -1
  170. package/dist/model/searchUserIdsParams.d.ts.map +1 -1
  171. package/dist/model/searchUserIdsResponse.d.ts.map +1 -1
  172. package/dist/model/snippetResult.d.ts.map +1 -1
  173. package/dist/model/snippetResultOption.d.ts.map +1 -1
  174. package/dist/model/sortRemainingBy.d.ts.map +1 -1
  175. package/dist/model/source.d.ts.map +1 -1
  176. package/dist/model/standardEntries.d.ts.map +1 -1
  177. package/dist/model/synonymHit.d.ts.map +1 -1
  178. package/dist/model/synonymHitHighlightResult.d.ts.map +1 -1
  179. package/dist/model/synonymType.d.ts.map +1 -1
  180. package/dist/model/tagFilters.d.ts.map +1 -1
  181. package/dist/model/taskStatus.d.ts.map +1 -1
  182. package/dist/model/timeRange.d.ts.map +1 -1
  183. package/dist/model/typoTolerance.d.ts.map +1 -1
  184. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  185. package/dist/model/updateApiKeyResponse.d.ts +1 -1
  186. package/dist/model/updateApiKeyResponse.d.ts.map +1 -1
  187. package/dist/model/updatedAtResponse.d.ts.map +1 -1
  188. package/dist/model/updatedAtWithObjectIdResponse.d.ts.map +1 -1
  189. package/dist/model/updatedRuleResponse.d.ts.map +1 -1
  190. package/dist/model/userHighlightResult.d.ts.map +1 -1
  191. package/dist/model/userHit.d.ts.map +1 -1
  192. package/dist/model/userId.d.ts.map +1 -1
  193. package/dist/model/value.d.ts.map +1 -1
  194. package/dist/src/searchClient.d.ts +72 -22
  195. package/dist/src/searchClient.d.ts.map +1 -1
  196. package/model/acl.ts +3 -0
  197. package/model/addApiKeyResponse.ts +2 -1
  198. package/model/apiKey.ts +7 -0
  199. package/model/{attributeOrBuiltInOperation.ts → attributeToUpdate.ts} +1 -1
  200. package/model/automaticFacetFilter.ts +2 -0
  201. package/model/baseGetApiKeyResponse.ts +13 -0
  202. package/model/baseIndexSettings.ts +13 -0
  203. package/model/baseSearchParamsWithoutQuery.ts +32 -0
  204. package/model/baseSearchResponse.ts +27 -3
  205. package/model/batchAssignUserIdsParams.ts +1 -0
  206. package/model/batchDictionaryEntriesParams.ts +1 -0
  207. package/model/batchDictionaryEntriesRequest.ts +1 -0
  208. package/model/batchParams.ts +2 -2
  209. package/model/{batchOperation.ts → batchRequest.ts} +4 -3
  210. package/model/batchResponse.ts +1 -0
  211. package/model/batchWriteParams.ts +2 -2
  212. package/model/browseParams.ts +6 -0
  213. package/model/browseParamsObject.ts +6 -0
  214. package/model/browseResponse.ts +3 -3
  215. package/model/builtInOperation.ts +1 -0
  216. package/model/clientMethodProps.ts +30 -19
  217. package/model/condition.ts +3 -0
  218. package/model/consequence.ts +4 -0
  219. package/model/consequenceQueryObject.ts +1 -0
  220. package/model/{baseBrowseResponse.ts → cursor.ts} +2 -2
  221. package/model/deletedAtResponse.ts +1 -0
  222. package/model/dictionaryEntry.ts +5 -0
  223. package/model/{createdAtObject.ts → distinct.ts} +4 -6
  224. package/model/edit.ts +2 -0
  225. package/model/facetHits.ts +2 -0
  226. package/model/facetOrdering.ts +1 -0
  227. package/model/facetsStats.ts +3 -0
  228. package/model/fetchedIndex.ts +10 -0
  229. package/model/{key.ts → getApiKeyResponse.ts} +2 -2
  230. package/model/getObjectsParams.ts +2 -2
  231. package/model/{multipleGetObjectsParams.ts → getObjectsRequest.ts} +3 -1
  232. package/model/getObjectsResponse.ts +2 -2
  233. package/model/hasPendingMappingsResponse.ts +1 -0
  234. package/model/highlightResultOption.ts +3 -0
  235. package/model/hit.ts +5 -1
  236. package/model/index.ts +10 -8
  237. package/model/indexSettingsAsSearchParams.ts +46 -2
  238. package/model/languages.ts +2 -0
  239. package/model/listApiKeysResponse.ts +2 -2
  240. package/model/listIndicesResponse.ts +2 -1
  241. package/model/log.ts +14 -0
  242. package/model/logQuery.ts +2 -0
  243. package/model/matchedGeoLocation.ts +2 -0
  244. package/model/{multipleBatchOperation.ts → multipleBatchRequest.ts} +6 -4
  245. package/model/multipleBatchResponse.ts +3 -2
  246. package/model/operationIndexParams.ts +2 -0
  247. package/model/params.ts +3 -0
  248. package/model/personalization.ts +2 -0
  249. package/model/promoteObjectID.ts +1 -0
  250. package/model/promoteObjectIDs.ts +1 -0
  251. package/model/rankingInfo.ts +12 -0
  252. package/model/rule.ts +5 -0
  253. package/model/saveObjectResponse.ts +4 -2
  254. package/model/saveSynonymResponse.ts +2 -0
  255. package/model/searchDictionaryEntriesParams.ts +3 -0
  256. package/model/searchForFacetValuesRequest.ts +2 -0
  257. package/model/searchForFacetsOptions.ts +4 -0
  258. package/model/searchForHitsOptions.ts +1 -0
  259. package/model/searchHits.ts +2 -2
  260. package/model/searchMethodParams.ts +1 -0
  261. package/model/searchResponse.ts +2 -1
  262. package/model/searchResponses.ts +1 -1
  263. package/model/searchRulesParams.ts +6 -0
  264. package/model/searchRulesResponse.ts +3 -0
  265. package/model/searchSynonymsResponse.ts +1 -0
  266. package/model/searchUserIdsParams.ts +3 -0
  267. package/model/searchUserIdsResponse.ts +4 -0
  268. package/model/snippetResultOption.ts +1 -0
  269. package/model/source.ts +1 -0
  270. package/model/standardEntries.ts +2 -0
  271. package/model/synonymHit.ts +8 -0
  272. package/model/synonymHitHighlightResult.ts +1 -0
  273. package/model/timeRange.ts +1 -0
  274. package/model/updateApiKeyResponse.ts +2 -1
  275. package/model/updatedAtResponse.ts +1 -0
  276. package/model/updatedAtWithObjectIdResponse.ts +2 -0
  277. package/model/updatedRuleResponse.ts +2 -0
  278. package/model/userHighlightResult.ts +1 -0
  279. package/model/userHit.ts +5 -0
  280. package/model/userId.ts +3 -0
  281. package/model/value.ts +1 -0
  282. package/package.json +8 -6
  283. package/dist/model/attributeOrBuiltInOperation.d.ts +0 -3
  284. package/dist/model/attributeOrBuiltInOperation.d.ts.map +0 -1
  285. package/dist/model/baseBrowseResponse.d.ts.map +0 -1
  286. package/dist/model/batchOperation.d.ts +0 -9
  287. package/dist/model/batchOperation.d.ts.map +0 -1
  288. package/dist/model/browseRequest.d.ts +0 -11
  289. package/dist/model/browseRequest.d.ts.map +0 -1
  290. package/dist/model/createdAtObject.d.ts +0 -7
  291. package/dist/model/createdAtObject.d.ts.map +0 -1
  292. package/dist/model/key.d.ts +0 -4
  293. package/dist/model/key.d.ts.map +0 -1
  294. package/dist/model/multipleBatchOperation.d.ts.map +0 -1
  295. package/dist/model/multipleGetObjectsParams.d.ts.map +0 -1
  296. package/model/browseRequest.ts +0 -12
@@ -1,8 +1,6 @@
1
1
  // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
2
 
3
- export type CreatedAtObject = {
4
- /**
5
- * Date of creation (ISO-8601 format).
6
- */
7
- createdAt: string;
8
- };
3
+ /**
4
+ * Enables de-duplication or grouping of results.
5
+ */
6
+ export type Distinct = boolean | number;
package/model/edit.ts CHANGED
@@ -4,10 +4,12 @@ import type { EditType } from './editType';
4
4
 
5
5
  export type Edit = {
6
6
  type?: EditType;
7
+
7
8
  /**
8
9
  * Text or patterns to remove from the query string.
9
10
  */
10
11
  delete?: string;
12
+
11
13
  /**
12
14
  * Text that should be inserted in place of the removed text inside the query string.
13
15
  */
@@ -5,10 +5,12 @@ export type FacetHits = {
5
5
  * Raw value of the facet.
6
6
  */
7
7
  value: string;
8
+
8
9
  /**
9
10
  * Markup text with occurrences highlighted.
10
11
  */
11
12
  highlighted: string;
13
+
12
14
  /**
13
15
  * How many objects contain this facet value. This takes into account the extra search parameters specified in the query. Like for a regular search query, the counts may not be exhaustive.
14
16
  */
@@ -8,6 +8,7 @@ import type { Value } from './value';
8
8
  */
9
9
  export type FacetOrdering = {
10
10
  facets?: Facets;
11
+
11
12
  /**
12
13
  * The ordering of facet values, within an individual list.
13
14
  */
@@ -5,14 +5,17 @@ export type FacetsStats = {
5
5
  * The minimum value in the result set.
6
6
  */
7
7
  min?: number;
8
+
8
9
  /**
9
10
  * The maximum value in the result set.
10
11
  */
11
12
  max?: number;
13
+
12
14
  /**
13
15
  * The average facet value in the result set.
14
16
  */
15
17
  avg?: number;
18
+
16
19
  /**
17
20
  * The sum of all values in the result set.
18
21
  */
@@ -5,42 +5,52 @@ export type FetchedIndex = {
5
5
  * Index name.
6
6
  */
7
7
  name: string;
8
+
8
9
  /**
9
10
  * Index creation date. An empty string means that the index has no records.
10
11
  */
11
12
  createdAt: string;
13
+
12
14
  /**
13
15
  * Date of last update (ISO-8601 format).
14
16
  */
15
17
  updatedAt: string;
18
+
16
19
  /**
17
20
  * Number of records contained in the index.
18
21
  */
19
22
  entries: number;
23
+
20
24
  /**
21
25
  * Number of bytes of the index in minified format.
22
26
  */
23
27
  dataSize: number;
28
+
24
29
  /**
25
30
  * Number of bytes of the index binary file.
26
31
  */
27
32
  fileSize: number;
33
+
28
34
  /**
29
35
  * Last build time.
30
36
  */
31
37
  lastBuildTimeS: number;
38
+
32
39
  /**
33
40
  * Number of pending indexing operations. This value is deprecated and should not be used.
34
41
  */
35
42
  numberOfPendingTask?: number;
43
+
36
44
  /**
37
45
  * A boolean which says whether the index has pending tasks. This value is deprecated and should not be used.
38
46
  */
39
47
  pendingTask: boolean;
48
+
40
49
  /**
41
50
  * Only present if the index is a replica. Contains the name of the related primary index.
42
51
  */
43
52
  primary?: string;
53
+
44
54
  /**
45
55
  * Only present if the index is a primary index with replicas. Contains the names of all linked replicas.
46
56
  */
@@ -1,6 +1,6 @@
1
1
  // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
2
 
3
3
  import type { ApiKey } from './apiKey';
4
- import type { CreatedAtObject } from './createdAtObject';
4
+ import type { BaseGetApiKeyResponse } from './baseGetApiKeyResponse';
5
5
 
6
- export type Key = ApiKey & CreatedAtObject;
6
+ export type GetApiKeyResponse = ApiKey & BaseGetApiKeyResponse;
@@ -1,10 +1,10 @@
1
1
  // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
2
 
3
- import type { MultipleGetObjectsParams } from './multipleGetObjectsParams';
3
+ import type { GetObjectsRequest } from './getObjectsRequest';
4
4
 
5
5
  /**
6
6
  * The `getObjects` parameters.
7
7
  */
8
8
  export type GetObjectsParams = {
9
- requests?: MultipleGetObjectsParams[];
9
+ requests: GetObjectsRequest[];
10
10
  };
@@ -3,15 +3,17 @@
3
3
  /**
4
4
  * GetObjects operation on an index.
5
5
  */
6
- export type MultipleGetObjectsParams = {
6
+ export type GetObjectsRequest = {
7
7
  /**
8
8
  * List of attributes to retrieve. By default, all retrievable attributes are returned.
9
9
  */
10
10
  attributesToRetrieve?: string[];
11
+
11
12
  /**
12
13
  * ID of the object within that index.
13
14
  */
14
15
  objectID: string;
16
+
15
17
  /**
16
18
  * Name of the index containing the object.
17
19
  */
@@ -1,8 +1,8 @@
1
1
  // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
2
 
3
- export type GetObjectsResponse = {
3
+ export type GetObjectsResponse<T = Record<string, any>> = {
4
4
  /**
5
5
  * List of results fetched.
6
6
  */
7
- results?: Array<Record<string, any>>;
7
+ results: T[];
8
8
  };
@@ -5,6 +5,7 @@ export type HasPendingMappingsResponse = {
5
5
  * If there is any clusters with pending mapping state.
6
6
  */
7
7
  pending: boolean;
8
+
8
9
  /**
9
10
  * Describe cluster pending (migrating, creating, deleting) mapping state.
10
11
  */
@@ -10,11 +10,14 @@ export type HighlightResultOption = {
10
10
  * Markup text with occurrences highlighted.
11
11
  */
12
12
  value: string;
13
+
13
14
  matchLevel: MatchLevel;
15
+
14
16
  /**
15
17
  * List of words from the query that matched the object.
16
18
  */
17
19
  matchedWords: string[];
20
+
18
21
  /**
19
22
  * Whether the entire attribute value is highlighted.
20
23
  */
package/model/hit.ts CHANGED
@@ -7,19 +7,23 @@ import type { SnippetResult } from './snippetResult';
7
7
  /**
8
8
  * A single hit.
9
9
  */
10
- export type Hit<T> = T & {
10
+ export type Hit<T = Record<string, any>> = T & {
11
11
  /**
12
12
  * Unique identifier of the object.
13
13
  */
14
14
  objectID: string;
15
+
15
16
  /**
16
17
  * Show highlighted section and words matched on a query.
17
18
  */
18
19
  _highlightResult?: Record<string, HighlightResult>;
20
+
19
21
  /**
20
22
  * Snippeted attributes show parts of the matched attributes. Only returned when attributesToSnippet is non-empty.
21
23
  */
22
24
  _snippetResult?: Record<string, SnippetResult>;
25
+
23
26
  _rankingInfo?: RankingInfo;
27
+
24
28
  _distinctSeqID?: number;
25
29
  };
package/model/index.ts CHANGED
@@ -10,10 +10,10 @@ export * from './apiKey';
10
10
  export * from './aroundRadius';
11
11
  export * from './aroundRadiusAll';
12
12
  export * from './assignUserIdParams';
13
- export * from './attributeOrBuiltInOperation';
13
+ export * from './attributeToUpdate';
14
14
  export * from './automaticFacetFilter';
15
15
  export * from './automaticFacetFilters';
16
- export * from './baseBrowseResponse';
16
+ export * from './baseGetApiKeyResponse';
17
17
  export * from './baseIndexSettings';
18
18
  export * from './baseSearchParams';
19
19
  export * from './baseSearchParamsWithoutQuery';
@@ -21,11 +21,12 @@ export * from './baseSearchResponse';
21
21
  export * from './batchAssignUserIdsParams';
22
22
  export * from './batchDictionaryEntriesParams';
23
23
  export * from './batchDictionaryEntriesRequest';
24
- export * from './batchOperation';
25
24
  export * from './batchParams';
25
+ export * from './batchRequest';
26
26
  export * from './batchResponse';
27
27
  export * from './batchWriteParams';
28
- export * from './browseRequest';
28
+ export * from './browseParams';
29
+ export * from './browseParamsObject';
29
30
  export * from './browseResponse';
30
31
  export * from './builtInOperation';
31
32
  export * from './builtInOperationType';
@@ -35,8 +36,8 @@ export * from './consequenceHide';
35
36
  export * from './consequenceParams';
36
37
  export * from './consequenceQuery';
37
38
  export * from './consequenceQueryObject';
38
- export * from './createdAtObject';
39
39
  export * from './createdAtResponse';
40
+ export * from './cursor';
40
41
  export * from './deleteApiKeyResponse';
41
42
  export * from './deleteSourceResponse';
42
43
  export * from './deletedAtResponse';
@@ -46,6 +47,7 @@ export * from './dictionaryEntryState';
46
47
  export * from './dictionaryLanguage';
47
48
  export * from './dictionarySettingsParams';
48
49
  export * from './dictionaryType';
50
+ export * from './distinct';
49
51
  export * from './edit';
50
52
  export * from './editType';
51
53
  export * from './errorBase';
@@ -56,9 +58,11 @@ export * from './facetOrdering';
56
58
  export * from './facets';
57
59
  export * from './facetsStats';
58
60
  export * from './fetchedIndex';
61
+ export * from './getApiKeyResponse';
59
62
  export * from './getDictionarySettingsResponse';
60
63
  export * from './getLogsResponse';
61
64
  export * from './getObjectsParams';
65
+ export * from './getObjectsRequest';
62
66
  export * from './getObjectsResponse';
63
67
  export * from './getTaskResponse';
64
68
  export * from './getTopUserIdsResponse';
@@ -69,7 +73,6 @@ export * from './hit';
69
73
  export * from './ignorePlurals';
70
74
  export * from './indexSettings';
71
75
  export * from './indexSettingsAsSearchParams';
72
- export * from './key';
73
76
  export * from './languages';
74
77
  export * from './listApiKeysResponse';
75
78
  export * from './listClustersResponse';
@@ -81,9 +84,8 @@ export * from './logType';
81
84
  export * from './matchLevel';
82
85
  export * from './matchedGeoLocation';
83
86
  export * from './mixedSearchFilters';
84
- export * from './multipleBatchOperation';
87
+ export * from './multipleBatchRequest';
85
88
  export * from './multipleBatchResponse';
86
- export * from './multipleGetObjectsParams';
87
89
  export * from './numericFilters';
88
90
  export * from './operationIndexParams';
89
91
  export * from './operationType';
@@ -2,6 +2,7 @@
2
2
 
3
3
  import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
4
4
  import type { AlternativesAsExact } from './alternativesAsExact';
5
+ import type { Distinct } from './distinct';
5
6
  import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
6
7
  import type { IgnorePlurals } from './ignorePlurals';
7
8
  import type { QueryType } from './queryType';
@@ -15,147 +16,190 @@ export type IndexSettingsAsSearchParams = {
15
16
  * The complete list of attributes that will be used for faceting.
16
17
  */
17
18
  attributesForFaceting?: string[];
19
+
18
20
  /**
19
21
  * List of attributes that can\'t be retrieved at query time.
20
22
  */
21
23
  unretrievableAttributes?: string[];
24
+
22
25
  /**
23
26
  * This parameter controls which attributes to retrieve and which not to retrieve.
24
27
  */
25
28
  attributesToRetrieve?: string[];
29
+
26
30
  /**
27
31
  * Restricts a given query to look in only a subset of your searchable attributes.
28
32
  */
29
33
  restrictSearchableAttributes?: string[];
34
+
30
35
  /**
31
36
  * Controls how Algolia should sort your results.
32
37
  */
33
38
  ranking?: string[];
39
+
34
40
  /**
35
41
  * Specifies the custom ranking criterion.
36
42
  */
37
43
  customRanking?: string[];
44
+
38
45
  /**
39
46
  * Controls the relevancy threshold below which less relevant results aren\'t included in the results.
40
47
  */
41
48
  relevancyStrictness?: number;
49
+
42
50
  /**
43
51
  * List of attributes to highlight.
44
52
  */
45
53
  attributesToHighlight?: string[];
54
+
46
55
  /**
47
56
  * List of attributes to snippet, with an optional maximum number of words to snippet.
48
57
  */
49
58
  attributesToSnippet?: string[];
59
+
50
60
  /**
51
61
  * The HTML string to insert before the highlighted parts in all highlight and snippet results.
52
62
  */
53
63
  highlightPreTag?: string;
64
+
54
65
  /**
55
66
  * The HTML string to insert after the highlighted parts in all highlight and snippet results.
56
67
  */
57
68
  highlightPostTag?: string;
69
+
58
70
  /**
59
71
  * String used as an ellipsis indicator when a snippet is truncated.
60
72
  */
61
73
  snippetEllipsisText?: string;
74
+
62
75
  /**
63
76
  * Restrict highlighting and snippeting to items that matched the query.
64
77
  */
65
78
  restrictHighlightAndSnippetArrays?: boolean;
79
+
66
80
  /**
67
81
  * Set the number of hits per page.
68
82
  */
69
83
  hitsPerPage?: number;
84
+
70
85
  /**
71
86
  * Minimum number of characters a word in the query string must contain to accept matches with 1 typo.
72
87
  */
73
88
  minWordSizefor1Typo?: number;
89
+
74
90
  /**
75
91
  * Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
76
92
  */
77
93
  minWordSizefor2Typos?: number;
94
+
78
95
  typoTolerance?: TypoTolerance;
96
+
79
97
  /**
80
98
  * Whether to allow typos on numbers (\"numeric tokens\") in the query string.
81
99
  */
82
100
  allowTyposOnNumericTokens?: boolean;
101
+
83
102
  /**
84
103
  * List of attributes on which you want to disable typo tolerance.
85
104
  */
86
105
  disableTypoToleranceOnAttributes?: string[];
106
+
87
107
  ignorePlurals?: IgnorePlurals;
108
+
88
109
  removeStopWords?: RemoveStopWords;
110
+
89
111
  /**
90
112
  * List of characters that the engine shouldn\'t automatically normalize.
91
113
  */
92
114
  keepDiacriticsOnCharacters?: string;
115
+
93
116
  /**
94
117
  * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
95
118
  */
96
119
  queryLanguages?: string[];
120
+
97
121
  /**
98
122
  * Splits compound words into their composing atoms in the query.
99
123
  */
100
124
  decompoundQuery?: boolean;
125
+
101
126
  /**
102
127
  * Whether Rules should be globally enabled.
103
128
  */
104
129
  enableRules?: boolean;
130
+
105
131
  /**
106
132
  * Enable the Personalization feature.
107
133
  */
108
134
  enablePersonalization?: boolean;
135
+
109
136
  queryType?: QueryType;
137
+
110
138
  removeWordsIfNoResults?: RemoveWordsIfNoResults;
139
+
111
140
  /**
112
141
  * Enables the advanced query syntax.
113
142
  */
114
143
  advancedSyntax?: boolean;
144
+
115
145
  /**
116
146
  * A list of words that should be considered as optional when found in the query.
117
147
  */
118
148
  optionalWords?: string[];
149
+
119
150
  /**
120
151
  * List of attributes on which you want to disable the exact ranking criterion.
121
152
  */
122
153
  disableExactOnAttributes?: string[];
154
+
123
155
  exactOnSingleWordQuery?: ExactOnSingleWordQuery;
156
+
124
157
  /**
125
158
  * List of alternatives that should be considered an exact match by the exact ranking criterion.
126
159
  */
127
160
  alternativesAsExact?: AlternativesAsExact[];
161
+
128
162
  /**
129
163
  * Allows you to specify which advanced syntax features are active when ‘advancedSyntax\' is enabled.
130
164
  */
131
165
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
166
+
167
+ distinct?: Distinct;
168
+
132
169
  /**
133
- * Enables de-duplication or grouping of results.
170
+ * Name of the de-duplication attribute to be used with the distinct feature.
134
171
  */
135
- distinct?: number;
172
+ attributeForDistinct?: string;
173
+
136
174
  /**
137
175
  * Whether to take into account an index\'s synonyms for a particular search.
138
176
  */
139
177
  synonyms?: boolean;
178
+
140
179
  /**
141
180
  * Whether to highlight and snippet the original word that matches the synonym or the synonym itself.
142
181
  */
143
182
  replaceSynonymsInHighlight?: boolean;
183
+
144
184
  /**
145
185
  * Precision of the proximity ranking criterion.
146
186
  */
147
187
  minProximity?: number;
188
+
148
189
  /**
149
190
  * Choose which fields to return in the API response. This parameters applies to search and browse queries.
150
191
  */
151
192
  responseFields?: string[];
193
+
152
194
  /**
153
195
  * Maximum number of facet hits to return during a search for facet values. For performance reasons, the maximum allowed number of returned values is 100.
154
196
  */
155
197
  maxFacetHits?: number;
198
+
156
199
  /**
157
200
  * When attribute is ranked above proximity in your ranking formula, proximity is used to select which searchable attribute is matched in the attribute ranking stage.
158
201
  */
159
202
  attributeCriteriaComputedByMinProximity?: boolean;
203
+
160
204
  renderingContent?: RenderingContent;
161
205
  };
@@ -7,6 +7,8 @@ import type { DictionaryLanguage } from './dictionaryLanguage';
7
7
  */
8
8
  export type Languages = {
9
9
  plurals: DictionaryLanguage | null;
10
+
10
11
  stopwords: DictionaryLanguage | null;
12
+
11
13
  compounds: DictionaryLanguage | null;
12
14
  };
@@ -1,10 +1,10 @@
1
1
  // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
2
 
3
- import type { Key } from './key';
3
+ import type { GetApiKeyResponse } from './getApiKeyResponse';
4
4
 
5
5
  export type ListApiKeysResponse = {
6
6
  /**
7
7
  * List of api keys.
8
8
  */
9
- keys: Key[];
9
+ keys: GetApiKeyResponse[];
10
10
  };
@@ -6,7 +6,8 @@ export type ListIndicesResponse = {
6
6
  /**
7
7
  * List of the fetched indices.
8
8
  */
9
- items?: FetchedIndex[];
9
+ items: FetchedIndex[];
10
+
10
11
  /**
11
12
  * Number of pages.
12
13
  */
package/model/log.ts CHANGED
@@ -7,58 +7,72 @@ export type Log = {
7
7
  * Timestamp in ISO-8601 format.
8
8
  */
9
9
  timestamp: string;
10
+
10
11
  /**
11
12
  * HTTP method of the performed request.
12
13
  */
13
14
  method: string;
15
+
14
16
  /**
15
17
  * HTTP response code.
16
18
  */
17
19
  answer_code: string;
20
+
18
21
  /**
19
22
  * Request body. Truncated after 1000 characters.
20
23
  */
21
24
  query_body: string;
25
+
22
26
  /**
23
27
  * Answer body. Truncated after 1000 characters.
24
28
  */
25
29
  answer: string;
30
+
26
31
  /**
27
32
  * Request URL.
28
33
  */
29
34
  url: string;
35
+
30
36
  /**
31
37
  * IP of the client which performed the request.
32
38
  */
33
39
  ip: string;
40
+
34
41
  /**
35
42
  * Request Headers (API Key is obfuscated).
36
43
  */
37
44
  query_headers: string;
45
+
38
46
  /**
39
47
  * SHA1 signature of the log entry.
40
48
  */
41
49
  sha1: string;
50
+
42
51
  /**
43
52
  * Number of API calls.
44
53
  */
45
54
  nb_api_calls: string;
55
+
46
56
  /**
47
57
  * Processing time for the query. It doesn\'t include network time.
48
58
  */
49
59
  processing_time_ms: string;
60
+
50
61
  /**
51
62
  * Index targeted by the query.
52
63
  */
53
64
  index?: string;
65
+
54
66
  /**
55
67
  * Query parameters sent with the request.
56
68
  */
57
69
  query_params?: string;
70
+
58
71
  /**
59
72
  * Number of hits returned for the query.
60
73
  */
61
74
  query_nb_hits?: string;
75
+
62
76
  /**
63
77
  * Array of all performed queries for the given request.
64
78
  */
package/model/logQuery.ts CHANGED
@@ -5,10 +5,12 @@ export type LogQuery = {
5
5
  * Index targeted by the query.
6
6
  */
7
7
  index_name?: string;
8
+
8
9
  /**
9
10
  * User identifier.
10
11
  */
11
12
  user_token?: string;
13
+
12
14
  /**
13
15
  * QueryID for the given query.
14
16
  */
@@ -5,10 +5,12 @@ export type MatchedGeoLocation = {
5
5
  * Latitude of the matched location.
6
6
  */
7
7
  lat?: number;
8
+
8
9
  /**
9
10
  * Longitude of the matched location.
10
11
  */
11
12
  lng?: number;
13
+
12
14
  /**
13
15
  * Distance between the matched location and the search location (in meters).
14
16
  */
@@ -2,14 +2,16 @@
2
2
 
3
3
  import type { Action } from './action';
4
4
 
5
- export type MultipleBatchOperation = {
6
- action?: Action;
5
+ export type MultipleBatchRequest = {
6
+ action: Action;
7
+
7
8
  /**
8
9
  * Arguments to the operation (depends on the type of the operation).
9
10
  */
10
- body?: Record<string, any>;
11
+ body: Record<string, any>;
12
+
11
13
  /**
12
14
  * Index to target for this operation.
13
15
  */
14
- indexName?: string;
16
+ indexName: string;
15
17
  };
@@ -4,9 +4,10 @@ export type MultipleBatchResponse = {
4
4
  /**
5
5
  * List of tasksIDs per index.
6
6
  */
7
- taskID?: Record<string, any>;
7
+ taskID: Record<string, number>;
8
+
8
9
  /**
9
10
  * List of objectID.
10
11
  */
11
- objectIDs?: string[];
12
+ objectIDs: string[];
12
13
  };