@algolia/client-search 5.0.0-alpha.73 → 5.0.0-alpha.75

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 (231) hide show
  1. package/dist/client-search.cjs.js +188 -186
  2. package/dist/client-search.esm.browser.js +188 -184
  3. package/dist/client-search.esm.node.js +188 -184
  4. package/dist/client-search.umd.js +2 -2
  5. package/dist/model/acl.d.ts +1 -1
  6. package/dist/model/action.d.ts +1 -1
  7. package/dist/model/addApiKeyResponse.d.ts +2 -2
  8. package/dist/model/anchoring.d.ts +1 -1
  9. package/dist/model/apiKey.d.ts +9 -9
  10. package/dist/model/aroundRadius.d.ts +1 -1
  11. package/dist/model/assignUserIdParams.d.ts +1 -1
  12. package/dist/model/baseGetApiKeyResponse.d.ts +2 -2
  13. package/dist/model/baseIndexSettings.d.ts +14 -14
  14. package/dist/model/baseSearchParamsWithoutQuery.d.ts +25 -25
  15. package/dist/model/baseSearchResponse.d.ts +20 -20
  16. package/dist/model/baseSearchResponseRedirect.d.ts +1 -1
  17. package/dist/model/batchAssignUserIdsParams.d.ts +2 -2
  18. package/dist/model/batchDictionaryEntriesParams.d.ts +3 -3
  19. package/dist/model/batchParams.d.ts +1 -1
  20. package/dist/model/batchRequest.d.ts +1 -1
  21. package/dist/model/batchResponse.d.ts +2 -2
  22. package/dist/model/batchWriteParams.d.ts +1 -1
  23. package/dist/model/builtInOperation.d.ts +1 -1
  24. package/dist/model/builtInOperationType.d.ts +1 -1
  25. package/dist/model/clientMethodProps.d.ts +88 -84
  26. package/dist/model/clientMethodProps.d.ts.map +1 -1
  27. package/dist/model/consequence.d.ts +4 -4
  28. package/dist/model/consequenceHide.d.ts +2 -2
  29. package/dist/model/createdAtResponse.d.ts +2 -2
  30. package/dist/model/cursor.d.ts +1 -1
  31. package/dist/model/deleteApiKeyResponse.d.ts +1 -1
  32. package/dist/model/deleteByParams.d.ts +4 -4
  33. package/dist/model/deleteSourceResponse.d.ts +1 -1
  34. package/dist/model/deletedAtResponse.d.ts +3 -3
  35. package/dist/model/dictionaryEntry.d.ts +6 -6
  36. package/dist/model/dictionaryEntryState.d.ts +1 -1
  37. package/dist/model/dictionaryLanguage.d.ts +2 -2
  38. package/dist/model/dictionarySettingsParams.d.ts +1 -1
  39. package/dist/model/distinct.d.ts +1 -1
  40. package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
  41. package/dist/model/facetFilters.d.ts +1 -1
  42. package/dist/model/facetHits.d.ts +3 -3
  43. package/dist/model/facetOrdering.d.ts +2 -2
  44. package/dist/model/facets.d.ts +1 -1
  45. package/dist/model/facetsStats.d.ts +4 -4
  46. package/dist/model/fetchedIndex.d.ts +1 -1
  47. package/dist/model/getObjectsParams.d.ts +1 -1
  48. package/dist/model/getObjectsRequest.d.ts +4 -4
  49. package/dist/model/getObjectsResponse.d.ts +1 -1
  50. package/dist/model/getTopUserIdsResponse.d.ts +2 -2
  51. package/dist/model/hasPendingMappingsResponse.d.ts +2 -2
  52. package/dist/model/highlightResultOption.d.ts +1 -1
  53. package/dist/model/hit.d.ts +1 -1
  54. package/dist/model/ignorePlurals.d.ts +1 -1
  55. package/dist/model/indexSettings.d.ts +1 -1
  56. package/dist/model/indexSettingsAsSearchParams.d.ts +30 -30
  57. package/dist/model/indexSettingsAsSearchParamsSemanticSearch.d.ts +2 -2
  58. package/dist/model/languages.d.ts +1 -1
  59. package/dist/model/listApiKeysResponse.d.ts +1 -1
  60. package/dist/model/listClustersResponse.d.ts +2 -2
  61. package/dist/model/listIndicesResponse.d.ts +1 -1
  62. package/dist/model/listUserIdsResponse.d.ts +2 -2
  63. package/dist/model/log.d.ts +7 -7
  64. package/dist/model/logQuery.d.ts +1 -1
  65. package/dist/model/mode.d.ts +1 -1
  66. package/dist/model/multipleBatchRequest.d.ts +1 -1
  67. package/dist/model/multipleBatchResponse.d.ts +2 -2
  68. package/dist/model/numericFilters.d.ts +1 -1
  69. package/dist/model/operationIndexParams.d.ts +2 -2
  70. package/dist/model/operationType.d.ts +1 -1
  71. package/dist/model/optionalFilters.d.ts +1 -1
  72. package/dist/model/params.d.ts +1 -1
  73. package/dist/model/promoteObjectID.d.ts +3 -3
  74. package/dist/model/promoteObjectIDs.d.ts +3 -3
  75. package/dist/model/queryType.d.ts +1 -1
  76. package/dist/model/reRankingApplyFilter.d.ts +1 -1
  77. package/dist/model/redirectRuleIndexMetadata.d.ts +1 -1
  78. package/dist/model/redirectRuleIndexMetadataData.d.ts +1 -1
  79. package/dist/model/removeStopWords.d.ts +1 -1
  80. package/dist/model/removeUserIdResponse.d.ts +1 -1
  81. package/dist/model/removeWordsIfNoResults.d.ts +1 -1
  82. package/dist/model/renderingContent.d.ts +1 -1
  83. package/dist/model/replaceSourceResponse.d.ts +1 -1
  84. package/dist/model/rule.d.ts +5 -5
  85. package/dist/model/saveObjectResponse.d.ts +5 -2
  86. package/dist/model/saveObjectResponse.d.ts.map +1 -1
  87. package/dist/model/saveSynonymResponse.d.ts +3 -3
  88. package/dist/model/searchDictionaryEntriesParams.d.ts +5 -5
  89. package/dist/model/searchForFacetValuesRequest.d.ts +2 -2
  90. package/dist/model/searchForFacetsOptions.d.ts +3 -3
  91. package/dist/model/searchForHitsOptions.d.ts +1 -1
  92. package/dist/model/searchParamsQuery.d.ts +1 -1
  93. package/dist/model/searchParamsString.d.ts +1 -1
  94. package/dist/model/searchRulesParams.d.ts +7 -7
  95. package/dist/model/searchStrategy.d.ts +3 -0
  96. package/dist/model/searchStrategy.d.ts.map +1 -1
  97. package/dist/model/searchSynonymsParams.d.ts +1 -1
  98. package/dist/model/searchSynonymsResponse.d.ts +2 -2
  99. package/dist/model/searchTypeDefault.d.ts +1 -1
  100. package/dist/model/searchTypeFacet.d.ts +1 -1
  101. package/dist/model/searchUserIdsParams.d.ts +4 -4
  102. package/dist/model/searchUserIdsResponse.d.ts +5 -5
  103. package/dist/model/snippetResultOption.d.ts +1 -1
  104. package/dist/model/sortRemainingBy.d.ts +1 -1
  105. package/dist/model/source.d.ts +3 -3
  106. package/dist/model/standardEntries.d.ts +4 -4
  107. package/dist/model/synonymHit.d.ts +6 -6
  108. package/dist/model/synonymType.d.ts +1 -1
  109. package/dist/model/tagFilters.d.ts +1 -1
  110. package/dist/model/taskStatus.d.ts +3 -0
  111. package/dist/model/taskStatus.d.ts.map +1 -1
  112. package/dist/model/typoTolerance.d.ts +1 -1
  113. package/dist/model/updateApiKeyResponse.d.ts +2 -2
  114. package/dist/model/updatedAtResponse.d.ts +3 -3
  115. package/dist/model/updatedAtWithObjectIdResponse.d.ts +4 -4
  116. package/dist/model/updatedRuleResponse.d.ts +3 -3
  117. package/dist/model/userHit.d.ts +1 -1
  118. package/dist/model/userId.d.ts +2 -2
  119. package/dist/src/searchClient.d.ts +185 -184
  120. package/dist/src/searchClient.d.ts.map +1 -1
  121. package/model/acl.ts +1 -1
  122. package/model/action.ts +1 -1
  123. package/model/addApiKeyResponse.ts +2 -2
  124. package/model/anchoring.ts +1 -1
  125. package/model/apiKey.ts +9 -9
  126. package/model/aroundRadius.ts +1 -1
  127. package/model/assignUserIdParams.ts +1 -1
  128. package/model/baseGetApiKeyResponse.ts +2 -2
  129. package/model/baseIndexSettings.ts +14 -14
  130. package/model/baseSearchParamsWithoutQuery.ts +25 -25
  131. package/model/baseSearchResponse.ts +20 -20
  132. package/model/baseSearchResponseRedirect.ts +1 -1
  133. package/model/batchAssignUserIdsParams.ts +2 -2
  134. package/model/batchDictionaryEntriesParams.ts +3 -3
  135. package/model/batchParams.ts +1 -1
  136. package/model/batchRequest.ts +1 -1
  137. package/model/batchResponse.ts +2 -2
  138. package/model/batchWriteParams.ts +1 -1
  139. package/model/builtInOperation.ts +1 -1
  140. package/model/builtInOperationType.ts +1 -1
  141. package/model/clientMethodProps.ts +88 -84
  142. package/model/consequence.ts +4 -4
  143. package/model/consequenceHide.ts +2 -2
  144. package/model/createdAtResponse.ts +2 -2
  145. package/model/cursor.ts +1 -1
  146. package/model/deleteApiKeyResponse.ts +1 -1
  147. package/model/deleteByParams.ts +4 -4
  148. package/model/deleteSourceResponse.ts +1 -1
  149. package/model/deletedAtResponse.ts +3 -3
  150. package/model/dictionaryEntry.ts +6 -6
  151. package/model/dictionaryEntryState.ts +1 -1
  152. package/model/dictionaryLanguage.ts +2 -2
  153. package/model/dictionarySettingsParams.ts +1 -1
  154. package/model/distinct.ts +1 -1
  155. package/model/exactOnSingleWordQuery.ts +1 -1
  156. package/model/facetFilters.ts +1 -1
  157. package/model/facetHits.ts +3 -3
  158. package/model/facetOrdering.ts +2 -2
  159. package/model/facets.ts +1 -1
  160. package/model/facetsStats.ts +4 -4
  161. package/model/fetchedIndex.ts +1 -1
  162. package/model/getObjectsParams.ts +1 -1
  163. package/model/getObjectsRequest.ts +4 -4
  164. package/model/getObjectsResponse.ts +1 -1
  165. package/model/getTopUserIdsResponse.ts +2 -2
  166. package/model/hasPendingMappingsResponse.ts +2 -2
  167. package/model/highlightResultOption.ts +1 -1
  168. package/model/hit.ts +1 -1
  169. package/model/ignorePlurals.ts +1 -1
  170. package/model/indexSettings.ts +1 -1
  171. package/model/indexSettingsAsSearchParams.ts +30 -30
  172. package/model/indexSettingsAsSearchParamsSemanticSearch.ts +2 -2
  173. package/model/languages.ts +1 -1
  174. package/model/listApiKeysResponse.ts +1 -1
  175. package/model/listClustersResponse.ts +2 -2
  176. package/model/listIndicesResponse.ts +1 -1
  177. package/model/listUserIdsResponse.ts +2 -2
  178. package/model/log.ts +7 -7
  179. package/model/logQuery.ts +1 -1
  180. package/model/mode.ts +1 -1
  181. package/model/multipleBatchRequest.ts +1 -1
  182. package/model/multipleBatchResponse.ts +2 -2
  183. package/model/numericFilters.ts +1 -1
  184. package/model/operationIndexParams.ts +2 -2
  185. package/model/operationType.ts +1 -1
  186. package/model/optionalFilters.ts +1 -1
  187. package/model/params.ts +1 -1
  188. package/model/promoteObjectID.ts +3 -3
  189. package/model/promoteObjectIDs.ts +3 -3
  190. package/model/queryType.ts +1 -1
  191. package/model/reRankingApplyFilter.ts +1 -1
  192. package/model/redirectRuleIndexMetadata.ts +1 -1
  193. package/model/redirectRuleIndexMetadataData.ts +1 -1
  194. package/model/removeStopWords.ts +1 -1
  195. package/model/removeUserIdResponse.ts +1 -1
  196. package/model/removeWordsIfNoResults.ts +1 -1
  197. package/model/renderingContent.ts +1 -1
  198. package/model/replaceSourceResponse.ts +1 -1
  199. package/model/rule.ts +5 -5
  200. package/model/saveObjectResponse.ts +5 -2
  201. package/model/saveSynonymResponse.ts +3 -3
  202. package/model/searchDictionaryEntriesParams.ts +5 -5
  203. package/model/searchForFacetValuesRequest.ts +2 -2
  204. package/model/searchForFacetsOptions.ts +3 -3
  205. package/model/searchForHitsOptions.ts +1 -1
  206. package/model/searchParamsQuery.ts +1 -1
  207. package/model/searchParamsString.ts +1 -1
  208. package/model/searchRulesParams.ts +7 -7
  209. package/model/searchStrategy.ts +3 -0
  210. package/model/searchSynonymsParams.ts +1 -1
  211. package/model/searchSynonymsResponse.ts +2 -2
  212. package/model/searchTypeDefault.ts +1 -1
  213. package/model/searchTypeFacet.ts +1 -1
  214. package/model/searchUserIdsParams.ts +4 -4
  215. package/model/searchUserIdsResponse.ts +5 -5
  216. package/model/snippetResultOption.ts +1 -1
  217. package/model/sortRemainingBy.ts +1 -1
  218. package/model/source.ts +3 -3
  219. package/model/standardEntries.ts +4 -4
  220. package/model/synonymHit.ts +6 -6
  221. package/model/synonymType.ts +1 -1
  222. package/model/tagFilters.ts +1 -1
  223. package/model/taskStatus.ts +3 -0
  224. package/model/typoTolerance.ts +1 -1
  225. package/model/updateApiKeyResponse.ts +2 -2
  226. package/model/updatedAtResponse.ts +3 -3
  227. package/model/updatedAtWithObjectIdResponse.ts +4 -4
  228. package/model/updatedRuleResponse.ts +3 -3
  229. package/model/userHit.ts +1 -1
  230. package/model/userId.ts +2 -2
  231. package/package.json +8 -7
