@algolia/client-search 5.0.0-alpha.106 → 5.0.0-alpha.108

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 (227) hide show
  1. package/dist/builds/browser.d.ts +1 -1
  2. package/dist/builds/node.d.ts +1 -1
  3. package/dist/client-search.cjs +121 -121
  4. package/dist/client-search.esm.browser.js +121 -121
  5. package/dist/client-search.esm.node.js +121 -121
  6. package/dist/client-search.umd.js +2 -2
  7. package/dist/model/acl.d.ts +1 -1
  8. package/dist/model/action.d.ts +1 -1
  9. package/dist/model/addApiKeyResponse.d.ts +1 -1
  10. package/dist/model/anchoring.d.ts +1 -1
  11. package/dist/model/apiKey.d.ts +8 -8
  12. package/dist/model/aroundPrecision.d.ts +1 -1
  13. package/dist/model/aroundPrecisionFromValueInner.d.ts +9 -0
  14. package/dist/model/aroundPrecisionFromValueInner.d.ts.map +1 -1
  15. package/dist/model/aroundRadius.d.ts +1 -1
  16. package/dist/model/aroundRadiusAll.d.ts +3 -0
  17. package/dist/model/aroundRadiusAll.d.ts.map +1 -1
  18. package/dist/model/automaticFacetFilter.d.ts +4 -4
  19. package/dist/model/automaticFacetFilters.d.ts +1 -1
  20. package/dist/model/baseIndexSettings.d.ts +22 -17
  21. package/dist/model/baseIndexSettings.d.ts.map +1 -1
  22. package/dist/model/baseSearchParamsWithoutQuery.d.ts +24 -28
  23. package/dist/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  24. package/dist/model/baseSearchResponse.d.ts +6 -6
  25. package/dist/model/batchDictionaryEntriesParams.d.ts +3 -3
  26. package/dist/model/batchResponse.d.ts +2 -2
  27. package/dist/model/builtInOperation.d.ts +2 -2
  28. package/dist/model/builtInOperationType.d.ts +1 -1
  29. package/dist/model/clientMethodProps.d.ts +63 -63
  30. package/dist/model/condition.d.ts +7 -3
  31. package/dist/model/condition.d.ts.map +1 -1
  32. package/dist/model/consequence.d.ts +5 -5
  33. package/dist/model/consequenceHide.d.ts +2 -2
  34. package/dist/model/consequenceQuery.d.ts +1 -1
  35. package/dist/model/consequenceQueryObject.d.ts +2 -2
  36. package/dist/model/createdAtResponse.d.ts +1 -1
  37. package/dist/model/cursor.d.ts +1 -1
  38. package/dist/model/deleteByParams.d.ts +4 -4
  39. package/dist/model/deletedAtResponse.d.ts +1 -1
  40. package/dist/model/dictionaryEntry.d.ts +6 -8
  41. package/dist/model/dictionaryEntry.d.ts.map +1 -1
  42. package/dist/model/dictionaryEntryState.d.ts +1 -1
  43. package/dist/model/dictionaryLanguage.d.ts +2 -2
  44. package/dist/model/dictionarySettingsParams.d.ts +1 -1
  45. package/dist/model/distinct.d.ts +1 -1
  46. package/dist/model/edit.d.ts +1 -1
  47. package/dist/model/exactOnSingleWordQuery.d.ts +1 -1
  48. package/dist/model/facetFilters.d.ts +1 -1
  49. package/dist/model/facetHits.d.ts +2 -2
  50. package/dist/model/facetOrdering.d.ts +2 -2
  51. package/dist/model/facets.d.ts +2 -2
  52. package/dist/model/getObjectsRequest.d.ts +3 -3
  53. package/dist/model/getObjectsResponse.d.ts +1 -1
  54. package/dist/model/hasPendingMappingsResponse.d.ts +1 -1
  55. package/dist/model/highlightResultOption.d.ts +3 -3
  56. package/dist/model/hit.d.ts +4 -4
  57. package/dist/model/ignorePlurals.d.ts +3 -2
  58. package/dist/model/ignorePlurals.d.ts.map +1 -1
  59. package/dist/model/index.d.ts +2 -0
  60. package/dist/model/index.d.ts.map +1 -1
  61. package/dist/model/indexSettings.d.ts +1 -1
  62. package/dist/model/indexSettingsAsSearchParams.d.ts +32 -35
  63. package/dist/model/indexSettingsAsSearchParams.d.ts.map +1 -1
  64. package/dist/model/log.d.ts +11 -11
  65. package/dist/model/logQuery.d.ts +1 -1
  66. package/dist/model/matchLevel.d.ts +1 -1
  67. package/dist/model/mode.d.ts +1 -1
  68. package/dist/model/multipleBatchResponse.d.ts +2 -2
  69. package/dist/model/numericFilters.d.ts +1 -1
  70. package/dist/model/operationIndexParams.d.ts +2 -2
  71. package/dist/model/operationType.d.ts +1 -1
  72. package/dist/model/optionalFilters.d.ts +1 -1
  73. package/dist/model/params.d.ts +1 -1
  74. package/dist/model/promoteObjectID.d.ts +2 -2
  75. package/dist/model/promoteObjectIDs.d.ts +2 -2
  76. package/dist/model/queryType.d.ts +1 -1
  77. package/dist/model/rankingInfo.d.ts +10 -7
  78. package/dist/model/rankingInfo.d.ts.map +1 -1
  79. package/dist/model/reRankingApplyFilter.d.ts +1 -1
  80. package/dist/model/removeStopWords.d.ts +3 -2
  81. package/dist/model/removeStopWords.d.ts.map +1 -1
  82. package/dist/model/removeWordsIfNoResults.d.ts +1 -1
  83. package/dist/model/renderingContent.d.ts +1 -1
  84. package/dist/model/rule.d.ts +5 -5
  85. package/dist/model/saveObjectResponse.d.ts +3 -3
  86. package/dist/model/saveSynonymResponse.d.ts +1 -1
  87. package/dist/model/searchDictionaryEntriesParams.d.ts +5 -7
  88. package/dist/model/searchDictionaryEntriesParams.d.ts.map +1 -1
  89. package/dist/model/searchDictionaryEntriesResponse.d.ts +20 -0
  90. package/dist/model/searchDictionaryEntriesResponse.d.ts.map +1 -0
  91. package/dist/model/searchForFacetValuesRequest.d.ts +1 -1
  92. package/dist/model/searchForFacetValuesResponse.d.ts +3 -0
  93. package/dist/model/searchForFacetValuesResponse.d.ts.map +1 -1
  94. package/dist/model/searchForFacetsOptions.d.ts +2 -2
  95. package/dist/model/searchForHitsOptions.d.ts +1 -1
  96. package/dist/model/searchHits.d.ts +4 -1
  97. package/dist/model/searchHits.d.ts.map +1 -1
  98. package/dist/model/searchParamsQuery.d.ts +1 -1
  99. package/dist/model/searchRulesParams.d.ts +4 -8
  100. package/dist/model/searchRulesParams.d.ts.map +1 -1
  101. package/dist/model/searchRulesResponse.d.ts +2 -2
  102. package/dist/model/searchStrategy.d.ts +1 -1
  103. package/dist/model/searchSynonymsParams.d.ts +2 -2
  104. package/dist/model/searchSynonymsResponse.d.ts +2 -2
  105. package/dist/model/searchUserIdsParams.d.ts +1 -1
  106. package/dist/model/searchUserIdsResponse.d.ts +2 -2
  107. package/dist/model/securedAPIKeyRestrictions.d.ts +5 -5
  108. package/dist/model/semanticSearch.d.ts +2 -2
  109. package/dist/model/snippetResultOption.d.ts +2 -2
  110. package/dist/model/sortRemainingBy.d.ts +1 -1
  111. package/dist/model/supportedLanguage.d.ts +5 -0
  112. package/dist/model/supportedLanguage.d.ts.map +1 -0
  113. package/dist/model/tagFilters.d.ts +1 -1
  114. package/dist/model/taskStatus.d.ts +1 -1
  115. package/dist/model/timeRange.d.ts +2 -2
  116. package/dist/model/typoTolerance.d.ts +1 -1
  117. package/dist/model/typoToleranceEnum.d.ts +3 -0
  118. package/dist/model/typoToleranceEnum.d.ts.map +1 -1
  119. package/dist/model/updatedAtResponse.d.ts +1 -1
  120. package/dist/model/updatedAtWithObjectIdResponse.d.ts +2 -2
  121. package/dist/model/updatedRuleResponse.d.ts +2 -2
  122. package/dist/model/userHit.d.ts +1 -1
  123. package/dist/model/userId.d.ts +1 -1
  124. package/dist/model/value.d.ts +1 -1
  125. package/dist/src/searchClient.d.ts +124 -123
  126. package/dist/src/searchClient.d.ts.map +1 -1
  127. package/model/acl.ts +1 -1
  128. package/model/action.ts +1 -1
  129. package/model/addApiKeyResponse.ts +1 -1
  130. package/model/anchoring.ts +1 -1
  131. package/model/apiKey.ts +8 -8
  132. package/model/aroundPrecision.ts +1 -1
  133. package/model/aroundPrecisionFromValueInner.ts +9 -0
  134. package/model/aroundRadius.ts +1 -1
  135. package/model/aroundRadiusAll.ts +3 -0
  136. package/model/automaticFacetFilter.ts +4 -4
  137. package/model/automaticFacetFilters.ts +1 -1
  138. package/model/baseIndexSettings.ts +24 -17
  139. package/model/baseSearchParamsWithoutQuery.ts +24 -29
  140. package/model/baseSearchResponse.ts +6 -6
  141. package/model/batchDictionaryEntriesParams.ts +3 -3
  142. package/model/batchResponse.ts +2 -2
  143. package/model/builtInOperation.ts +2 -2
  144. package/model/builtInOperationType.ts +1 -1
  145. package/model/clientMethodProps.ts +63 -63
  146. package/model/condition.ts +8 -3
  147. package/model/consequence.ts +5 -5
  148. package/model/consequenceHide.ts +2 -2
  149. package/model/consequenceQuery.ts +1 -1
  150. package/model/consequenceQueryObject.ts +2 -2
  151. package/model/createdAtResponse.ts +1 -1
  152. package/model/cursor.ts +1 -1
  153. package/model/deleteByParams.ts +4 -4
  154. package/model/deletedAtResponse.ts +1 -1
  155. package/model/dictionaryEntry.ts +6 -8
  156. package/model/dictionaryEntryState.ts +1 -1
  157. package/model/dictionaryLanguage.ts +2 -2
  158. package/model/dictionarySettingsParams.ts +1 -1
  159. package/model/distinct.ts +1 -1
  160. package/model/edit.ts +1 -1
  161. package/model/exactOnSingleWordQuery.ts +1 -1
  162. package/model/facetFilters.ts +1 -1
  163. package/model/facetHits.ts +2 -2
  164. package/model/facetOrdering.ts +2 -2
  165. package/model/facets.ts +2 -2
  166. package/model/getObjectsRequest.ts +3 -3
  167. package/model/getObjectsResponse.ts +1 -1
  168. package/model/hasPendingMappingsResponse.ts +1 -1
  169. package/model/highlightResultOption.ts +3 -3
  170. package/model/hit.ts +4 -4
  171. package/model/ignorePlurals.ts +4 -2
  172. package/model/index.ts +2 -0
  173. package/model/indexSettings.ts +1 -1
  174. package/model/indexSettingsAsSearchParams.ts +32 -36
  175. package/model/log.ts +11 -11
  176. package/model/logQuery.ts +1 -1
  177. package/model/matchLevel.ts +1 -1
  178. package/model/mode.ts +1 -1
  179. package/model/multipleBatchResponse.ts +2 -2
  180. package/model/numericFilters.ts +1 -1
  181. package/model/operationIndexParams.ts +2 -2
  182. package/model/operationType.ts +1 -1
  183. package/model/optionalFilters.ts +1 -1
  184. package/model/params.ts +1 -1
  185. package/model/promoteObjectID.ts +2 -2
  186. package/model/promoteObjectIDs.ts +2 -2
  187. package/model/queryType.ts +1 -1
  188. package/model/rankingInfo.ts +10 -7
  189. package/model/reRankingApplyFilter.ts +1 -1
  190. package/model/removeStopWords.ts +4 -2
  191. package/model/removeWordsIfNoResults.ts +1 -1
  192. package/model/renderingContent.ts +1 -1
  193. package/model/rule.ts +5 -5
  194. package/model/saveObjectResponse.ts +3 -3
  195. package/model/saveSynonymResponse.ts +1 -1
  196. package/model/searchDictionaryEntriesParams.ts +6 -7
  197. package/model/searchDictionaryEntriesResponse.ts +25 -0
  198. package/model/searchForFacetValuesRequest.ts +1 -1
  199. package/model/searchForFacetValuesResponse.ts +3 -0
  200. package/model/searchForFacetsOptions.ts +2 -2
  201. package/model/searchForHitsOptions.ts +1 -1
  202. package/model/searchHits.ts +4 -1
  203. package/model/searchParamsQuery.ts +1 -1
  204. package/model/searchRulesParams.ts +4 -9
  205. package/model/searchRulesResponse.ts +2 -2
  206. package/model/searchStrategy.ts +1 -1
  207. package/model/searchSynonymsParams.ts +2 -2
  208. package/model/searchSynonymsResponse.ts +2 -2
  209. package/model/searchUserIdsParams.ts +1 -1
  210. package/model/searchUserIdsResponse.ts +2 -2
  211. package/model/securedAPIKeyRestrictions.ts +5 -5
  212. package/model/semanticSearch.ts +2 -2
  213. package/model/snippetResultOption.ts +2 -2
  214. package/model/sortRemainingBy.ts +1 -1
  215. package/model/supportedLanguage.ts +74 -0
  216. package/model/tagFilters.ts +1 -1
  217. package/model/taskStatus.ts +1 -1
  218. package/model/timeRange.ts +2 -2
  219. package/model/typoTolerance.ts +1 -1
  220. package/model/typoToleranceEnum.ts +3 -0
  221. package/model/updatedAtResponse.ts +1 -1
  222. package/model/updatedAtWithObjectIdResponse.ts +2 -2
  223. package/model/updatedRuleResponse.ts +2 -2
  224. package/model/userHit.ts +1 -1
  225. package/model/userId.ts +1 -1
  226. package/model/value.ts +1 -1
  227. package/package.json +7 -7
