Skip to content

Commit aa23789

Browse files
chore: generated code for commit 95ba0016. [skip ci]
algolia/api-clients-automation@95ba001 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent cba5370 commit aa23789

File tree

202 files changed

+841
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+841
-42
lines changed

packages/algoliasearch/lite/model/addApiKeyResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export type AddApiKeyResponse = {
55
* Key string.
66
*/
77
key: string;
8+
89
/**
910
* Date of creation (ISO-8601 format).
1011
*/

packages/algoliasearch/lite/model/apiKey.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,37 @@ export type ApiKey = {
1010
* Set of permissions associated with the key.
1111
*/
1212
acl: Acl[];
13+
1314
/**
1415
* A comment used to identify a key more easily in the dashboard. It is not interpreted by the API.
1516
*/
1617
description?: string;
18+
1719
/**
1820
* Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed.
1921
*/
2022
indexes?: string[];
23+
2124
/**
2225
* Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced.
2326
*/
2427
maxHitsPerQuery?: number;
28+
2529
/**
2630
* Maximum number of API calls per hour allowed from a given IP address or a user token.
2731
*/
2832
maxQueriesPerIPPerHour?: number;
33+
2934
/**
3035
* URL-encoded query string. Force some query parameters to be applied for each query made with this API key.
3136
*/
3237
queryParameters?: string;
38+
3339
/**
3440
* Restrict this new API key to specific referers. If empty or blank, defaults to all referers.
3541
*/
3642
referers?: string[];
43+
3744
/**
3845
* Validity limit for this key in seconds. The key will automatically be removed after this period of time.
3946
*/

packages/algoliasearch/lite/model/automaticFacetFilter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ export type AutomaticFacetFilter = {
88
* Attribute to filter on. This must match a facet placeholder in the Rule\'s pattern.
99
*/
1010
facet: string;
11+
1112
/**
1213
* Score for the filter. Typically used for optional or disjunctive filters.
1314
*/
1415
score?: number;
16+
1517
/**
1618
* Whether the filter is disjunctive (true) or conjunctive (false).
1719
*/

packages/algoliasearch/lite/model/baseIndexSettings.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,67 @@ export type BaseIndexSettings = {
55
* Creates replicas, exact copies of an index.
66
*/
77
replicas?: string[];
8+
89
/**
910
* Set the maximum number of hits accessible via pagination.
1011
*/
1112
paginationLimitedTo?: number;
13+
1214
/**
1315
* A list of words for which you want to turn off typo tolerance.
1416
*/
1517
disableTypoToleranceOnWords?: string[];
18+
1619
/**
1720
* Specify on which attributes in your index Algolia should apply Japanese transliteration to make words indexed in Katakana or Kanji searchable in Hiragana.
1821
*/
1922
attributesToTransliterate?: string[];
23+
2024
/**
2125
* List of attributes on which to do a decomposition of camel case words.
2226
*/
2327
camelCaseAttributes?: string[];
28+
2429
/**
2530
* Specify on which attributes in your index Algolia should apply word segmentation, also known as decompounding.
2631
*/
2732
decompoundedAttributes?: Record<string, any>;
33+
2834
/**
2935
* Sets the languages at the index level for language-specific processing such as tokenization and normalization.
3036
*/
3137
indexLanguages?: string[];
38+
3239
/**
3340
* List of attributes on which you want to disable prefix matching.
3441
*/
3542
disablePrefixOnAttributes?: string[];
43+
3644
/**
3745
* Enables compression of large integer arrays.
3846
*/
3947
allowCompressionOfIntegerArray?: boolean;
48+
4049
/**
4150
* List of numeric attributes that can be used as numerical filters.
4251
*/
4352
numericAttributesForFiltering?: string[];
53+
4454
/**
4555
* Control which separators are indexed.
4656
*/
4757
separatorsToIndex?: string;
58+
4859
/**
4960
* The complete list of attributes used for searching.
5061
*/
5162
searchableAttributes?: string[];
63+
5264
/**
5365
* Lets you store custom data in your indices.
5466
*/
5567
userData?: Record<string, any>;
68+
5669
/**
5770
* Overrides Algolia\'s default normalization.
5871
*/

packages/algoliasearch/lite/model/baseSearchParamsWithoutQuery.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,114 +12,146 @@ export type BaseSearchParamsWithoutQuery = {
1212
* Overrides the query parameter and performs a more generic search that can be used to find \"similar\" results.
1313
*/
1414
similarQuery?: string;
15+
1516
/**
1617
* Filter the query with numeric, facet and/or tag filters.
1718
*/
1819
filters?: string;
20+
1921
facetFilters?: FacetFilters;
22+
2023
optionalFilters?: OptionalFilters;
24+
2125
numericFilters?: NumericFilters;
26+
2227
tagFilters?: TagFilters;
28+
2329
/**
2430
* Determines how to calculate the total score for filtering.
2531
*/
2632
sumOrFiltersScores?: boolean;
33+
2734
/**
2835
* Retrieve facets and their facet values.
2936
*/
3037
facets?: string[];
38+
3139
/**
3240
* Maximum number of facet values to return for each facet during a regular search.
3341
*/
3442
maxValuesPerFacet?: number;
43+
3544
/**
3645
* Force faceting to be applied after de-duplication (via the Distinct setting).
3746
*/
3847
facetingAfterDistinct?: boolean;
48+
3949
/**
4050
* Controls how facet values are fetched.
4151
*/
4252
sortFacetValuesBy?: string;
53+
4354
/**
4455
* Specify the page to retrieve.
4556
*/
4657
page?: number;
58+
4759
/**
4860
* Specify the offset of the first hit to return.
4961
*/
5062
offset?: number;
63+
5164
/**
5265
* Set the number of hits to retrieve (used only with offset).
5366
*/
5467
length?: number;
68+
5569
/**
5670
* Search for entries around a central geolocation, enabling a geo search within a circular area.
5771
*/
5872
aroundLatLng?: string;
73+
5974
/**
6075
* Search for entries around a given location automatically computed from the requester\'s IP address.
6176
*/
6277
aroundLatLngViaIP?: boolean;
78+
6379
aroundRadius?: AroundRadius;
80+
6481
/**
6582
* Precision of geo search (in meters), to add grouping by geo location to the ranking formula.
6683
*/
6784
aroundPrecision?: number;
85+
6886
/**
6987
* Minimum radius (in meters) used for a geo search when aroundRadius is not set.
7088
*/
7189
minimumAroundRadius?: number;
90+
7291
/**
7392
* Search inside a rectangular area (in geo coordinates).
7493
*/
7594
insideBoundingBox?: number[];
95+
7696
/**
7797
* Search inside a polygon (in geo coordinates).
7898
*/
7999
insidePolygon?: number[];
100+
80101
/**
81102
* This parameter changes the default values of certain parameters and settings that work best for a natural language query, such as ignorePlurals, removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts. These parameters and settings work well together when the query is formatted in natural language instead of keywords, for example when your user performs a voice search.
82103
*/
83104
naturalLanguages?: string[];
105+
84106
/**
85107
* Enables contextual rules.
86108
*/
87109
ruleContexts?: string[];
110+
88111
/**
89112
* Define the impact of the Personalization feature.
90113
*/
91114
personalizationImpact?: number;
115+
92116
/**
93117
* Associates a certain user token with the current search.
94118
*/
95119
userToken?: string;
120+
96121
/**
97122
* Retrieve detailed ranking information.
98123
*/
99124
getRankingInfo?: boolean;
125+
100126
/**
101127
* Enable the Click Analytics feature.
102128
*/
103129
clickAnalytics?: boolean;
130+
104131
/**
105132
* Whether the current query will be taken into account in the Analytics.
106133
*/
107134
analytics?: boolean;
135+
108136
/**
109137
* List of tags to apply to the query for analytics purposes.
110138
*/
111139
analyticsTags?: string[];
140+
112141
/**
113142
* Whether to include or exclude a query from the processing-time percentile computation.
114143
*/
115144
percentileComputation?: boolean;
145+
116146
/**
117147
* Whether this search should participate in running AB tests.
118148
*/
119149
enableABTest?: boolean;
150+
120151
/**
121152
* Whether this search should use AI Re-Ranking.
122153
*/
123154
enableReRanking?: boolean;
155+
124156
reRankingApplyFilter?: ReRankingApplyFilter | null;
125157
};

packages/algoliasearch/lite/model/baseSearchResponse.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,97 +8,121 @@ export type BaseSearchResponse = {
88
* If a search encounters an index that is being A/B tested, abTestID reports the ongoing A/B test ID.
99
*/
1010
abTestID?: number;
11+
1112
/**
1213
* If a search encounters an index that is being A/B tested, abTestVariantID reports the variant ID of the index used (starting at 1).
1314
*/
1415
abTestVariantID?: number;
16+
1517
/**
1618
* The computed geo location.
1719
*/
1820
aroundLatLng?: string;
21+
1922
/**
2023
* The automatically computed radius. For legacy reasons, this parameter is a string and not an integer.
2124
*/
2225
automaticRadius?: string;
26+
2327
/**
2428
* Whether the facet count is exhaustive or approximate.
2529
*/
2630
exhaustiveFacetsCount?: boolean;
31+
2732
/**
2833
* Indicate if the nbHits count was exhaustive or approximate.
2934
*/
3035
exhaustiveNbHits: boolean;
36+
3137
/**
3238
* Indicate if the typo-tolerance search was exhaustive or approximate (only included when typo-tolerance is enabled).
3339
*/
3440
exhaustiveTypo: boolean;
41+
3542
/**
3643
* A mapping of each facet name to the corresponding facet counts.
3744
*/
3845
facets?: Record<string, Record<string, number>>;
46+
3947
/**
4048
* Statistics for numerical facets.
4149
*/
4250
facets_stats?: Record<string, FacetsStats>;
51+
4352
/**
4453
* Set the number of hits per page.
4554
*/
4655
hitsPerPage: number;
56+
4757
/**
4858
* Index name used for the query.
4959
*/
5060
index?: string;
61+
5162
/**
5263
* Index name used for the query. In the case of an A/B test, the targeted index isn\'t always the index used by the query.
5364
*/
5465
indexUsed?: string;
66+
5567
/**
5668
* Used to return warnings about the query.
5769
*/
5870
message?: string;
71+
5972
/**
6073
* Number of hits that the search query matched.
6174
*/
6275
nbHits: number;
76+
6377
/**
6478
* Number of pages available for the current query.
6579
*/
6680
nbPages: number;
81+
6782
/**
6883
* The number of hits selected and sorted by the relevant sort algorithm.
6984
*/
7085
nbSortedHits?: number;
86+
7187
/**
7288
* Specify the page to retrieve.
7389
*/
7490
page: number;
91+
7592
/**
7693
* A url-encoded string of all search parameters.
7794
*/
7895
params: string;
96+
7997
/**
8098
* The query string that will be searched, after normalization.
8199
*/
82100
parsedQuery?: string;
101+
83102
/**
84103
* Time the server took to process the request, in milliseconds.
85104
*/
86105
processingTimeMS: number;
106+
87107
/**
88108
* The text to search in the index.
89109
*/
90110
query: string;
111+
91112
/**
92113
* A markup text indicating which parts of the original query have been removed in order to retrieve a non-empty result set.
93114
*/
94115
queryAfterRemoval?: string;
116+
95117
/**
96118
* Actual host name of the server that processed the request.
97119
*/
98120
serverUsed?: string;
121+
99122
/**
100123
* Lets you store custom data in your indices.
101124
*/
102125
userData?: Record<string, any>;
126+
103127
renderingContent?: RenderingContent;
104128
};

0 commit comments

Comments
 (0)