@@ -6,7 +6,7 @@ export type BatchRequest = {
6
6
  action: Action;
7
7
 
8
8
  /**
9
- * Arguments to the operation (depends on the type of the operation).
9
+ * Operation arguments (varies with specified `action`).
10
10
  */
11
11
  body: Record<string, any>;
12
12
  };
@@ -2,12 +2,12 @@
2
2
 
3
3
  export type BatchResponse = {
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
- * List of objectID.
10
+ * Unique object (record) identifiers.
11
11
  */
12
12
  objectIDs: string[];
13
13
  };
@@ -3,7 +3,7 @@
3
3
  import type { BatchRequest } from './batchRequest';
4
4
 
5
5
  /**
6
- * The `batch` parameters.
6
+ * Batch parameters.
7
7
  */
8
8
  export type BatchWriteParams = {
9
9
  requests: BatchRequest[];
@@ -9,7 +9,7 @@ export type BuiltInOperation = {
9
9
  _operation: BuiltInOperationType;
10
10
 
11
11
  /**
12
- * The right-hand side argument to the operation, for example, increment or decrement step, value to add or remove.
12
+ * Value that corresponds to the operation, for example an `Increment` or `Decrement` step, `Add` or `Remove` value.
13
13
  */
14
14
  value: string;
15
15
  };
@@ -1,7 +1,7 @@
1
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 operation to apply on the attribute.
4
+ * Operation to apply to the attribute.
5
5
  */
6
6
  export type BuiltInOperationType =
7
7
  | 'Add'
@@ -32,15 +32,15 @@ import type { SynonymType } from './synonymType';
32
32
  */
33
33
  export type AddOrUpdateObjectProps = {
34
34
  /**
35
- * The index in which to perform the request.
35
+ * Index on which to perform the request.
36
36
  */
37
37
  indexName: string;
38
38
  /**
39
- * Unique identifier of an object.
39
+ * Unique record (object) identifier.
40
40
  */
41
41
  objectID: string;
42
42
  /**
43
- * The Algolia object.
43
+ * Algolia record.
44
44
  */
45
45
  body: Record<string, any>;
46
46
  };
@@ -61,7 +61,7 @@ export type AssignUserIdProps = {
61
61
  */
62
62
  export type BatchProps = {
63
63
  /**
64
- * The index in which to perform the request.
64
+ * Index on which to perform the request.
65
65
  */
66
66
  indexName: string;
67
67
  batchWriteParams: BatchWriteParams;
@@ -83,7 +83,7 @@ export type BatchAssignUserIdsProps = {
83
83
  */
84
84
  export type BatchDictionaryEntriesProps = {
85
85
  /**
86
- * The dictionary to search in.
86
+ * Dictionary to search in.
87
87
  */
88
88
  dictionaryName: DictionaryType;
89
89
  batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
@@ -94,7 +94,7 @@ export type BatchDictionaryEntriesProps = {
94
94
  */
95
95
  export type BrowseProps = {
96
96
  /**
97
- * The index in which to perform the request.
97
+ * Index on which to perform the request.
98
98
  */
99
99
  indexName: string;
100
100
  browseParams?: BrowseParams;
@@ -105,11 +105,11 @@ export type BrowseProps = {
105
105
  */
106
106
  export type ClearAllSynonymsProps = {
107
107
  /**
108
- * The index in which to perform the request.
108
+ * Index on which to perform the request.
109
109
  */
110
110
  indexName: string;
111
111
  /**
112
- * When true, changes are also propagated to replicas of the given indexName.
112
+ * Indicates whether changed index settings are forwarded to the replica indices.
113
113
  */
114
114
  forwardToReplicas?: boolean;
115
115
  };
@@ -119,7 +119,7 @@ export type ClearAllSynonymsProps = {
119
119
  */
120
120
  export type ClearObjectsProps = {
121
121
  /**
122
- * The index in which to perform the request.
122
+ * Index on which to perform the request.
123
123
  */
124
124
  indexName: string;
125
125
  };
@@ -129,11 +129,11 @@ export type ClearObjectsProps = {
129
129
  */
130
130
  export type ClearRulesProps = {
131
131
  /**
132
- * The index in which to perform the request.
132
+ * Index on which to perform the request.
133
133
  */
134
134
  indexName: string;
135
135
  /**
136
- * When true, changes are also propagated to replicas of the given indexName.
136
+ * Indicates whether changed index settings are forwarded to the replica indices.
137
137
  */
138
138
  forwardToReplicas?: boolean;
139
139
  };
@@ -143,11 +143,11 @@ export type ClearRulesProps = {
143
143
  */
144
144
  export type DelProps = {
145
145
  /**
146
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
146
+ * Path of the endpoint, anything after \"/1\" must be specified.
147
147
  */
148
148
  path: string;
149
149
  /**
150
- * Query parameters to be applied to the current query.
150
+ * Query parameters to apply to the current query.
151
151
  */
152
152
  parameters?: Record<string, any>;
153
153
  };
@@ -157,7 +157,7 @@ export type DelProps = {
157
157
  */
158
158
  export type DeleteApiKeyProps = {
159
159
  /**
160
- * API Key string.
160
+ * API key.
161
161
  */
162
162
  key: string;
163
163
  };
@@ -167,7 +167,7 @@ export type DeleteApiKeyProps = {
167
167
  */
168
168
  export type DeleteByProps = {
169
169
  /**
170
- * The index in which to perform the request.
170
+ * Index on which to perform the request.
171
171
  */
172
172
  indexName: string;
173
173
  deleteByParams: DeleteByParams;
@@ -178,7 +178,7 @@ export type DeleteByProps = {
178
178
  */
179
179
  export type DeleteIndexProps = {
180
180
  /**
181
- * The index in which to perform the request.
181
+ * Index on which to perform the request.
182
182
  */
183
183
  indexName: string;
184
184
  };
@@ -188,11 +188,11 @@ export type DeleteIndexProps = {
188
188
  */
189
189
  export type DeleteObjectProps = {
190
190
  /**
191
- * The index in which to perform the request.
191
+ * Index on which to perform the request.
192
192
  */
193
193
  indexName: string;
194
194
  /**
195
- * Unique identifier of an object.
195
+ * Unique record (object) identifier.
196
196
  */
197
197
  objectID: string;
198
198
  };
@@ -202,15 +202,15 @@ export type DeleteObjectProps = {
202
202
  */
203
203
  export type DeleteRuleProps = {
204
204
  /**
205
- * The index in which to perform the request.
205
+ * Index on which to perform the request.
206
206
  */
207
207
  indexName: string;
208
208
  /**
209
- * Unique identifier of an object.
209
+ * Unique identifier of a rule object.
210
210
  */
211
211
  objectID: string;
212
212
  /**
213
- * When true, changes are also propagated to replicas of the given indexName.
213
+ * Indicates whether changed index settings are forwarded to the replica indices.
214
214
  */
215
215
  forwardToReplicas?: boolean;
216
216
  };
@@ -220,7 +220,7 @@ export type DeleteRuleProps = {
220
220
  */
221
221
  export type DeleteSourceProps = {
222
222
  /**
223
- * The IP range of the source.
223
+ * IP address range of the source.
224
224
  */
225
225
  source: string;
226
226
  };
@@ -230,15 +230,15 @@ export type DeleteSourceProps = {
230
230
  */
231
231
  export type DeleteSynonymProps = {
232
232
  /**
233
- * The index in which to perform the request.
233
+ * Index on which to perform the request.
234
234
  */
235
235
  indexName: string;
236
236
  /**
237
- * Unique identifier of an object.
237
+ * Unique identifier of a synonym object.
238
238
  */
239
239
  objectID: string;
240
240
  /**
241
- * When true, changes are also propagated to replicas of the given indexName.
241
+ * Indicates whether changed index settings are forwarded to the replica indices.
242
242
  */
243
243
  forwardToReplicas?: boolean;
244
244
  };
@@ -248,11 +248,11 @@ export type DeleteSynonymProps = {
248
248
  */
249
249
  export type GetProps = {
250
250
  /**
251
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
251
+ * Path of the endpoint, anything after \"/1\" must be specified.
252
252
  */
253
253
  path: string;
254
254
  /**
255
- * Query parameters to be applied to the current query.
255
+ * Query parameters to apply to the current query.
256
256
  */
257
257
  parameters?: Record<string, any>;
258
258
  };
@@ -262,7 +262,7 @@ export type GetProps = {
262
262
  */
263
263
  export type GetApiKeyProps = {
264
264
  /**
265
- * API Key string.
265
+ * API key.
266
266
  */
267
267
  key: string;
268
268
  };
@@ -272,15 +272,15 @@ export type GetApiKeyProps = {
272
272
  */
273
273
  export type GetLogsProps = {
274
274
  /**
275
- * First entry to retrieve (zero-based). Log entries are sorted by decreasing date, therefore 0 designates the most recent log entry.
275
+ * First log entry to retrieve. Sorted by decreasing date with 0 being the most recent.
276
276
  */
277
277
  offset?: number;
278
278
  /**
279
- * Maximum number of entries to retrieve. The maximum allowed value is 1000.
279
+ * Maximum number of entries to retrieve.
280
280
  */
281
281
  length?: number;
282
282
  /**
283
- * Index for which log entries should be retrieved. When omitted, log entries are retrieved across all indices.
283
+ * Index for which log entries should be retrieved. When omitted, log entries are retrieved for all indices.
284
284
  */
285
285
  indexName?: string;
286
286
  /**
@@ -294,15 +294,15 @@ export type GetLogsProps = {
294
294
  */
295
295
  export type GetObjectProps = {
296
296
  /**
297
- * The index in which to perform the request.
297
+ * Index on which to perform the request.
298
298
  */
299
299
  indexName: string;
300
300
  /**
301
- * Unique identifier of an object.
301
+ * Unique record (object) identifier.
302
302
  */
303
303
  objectID: string;
304
304
  /**
305
- * List of attributes to retrieve. If not specified, all retrievable attributes are returned.
305
+ * Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved, even when not specified. [`unretrievableAttributes`](https://www.algolia.com/doc/api-reference/api-parameters/unretrievableAttributes/) won\'t be retrieved unless the request is authenticated with the admin API key.
306
306
  */
307
307
  attributesToRetrieve?: string[];
308
308
  };
@@ -312,11 +312,11 @@ export type GetObjectProps = {
312
312
  */
313
313
  export type GetRuleProps = {
314
314
  /**
315
- * The index in which to perform the request.
315
+ * Index on which to perform the request.
316
316
  */
317
317
  indexName: string;
318
318
  /**
319
- * Unique identifier of an object.
319
+ * Unique identifier of a rule object.
320
320
  */
321
321
  objectID: string;
322
322
  };
@@ -326,7 +326,7 @@ export type GetRuleProps = {
326
326
  */
327
327
  export type GetSettingsProps = {
328
328
  /**
329
- * The index in which to perform the request.
329
+ * Index on which to perform the request.
330
330
  */
331
331
  indexName: string;
332
332
  };
@@ -336,11 +336,11 @@ export type GetSettingsProps = {
336
336
  */
337
337
  export type GetSynonymProps = {
338
338
  /**
339
- * The index in which to perform the request.
339
+ * Index on which to perform the request.
340
340
  */
341
341
  indexName: string;
342
342
  /**
343
- * Unique identifier of an object.
343
+ * Unique identifier of a synonym object.
344
344
  */
345
345
  objectID: string;
346
346
  };
@@ -350,11 +350,11 @@ export type GetSynonymProps = {
350
350
  */
351
351
  export type GetTaskProps = {
352
352
  /**
353
- * The index in which to perform the request.
353
+ * Index on which to perform the request.
354
354
  */
355
355
  indexName: string;
356
356
  /**
357
- * Unique identifier of an task. Numeric value (up to 64bits).
357
+ * Unique task identifier.
358
358
  */
359
359
  taskID: number;
360
360
  };
@@ -374,7 +374,7 @@ export type GetUserIdProps = {
374
374
  */
375
375
  export type HasPendingMappingsProps = {
376
376
  /**
377
- * If the clusters pending mapping state should be on the response.
377
+ * Indicates whether to include the cluster\'s pending mapping state in the response.
378
378
  */
379
379
  getClusters?: boolean;
380
380
  };
@@ -384,9 +384,13 @@ export type HasPendingMappingsProps = {
384
384
  */
385
385
  export type ListIndicesProps = {
386
386
  /**
387
- * Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
387
+ * Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
388
388
  */
389
389
  page?: number;
390
+ /**
391
+ * Maximum number of hits per page.
392
+ */
393
+ hitsPerPage?: number;
390
394
  };
391
395
 
392
396
  /**
@@ -394,11 +398,11 @@ export type ListIndicesProps = {
394
398
  */
395
399
  export type ListUserIdsProps = {
396
400
  /**
397
- * Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
401
+ * Returns the requested page number. The page size is determined by the `hitsPerPage` parameter. You can see the number of available pages in the `nbPages` response attribute. When `page` is null, the API response is not paginated.
398
402
  */
399
403
  page?: number;
400
404
  /**
401
- * Maximum number of objects to retrieve.
405
+ * Maximum number of hits per page.
402
406
  */
403
407
  hitsPerPage?: number;
404
408
  };
@@ -408,7 +412,7 @@ export type ListUserIdsProps = {
408
412
  */
409
413
  export type OperationIndexProps = {
410
414
  /**
411
- * The index in which to perform the request.
415
+ * Index on which to perform the request.
412
416
  */
413
417
  indexName: string;
414
418
  operationIndexParams: OperationIndexParams;
@@ -419,19 +423,19 @@ export type OperationIndexProps = {
419
423
  */
420
424
  export type PartialUpdateObjectProps = {
421
425
  /**
422
- * The index in which to perform the request.
426
+ * Index on which to perform the request.
423
427
  */
424
428
  indexName: string;
425
429
  /**
426
- * Unique identifier of an object.
430
+ * Unique record (object) identifier.
427
431
  */
428
432
  objectID: string;
429
433
  /**
430
- * Map of attribute(s) to update.
434
+ * Object with attributes to update.
431
435
  */
432
436
  attributesToUpdate: Record<string, AttributeToUpdate>;
433
437
  /**
434
- * Creates the record if it does not exist yet.
438
+ * Indicates whether to create a new record if it doesn\'t exist yet.
435
439
  */
436
440
  createIfNotExists?: boolean;
437
441
  };
@@ -441,15 +445,15 @@ export type PartialUpdateObjectProps = {
441
445
  */
442
446
  export type PostProps = {
443
447
  /**
444
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
448
+ * Path of the endpoint, anything after \"/1\" must be specified.
445
449
  */
446
450
  path: string;
447
451
  /**
448
- * Query parameters to be applied to the current query.
452
+ * Query parameters to apply to the current query.
449
453
  */
450
454
  parameters?: Record<string, any>;
451
455
  /**
452
- * The parameters to send with the custom request.
456
+ * Parameters to send with the custom request.
453
457
  */
454
458
  body?: Record<string, any>;
455
459
  };
@@ -459,15 +463,15 @@ export type PostProps = {
459
463
  */
460
464
  export type PutProps = {
461
465
  /**
462
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
466
+ * Path of the endpoint, anything after \"/1\" must be specified.
463
467
  */
464
468
  path: string;
465
469
  /**
466
- * Query parameters to be applied to the current query.
470
+ * Query parameters to apply to the current query.
467
471
  */
468
472
  parameters?: Record<string, any>;
469
473
  /**
470
- * The parameters to send with the custom request.
474
+ * Parameters to send with the custom request.
471
475
  */
472
476
  body?: Record<string, any>;
473
477
  };
@@ -487,7 +491,7 @@ export type RemoveUserIdProps = {
487
491
  */
488
492
  export type ReplaceSourcesProps = {
489
493
  /**
490
- * The sources to allow.
494
+ * Allowed sources.
491
495
  */
492
496
  source: Source[];
493
497
  };
@@ -497,7 +501,7 @@ export type ReplaceSourcesProps = {
497
501
  */
498
502
  export type RestoreApiKeyProps = {
499
503
  /**
500
- * API Key string.
504
+ * API key.
501
505
  */
502
506
  key: string;
503
507
  };
@@ -507,7 +511,7 @@ export type RestoreApiKeyProps = {
507
511
  */
508
512
  export type SaveObjectProps = {
509
513
  /**
510
- * The index in which to perform the request.
514
+ * Index on which to perform the request.
511
515
  */
512
516
  indexName: string;
513
517
  /**
@@ -521,16 +525,16 @@ export type SaveObjectProps = {
521
525
  */
522
526
  export type SaveRuleProps = {
523
527
  /**
524
- * The index in which to perform the request.
528
+ * Index on which to perform the request.
525
529
  */
526
530
  indexName: string;
527
531
  /**
528
- * Unique identifier of an object.
532
+ * Unique identifier of a rule object.
529
533
  */
530
534
  objectID: string;
531
535
  rule: Rule;
532
536
  /**
533
- * When true, changes are also propagated to replicas of the given indexName.
537
+ * Indicates whether changed index settings are forwarded to the replica indices.
534
538
  */
535
539
  forwardToReplicas?: boolean;
536
540
  };
@@ -540,16 +544,16 @@ export type SaveRuleProps = {
540
544
  */
541
545
  export type SaveRulesProps = {
542
546
  /**
543
- * The index in which to perform the request.
547
+ * Index on which to perform the request.
544
548
  */
545
549
  indexName: string;
546
550
  rules: Rule[];
547
551
  /**
548
- * When true, changes are also propagated to replicas of the given indexName.
552
+ * Indicates whether changed index settings are forwarded to the replica indices.
549
553
  */
550
554
  forwardToReplicas?: boolean;
551
555
  /**
552
- * When true, existing Rules are cleared before adding this batch. When false, existing Rules are kept.
556
+ * Indicates whether existing rules should be deleted before adding this batch.
553
557
  */
554
558
  clearExistingRules?: boolean;
555
559
  };
@@ -559,16 +563,16 @@ export type SaveRulesProps = {
559
563
  */
560
564
  export type SaveSynonymProps = {
561
565
  /**
562
- * The index in which to perform the request.
566
+ * Index on which to perform the request.
563
567
  */
564
568
  indexName: string;
565
569
  /**
566
- * Unique identifier of an object.
570
+ * Unique identifier of a synonym object.
567
571
  */
568
572
  objectID: string;
569
573
  synonymHit: SynonymHit;
570
574
  /**
571
- * When true, changes are also propagated to replicas of the given indexName.
575
+ * Indicates whether changed index settings are forwarded to the replica indices.
572
576
  */
573
577
  forwardToReplicas?: boolean;
574
578
  };
@@ -578,16 +582,16 @@ export type SaveSynonymProps = {
578
582
  */
579
583
  export type SaveSynonymsProps = {
580
584
  /**
581
- * The index in which to perform the request.
585
+ * Index on which to perform the request.
582
586
  */
583
587
  indexName: string;
584
588
  synonymHit: SynonymHit[];
585
589
  /**
586
- * When true, changes are also propagated to replicas of the given indexName.
590
+ * Indicates whether changed index settings are forwarded to the replica indices.
587
591
  */
588
592
  forwardToReplicas?: boolean;
589
593
  /**
590
- * Replace all synonyms of the index with the ones sent with this request.
594
+ * Indicates whether to replace all synonyms in the index with the ones sent with this request.
591
595
  */
592
596
  replaceExistingSynonyms?: boolean;
593
597
  };
@@ -629,7 +633,7 @@ export type LegacySearchMethodProps = LegacySearchQuery[];
629
633
  */
630
634
  export type SearchDictionaryEntriesProps = {
631
635
  /**
632
- * The dictionary to search in.
636
+ * Dictionary to search in.
633
637
  */
634
638
  dictionaryName: DictionaryType;
635
639
  searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
@@ -640,11 +644,11 @@ export type SearchDictionaryEntriesProps = {
640
644
  */
641
645
  export type SearchForFacetValuesProps = {
642
646
  /**
643
- * The index in which to perform the request.
647
+ * Index on which to perform the request.
644
648
  */
645
649
  indexName: string;
646
650
  /**
647
- * The facet name.
651
+ * Facet name.
648
652
  */
649
653
  facetName: string;
650
654
  searchForFacetValuesRequest?: SearchForFacetValuesRequest;
@@ -655,7 +659,7 @@ export type SearchForFacetValuesProps = {
655
659
  */
656
660
  export type SearchRulesProps = {
657
661
  /**
658
- * The index in which to perform the request.
662
+ * Index on which to perform the request.
659
663
  */
660
664
  indexName: string;
661
665
  searchRulesParams?: SearchRulesParams;
@@ -666,7 +670,7 @@ export type SearchRulesProps = {
666
670
  */
667
671
  export type SearchSingleIndexProps = {
668
672
  /**
669
- * The index in which to perform the request.
673
+ * Index on which to perform the request.
670
674
  */
671
675
  indexName: string;
672
676
  searchParams?: SearchParams;
@@ -677,23 +681,23 @@ export type SearchSingleIndexProps = {
677
681
  */
678
682
  export type SearchSynonymsProps = {
679
683
  /**
680
- * The index in which to perform the request.
684
+ * Index on which to perform the request.
681
685
  */
682
686
  indexName: string;
683
687
  /**
684
- * Only search for specific types of synonyms.
688
+ * Search for specific [types of synonyms](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/#the-different-types-of-synonyms).
685
689
  */
686
690
  type?: SynonymType;
687
691
  /**
688
- * Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination).
692
+ * Returns the requested page number (the first page is 0). Page size is set by `hitsPerPage`. When null, there\'s no pagination.
689
693
  */
690
694
  page?: number;
691
695
  /**
692
- * Maximum number of objects to retrieve.
696
+ * Maximum number of hits per page.
693
697
  */
694
698
  hitsPerPage?: number;
695
699
  /**
696
- * The body of the the `searchSynonyms` method.
700
+ * Body of the `searchSynonyms` operation.
697
701
  */
698
702
  searchSynonymsParams?: SearchSynonymsParams;
699
703
  };
@@ -703,12 +707,12 @@ export type SearchSynonymsProps = {
703
707
  */
704
708
  export type SetSettingsProps = {
705
709
  /**
706
- * The index in which to perform the request.
710
+ * Index on which to perform the request.
707
711
  */
708
712
  indexName: string;
709
713
  indexSettings: IndexSettings;
710
714
  /**
711
- * When true, changes are also propagated to replicas of the given indexName.
715
+ * Indicates whether changed index settings are forwarded to the replica indices.
712
716
  */
713
717
  forwardToReplicas?: boolean;
714
718
  };
@@ -718,7 +722,7 @@ export type SetSettingsProps = {
718
722
  */
719
723
  export type UpdateApiKeyProps = {
720
724
  /**
721
- * API Key string.
725
+ * API key.
722
726
  */
723
727
  key: string;
724
728
  apiKey: ApiKey;
@@ -5,23 +5,23 @@ import type { ConsequenceParams } from './consequenceParams';
5
5
  import type { Promote } from './promote';
6
6
 
7
7
  /**
8
- * Consequence of the Rule.
8
+ * [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences) of a rule.
9
9
  */
10
10
  export type Consequence = {
11
11
  params?: ConsequenceParams;
12
12
 
13
13
  /**
14
- * Objects to promote as hits.
14
+ * Records to promote.
15
15
  */
16
16
  promote?: Promote[];
17
17
 
18
18
  /**
19
- * Only use in combination with the promote consequence. When true, promoted results will be restricted to match the filters of the current search. When false, the promoted results will show up regardless of the filters.
19
+ * Only use in combination with the `promote` consequence. When `true`, promoted results will be restricted to match the filters of the current search. When `false`, the promoted results will show up regardless of the filters.
20
20
  */
21
21
  filterPromotes?: boolean;
22
22
 
23
23
  /**
24
- * Objects to hide from hits. Each object must contain an objectID field. By default, you can hide up to 50 items per rule.
24
+ * Records to hide. By default, you can hide up to 50 records per rule.
25
25
  */
26
26
  hide?: ConsequenceHide[];
27
27