@@ -3,13 +3,13 @@
3
3
  import type { BuiltInOperationType } from './builtInOperationType';
4
4
 
5
5
  /**
6
- * To update an attribute without pushing the entire record, you can use these built-in operations.
6
+ * Update to perform on the attribute.
7
7
  */
8
8
  export type BuiltInOperation = {
9
9
  _operation: BuiltInOperationType;
10
10
 
11
11
  /**
12
- * Value that corresponds to the operation, for example an `Increment` or `Decrement` step, `Add` or `Remove` value.
12
+ * Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `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
- * Operation to apply to the attribute.
4
+ * How to change the attribute.
5
5
  */
6
6
  export type BuiltInOperationType =
7
7
  | 'Add'
@@ -36,15 +36,15 @@ import type { UpdatedAtResponse } from './updatedAtResponse';
36
36
  */
37
37
  export type AddOrUpdateObjectProps = {
38
38
  /**
39
- * Index on which to perform the request.
39
+ * Name of the index on which to perform the operation.
40
40
  */
41
41
  indexName: string;
42
42
  /**
43
- * Unique record (object) identifier.
43
+ * Unique record identifier.
44
44
  */
45
45
  objectID: string;
46
46
  /**
47
- * Algolia record.
47
+ * The record, a schemaless object with attributes that are useful in the context of search and discovery.
48
48
  */
49
49
  body: Record<string, any>;
50
50
  };
@@ -54,7 +54,7 @@ export type AddOrUpdateObjectProps = {
54
54
  */
55
55
  export type AssignUserIdProps = {
56
56
  /**
57
- * UserID to assign.
57
+ * User ID to assign.
58
58
  */
59
59
  xAlgoliaUserID: string;
60
60
  assignUserIdParams: AssignUserIdParams;
@@ -65,7 +65,7 @@ export type AssignUserIdProps = {
65
65
  */
66
66
  export type BatchProps = {
67
67
  /**
68
- * Index on which to perform the request.
68
+ * Name of the index on which to perform the operation.
69
69
  */
70
70
  indexName: string;
71
71
  batchWriteParams: BatchWriteParams;
@@ -76,7 +76,7 @@ export type BatchProps = {
76
76
  */
77
77
  export type BatchAssignUserIdsProps = {
78
78
  /**
79
- * UserID to assign.
79
+ * User ID to assign.
80
80
  */
81
81
  xAlgoliaUserID: string;
82
82
  batchAssignUserIdsParams: BatchAssignUserIdsParams;
@@ -87,7 +87,7 @@ export type BatchAssignUserIdsProps = {
87
87
  */
88
88
  export type BatchDictionaryEntriesProps = {
89
89
  /**
90
- * Dictionary to search in.
90
+ * Dictionary type in which to search.
91
91
  */
92
92
  dictionaryName: DictionaryType;
93
93
  batchDictionaryEntriesParams: BatchDictionaryEntriesParams;
@@ -98,7 +98,7 @@ export type BatchDictionaryEntriesProps = {
98
98
  */
99
99
  export type BrowseProps = {
100
100
  /**
101
- * Index on which to perform the request.
101
+ * Name of the index on which to perform the operation.
102
102
  */
103
103
  indexName: string;
104
104
  browseParams?: BrowseParams;
@@ -109,7 +109,7 @@ export type BrowseProps = {
109
109
  */
110
110
  export type ClearObjectsProps = {
111
111
  /**
112
- * Index on which to perform the request.
112
+ * Name of the index on which to perform the operation.
113
113
  */
114
114
  indexName: string;
115
115
  };
@@ -119,11 +119,11 @@ export type ClearObjectsProps = {
119
119
  */
120
120
  export type ClearRulesProps = {
121
121
  /**
122
- * Index on which to perform the request.
122
+ * Name of the index on which to perform the operation.
123
123
  */
124
124
  indexName: string;
125
125
  /**
126
- * Indicates whether changed index settings are forwarded to the replica indices.
126
+ * Whether changes are applied to replica indices.
127
127
  */
128
128
  forwardToReplicas?: boolean;
129
129
  };
@@ -133,11 +133,11 @@ export type ClearRulesProps = {
133
133
  */
134
134
  export type ClearSynonymsProps = {
135
135
  /**
136
- * Index on which to perform the request.
136
+ * Name of the index on which to perform the operation.
137
137
  */
138
138
  indexName: string;
139
139
  /**
140
- * Indicates whether changed index settings are forwarded to the replica indices.
140
+ * Whether changes are applied to replica indices.
141
141
  */
142
142
  forwardToReplicas?: boolean;
143
143
  };
@@ -221,7 +221,7 @@ export type DeleteApiKeyProps = {
221
221
  */
222
222
  export type DeleteByProps = {
223
223
  /**
224
- * Index on which to perform the request.
224
+ * Name of the index on which to perform the operation.
225
225
  */
226
226
  indexName: string;
227
227
  deleteByParams: DeleteByParams;
@@ -232,7 +232,7 @@ export type DeleteByProps = {
232
232
  */
233
233
  export type DeleteIndexProps = {
234
234
  /**
235
- * Index on which to perform the request.
235
+ * Name of the index on which to perform the operation.
236
236
  */
237
237
  indexName: string;
238
238
  };
@@ -242,11 +242,11 @@ export type DeleteIndexProps = {
242
242
  */
243
243
  export type DeleteObjectProps = {
244
244
  /**
245
- * Index on which to perform the request.
245
+ * Name of the index on which to perform the operation.
246
246
  */
247
247
  indexName: string;
248
248
  /**
249
- * Unique record (object) identifier.
249
+ * Unique record identifier.
250
250
  */
251
251
  objectID: string;
252
252
  };
@@ -256,7 +256,7 @@ export type DeleteObjectProps = {
256
256
  */
257
257
  export type DeleteRuleProps = {
258
258
  /**
259
- * Index on which to perform the request.
259
+ * Name of the index on which to perform the operation.
260
260
  */
261
261
  indexName: string;
262
262
  /**
@@ -264,7 +264,7 @@ export type DeleteRuleProps = {
264
264
  */
265
265
  objectID: string;
266
266
  /**
267
- * Indicates whether changed index settings are forwarded to the replica indices.
267
+ * Whether changes are applied to replica indices.
268
268
  */
269
269
  forwardToReplicas?: boolean;
270
270
  };
@@ -284,7 +284,7 @@ export type DeleteSourceProps = {
284
284
  */
285
285
  export type DeleteSynonymProps = {
286
286
  /**
287
- * Index on which to perform the request.
287
+ * Name of the index on which to perform the operation.
288
288
  */
289
289
  indexName: string;
290
290
  /**
@@ -292,7 +292,7 @@ export type DeleteSynonymProps = {
292
292
  */
293
293
  objectID: string;
294
294
  /**
295
- * Indicates whether changed index settings are forwarded to the replica indices.
295
+ * Whether changes are applied to replica indices.
296
296
  */
297
297
  forwardToReplicas?: boolean;
298
298
  };
@@ -312,7 +312,7 @@ export type GetApiKeyProps = {
312
312
  */
313
313
  export type GetLogsProps = {
314
314
  /**
315
- * First log entry to retrieve. Sorted by decreasing date with 0 being the most recent.
315
+ * First log entry to retrieve. The most recent entries are listed first.
316
316
  */
317
317
  offset?: number;
318
318
  /**
@@ -320,11 +320,11 @@ export type GetLogsProps = {
320
320
  */
321
321
  length?: number;
322
322
  /**
323
- * Index for which log entries should be retrieved. When omitted, log entries are retrieved for all indices.
323
+ * Index for which to retrieve log entries. By default, log entries are retrieved for all indices.
324
324
  */
325
325
  indexName?: string;
326
326
  /**
327
- * Type of log entries to retrieve. When omitted, all log entries are retrieved.
327
+ * Type of log entries to retrieve. By default, all log entries are retrieved.
328
328
  */
329
329
  type?: LogType;
330
330
  };
@@ -334,15 +334,15 @@ export type GetLogsProps = {
334
334
  */
335
335
  export type GetObjectProps = {
336
336
  /**
337
- * Index on which to perform the request.
337
+ * Name of the index on which to perform the operation.
338
338
  */
339
339
  indexName: string;
340
340
  /**
341
- * Unique record (object) identifier.
341
+ * Unique record identifier.
342
342
  */
343
343
  objectID: string;
344
344
  /**
345
- * 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.
345
+ * 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. Attributes included in `unretrievableAttributes` won\'t be retrieved unless the request is authenticated with the admin API key.
346
346
  */
347
347
  attributesToRetrieve?: string[];
348
348
  };
@@ -352,7 +352,7 @@ export type GetObjectProps = {
352
352
  */
353
353
  export type GetRuleProps = {
354
354
  /**
355
- * Index on which to perform the request.
355
+ * Name of the index on which to perform the operation.
356
356
  */
357
357
  indexName: string;
358
358
  /**
@@ -366,7 +366,7 @@ export type GetRuleProps = {
366
366
  */
367
367
  export type GetSettingsProps = {
368
368
  /**
369
- * Index on which to perform the request.
369
+ * Name of the index on which to perform the operation.
370
370
  */
371
371
  indexName: string;
372
372
  };
@@ -376,7 +376,7 @@ export type GetSettingsProps = {
376
376
  */
377
377
  export type GetSynonymProps = {
378
378
  /**
379
- * Index on which to perform the request.
379
+ * Name of the index on which to perform the operation.
380
380
  */
381
381
  indexName: string;
382
382
  /**
@@ -390,7 +390,7 @@ export type GetSynonymProps = {
390
390
  */
391
391
  export type GetTaskProps = {
392
392
  /**
393
- * Index on which to perform the request.
393
+ * Name of the index on which to perform the operation.
394
394
  */
395
395
  indexName: string;
396
396
  /**
@@ -404,7 +404,7 @@ export type GetTaskProps = {
404
404
  */
405
405
  export type GetUserIdProps = {
406
406
  /**
407
- * UserID to assign.
407
+ * User ID to assign.
408
408
  */
409
409
  userID: string;
410
410
  };
@@ -414,7 +414,7 @@ export type GetUserIdProps = {
414
414
  */
415
415
  export type HasPendingMappingsProps = {
416
416
  /**
417
- * Indicates whether to include the cluster\'s pending mapping state in the response.
417
+ * Whether to include the cluster\'s pending mapping state in the response.
418
418
  */
419
419
  getClusters?: boolean;
420
420
  };
@@ -424,11 +424,11 @@ export type HasPendingMappingsProps = {
424
424
  */
425
425
  export type ListIndicesProps = {
426
426
  /**
427
- * 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.
427
+ * Requested page of the API response. If `null`, the API response is not paginated.
428
428
  */
429
429
  page?: number;
430
430
  /**
431
- * Maximum number of hits per page.
431
+ * Number of hits per page.
432
432
  */
433
433
  hitsPerPage?: number;
434
434
  };
@@ -438,11 +438,11 @@ export type ListIndicesProps = {
438
438
  */
439
439
  export type ListUserIdsProps = {
440
440
  /**
441
- * 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.
441
+ * Requested page of the API response. If `null`, the API response is not paginated.
442
442
  */
443
443
  page?: number;
444
444
  /**
445
- * Maximum number of hits per page.
445
+ * Number of hits per page.
446
446
  */
447
447
  hitsPerPage?: number;
448
448
  };
@@ -452,7 +452,7 @@ export type ListUserIdsProps = {
452
452
  */
453
453
  export type OperationIndexProps = {
454
454
  /**
455
- * Index on which to perform the request.
455
+ * Name of the index on which to perform the operation.
456
456
  */
457
457
  indexName: string;
458
458
  operationIndexParams: OperationIndexParams;
@@ -463,19 +463,19 @@ export type OperationIndexProps = {
463
463
  */
464
464
  export type PartialUpdateObjectProps = {
465
465
  /**
466
- * Index on which to perform the request.
466
+ * Name of the index on which to perform the operation.
467
467
  */
468
468
  indexName: string;
469
469
  /**
470
- * Unique record (object) identifier.
470
+ * Unique record identifier.
471
471
  */
472
472
  objectID: string;
473
473
  /**
474
- * Object with attributes to update.
474
+ * Attributes with their values.
475
475
  */
476
476
  attributesToUpdate: Record<string, AttributeToUpdate>;
477
477
  /**
478
- * Indicates whether to create a new record if it doesn\'t exist yet.
478
+ * Whether to create a new record if it doesn\'t exist.
479
479
  */
480
480
  createIfNotExists?: boolean;
481
481
  };
@@ -485,7 +485,7 @@ export type PartialUpdateObjectProps = {
485
485
  */
486
486
  export type RemoveUserIdProps = {
487
487
  /**
488
- * UserID to assign.
488
+ * User ID to assign.
489
489
  */
490
490
  userID: string;
491
491
  };
@@ -515,11 +515,11 @@ export type RestoreApiKeyProps = {
515
515
  */
516
516
  export type SaveObjectProps = {
517
517
  /**
518
- * Index on which to perform the request.
518
+ * Name of the index on which to perform the operation.
519
519
  */
520
520
  indexName: string;
521
521
  /**
522
- * The Algolia record.
522
+ * The record, a schemaless object with attributes that are useful in the context of search and discovery.
523
523
  */
524
524
  body: Record<string, any>;
525
525
  };
@@ -529,7 +529,7 @@ export type SaveObjectProps = {
529
529
  */
530
530
  export type SaveRuleProps = {
531
531
  /**
532
- * Index on which to perform the request.
532
+ * Name of the index on which to perform the operation.
533
533
  */
534
534
  indexName: string;
535
535
  /**
@@ -538,7 +538,7 @@ export type SaveRuleProps = {
538
538
  objectID: string;
539
539
  rule: Rule;
540
540
  /**
541
- * Indicates whether changed index settings are forwarded to the replica indices.
541
+ * Whether changes are applied to replica indices.
542
542
  */
543
543
  forwardToReplicas?: boolean;
544
544
  };
@@ -548,16 +548,16 @@ export type SaveRuleProps = {
548
548
  */
549
549
  export type SaveRulesProps = {
550
550
  /**
551
- * Index on which to perform the request.
551
+ * Name of the index on which to perform the operation.
552
552
  */
553
553
  indexName: string;
554
554
  rules: Rule[];
555
555
  /**
556
- * Indicates whether changed index settings are forwarded to the replica indices.
556
+ * Whether changes are applied to replica indices.
557
557
  */
558
558
  forwardToReplicas?: boolean;
559
559
  /**
560
- * Indicates whether existing rules should be deleted before adding this batch.
560
+ * Whether existing rules should be deleted before adding this batch.
561
561
  */
562
562
  clearExistingRules?: boolean;
563
563
  };
@@ -567,7 +567,7 @@ export type SaveRulesProps = {
567
567
  */
568
568
  export type SaveSynonymProps = {
569
569
  /**
570
- * Index on which to perform the request.
570
+ * Name of the index on which to perform the operation.
571
571
  */
572
572
  indexName: string;
573
573
  /**
@@ -576,7 +576,7 @@ export type SaveSynonymProps = {
576
576
  objectID: string;
577
577
  synonymHit: SynonymHit;
578
578
  /**
579
- * Indicates whether changed index settings are forwarded to the replica indices.
579
+ * Whether changes are applied to replica indices.
580
580
  */
581
581
  forwardToReplicas?: boolean;
582
582
  };
@@ -586,16 +586,16 @@ export type SaveSynonymProps = {
586
586
  */
587
587
  export type SaveSynonymsProps = {
588
588
  /**
589
- * Index on which to perform the request.
589
+ * Name of the index on which to perform the operation.
590
590
  */
591
591
  indexName: string;
592
592
  synonymHit: SynonymHit[];
593
593
  /**
594
- * Indicates whether changed index settings are forwarded to the replica indices.
594
+ * Whether changes are applied to replica indices.
595
595
  */
596
596
  forwardToReplicas?: boolean;
597
597
  /**
598
- * Indicates whether to replace all synonyms in the index with the ones sent with this request.
598
+ * Whether to replace all synonyms in the index with the ones sent with this request.
599
599
  */
600
600
  replaceExistingSynonyms?: boolean;
601
601
  };
@@ -637,7 +637,7 @@ export type LegacySearchMethodProps = LegacySearchQuery[];
637
637
  */
638
638
  export type SearchDictionaryEntriesProps = {
639
639
  /**
640
- * Dictionary to search in.
640
+ * Dictionary type in which to search.
641
641
  */
642
642
  dictionaryName: DictionaryType;
643
643
  searchDictionaryEntriesParams: SearchDictionaryEntriesParams;
@@ -648,11 +648,11 @@ export type SearchDictionaryEntriesProps = {
648
648
  */
649
649
  export type SearchForFacetValuesProps = {
650
650
  /**
651
- * Index on which to perform the request.
651
+ * Name of the index on which to perform the operation.
652
652
  */
653
653
  indexName: string;
654
654
  /**
655
- * Facet name.
655
+ * Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier.
656
656
  */
657
657
  facetName: string;
658
658
  searchForFacetValuesRequest?: SearchForFacetValuesRequest;
@@ -663,7 +663,7 @@ export type SearchForFacetValuesProps = {
663
663
  */
664
664
  export type SearchRulesProps = {
665
665
  /**
666
- * Index on which to perform the request.
666
+ * Name of the index on which to perform the operation.
667
667
  */
668
668
  indexName: string;
669
669
  searchRulesParams?: SearchRulesParams;
@@ -674,7 +674,7 @@ export type SearchRulesProps = {
674
674
  */
675
675
  export type SearchSingleIndexProps = {
676
676
  /**
677
- * Index on which to perform the request.
677
+ * Name of the index on which to perform the operation.
678
678
  */
679
679
  indexName: string;
680
680
  searchParams?: SearchParams;
@@ -685,7 +685,7 @@ export type SearchSingleIndexProps = {
685
685
  */
686
686
  export type SearchSynonymsProps = {
687
687
  /**
688
- * Index on which to perform the request.
688
+ * Name of the index on which to perform the operation.
689
689
  */
690
690
  indexName: string;
691
691
  /**
@@ -699,12 +699,12 @@ export type SearchSynonymsProps = {
699
699
  */
700
700
  export type SetSettingsProps = {
701
701
  /**
702
- * Index on which to perform the request.
702
+ * Name of the index on which to perform the operation.
703
703
  */
704
704
  indexName: string;
705
705
  indexSettings: IndexSettings;
706
706
  /**
707
- * Indicates whether changed index settings are forwarded to the replica indices.
707
+ * Whether changes are applied to replica indices.
708
708
  */
709
709
  forwardToReplicas?: boolean;
710
710
  };
@@ -4,19 +4,24 @@ import type { Anchoring } from './anchoring';
4
4
 
5
5
  export type Condition = {
6
6
  /**
7
- * Query pattern syntax.
7
+ * Query pattern that triggers the rule. You can use either a literal string, or a special pattern `{facet:ATTRIBUTE}`, where `ATTRIBUTE` is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, with `pattern: {facet:genre}`, the rule is triggered when users search for a genre, such as \"comedy\".
8
8
  */
9
9
  pattern?: string;
10
10
 
11
11
  anchoring?: Anchoring;
12
12
 
13
13
  /**
14
- * Whether the pattern matches on plurals, synonyms, and typos.
14
+ * Whether the pattern should match plurals, synonyms, and typos.
15
15
  */
16
16
  alternatives?: boolean;
17
17
 
18
18
  /**
19
- * Rule context format: [A-Za-z0-9_-]+).
19
+ * An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
20
20
  */
21
21
  context?: string;
22
+
23
+ /**
24
+ * Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
25
+ */
26
+ filters?: string;
22
27
  };
@@ -5,28 +5,28 @@ import type { ConsequenceParams } from './consequenceParams';
5
5
  import type { Promote } from './promote';
6
6
 
7
7
  /**
8
- * [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences) of a rule.
8
+ * Effect of the rule. For more information, see [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences).
9
9
  */
10
10
  export type Consequence = {
11
11
  params?: ConsequenceParams;
12
12
 
13
13
  /**
14
- * Records to promote.
14
+ * Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each.
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
+ * Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won\'t be shown.
20
20
  */
21
21
  filterPromotes?: boolean;
22
22
 
23
23
  /**
24
- * Records to hide. By default, you can hide up to 50 records per rule.
24
+ * Records you want to hide from the search results.
25
25
  */
26
26
  hide?: ConsequenceHide[];
27
27
 
28
28
  /**
29
- * Custom JSON object that will be appended to the userData array in the response. This object isn\'t interpreted by the API. It\'s limited to 1kB of minified JSON.
29
+ * A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1&nbsp;kB of minified JSON.
30
30
  */
31
31
  userData?: any | null;
32
32
  };
@@ -1,11 +1,11 @@
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
- * Unique identifier of the record to hide.
4
+ * Object ID of the record to hide.
5
5
  */
6
6
  export type ConsequenceHide = {
7
7
  /**
8
- * Unique object identifier.
8
+ * Unique record identifier.
9
9
  */
10
10
  objectID: string;
11
11
  };
@@ -3,6 +3,6 @@
3
3
  import type { ConsequenceQueryObject } from './consequenceQueryObject';
4
4
 
5
5
  /**
6
- * When providing a string, it replaces the entire query string. When providing an object, it describes incremental edits to be made to the query string (but you can\'t do both).
6
+ * Replace or edit the search query. If `consequenceQuery` is a string, the entire search query is replaced with that string. If `consequenceQuery` is an object, it describes incremental edits made to the query.
7
7
  */
8
8
  export type ConsequenceQuery = ConsequenceQueryObject | string;
@@ -4,12 +4,12 @@ import type { Edit } from './edit';
4
4
 
5
5
  export type ConsequenceQueryObject = {
6
6
  /**
7
- * Words to remove.
7
+ * Words to remove from the search query.
8
8
  */
9
9
  remove?: string[];
10
10
 
11
11
  /**
12
- * Edits to apply.
12
+ * Changes to make to the search query.
13
13
  */
14
14
  edits?: Edit[];
15
15
  };
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export type CreatedAtResponse = {
7
7
  /**
8
- * Timestamp of creation in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
8
+ * Timestamp of creation in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
9
9
  */
10
10
  createdAt: string;
11
11
  };
package/model/cursor.ts CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  export type Cursor = {
4
4
  /**
5
- * Cursor indicating the location to resume browsing from. Must match the value returned by the previous call. Pass this value to the subsequent browse call to get the next page of results. When the end of the index has been reached, `cursor` is absent from the response.
5
+ * Cursor to get the next page of the response. The parameter must match the value returned in the response of a previous request. The last page of the response does not return a `cursor` attribute.
6
6
  */
7
7
  cursor?: string;
8
8
  };
@@ -9,7 +9,7 @@ export type DeleteByParams = {
9
9
  facetFilters?: FacetFilters;
10
10
 
11
11
  /**
12
- * [Filter](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) the query with numeric, facet, or tag filters.
12
+ * Filter the search so that only records with matching values are included in the results. These filters are supported: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
13
13
  */
14
14
  filters?: string;
15
15
 
@@ -18,19 +18,19 @@ export type DeleteByParams = {
18
18
  tagFilters?: TagFilters;
19
19
 
20
20
  /**
21
- * Search for entries [around a central location](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filter-around-a-central-point), enabling a geographical search within a circular area.
21
+ * Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
22
22
  */
23
23
  aroundLatLng?: string;
24
24
 
25
25
  aroundRadius?: AroundRadius;
26
26
 
27
27
  /**
28
- * Search inside a [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
28
+ * Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
29
29
  */
30
30
  insideBoundingBox?: number[][];
31
31
 
32
32
  /**
33
- * Search inside a [polygon](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas) (in geographical coordinates).
33
+ * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
34
34
  */
35
35
  insidePolygon?: number[][];
36
36
  };