Skip to content

Commit 397f822

Browse files
committed
fix(specs): multiple clients fixes (generated)
algolia/api-clients-automation#3971 Co-authored-by: algolia-bot <[email protected]>
1 parent 1750751 commit 397f822

File tree

7 files changed

+13
-4
lines changed

7 files changed

+13
-4
lines changed

algoliasearch/abtesting/models/ab_test_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ABTestConfiguration(BaseModel):
4040
A/B test configuration.
4141
"""
4242

43-
outliers: Outliers
43+
outliers: Optional[Outliers] = None
4444
empty_search: Optional[EmptySearch] = None
4545
minimum_detectable_effect: Optional[MinimumDetectableEffect] = None
4646

algoliasearch/abtesting/models/variant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Variant(BaseModel):
7070
""" [Conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate) for this variant. """
7171
currencies: Optional[Dict[str, Currency]] = None
7272
""" A/B test currencies. """
73-
description: str
73+
description: Optional[str] = None
7474
""" Description for this variant. """
7575
estimated_sample_size: Optional[int] = None
7676
""" Estimated number of searches required to achieve the desired statistical significance. The A/B test configuration must include a `mininmumDetectableEffect` setting for this number to be included in the response. """

algoliasearch/recommend/models/recommendations_results.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"around_lat_lng": "aroundLatLng",
3232
"automatic_radius": "automaticRadius",
3333
"exhaustive": "exhaustive",
34+
"applied_rules": "appliedRules",
3435
"exhaustive_facets_count": "exhaustiveFacetsCount",
3536
"exhaustive_nb_hits": "exhaustiveNbHits",
3637
"exhaustive_typo": "exhaustiveTypo",
@@ -77,6 +78,8 @@ class RecommendationsResults(BaseModel):
7778
automatic_radius: Optional[str] = None
7879
""" Distance from a central coordinate provided by `aroundLatLng`. """
7980
exhaustive: Optional[Exhaustive] = None
81+
applied_rules: Optional[List[object]] = None
82+
""" Rules applied to the query. """
8083
exhaustive_facets_count: Optional[bool] = None
8184
""" See the `facetsCount` field of the `exhaustive` object in the response. """
8285
exhaustive_nb_hits: Optional[bool] = None

algoliasearch/search/models/browse_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"around_lat_lng": "aroundLatLng",
3232
"automatic_radius": "automaticRadius",
3333
"exhaustive": "exhaustive",
34+
"applied_rules": "appliedRules",
3435
"exhaustive_facets_count": "exhaustiveFacetsCount",
3536
"exhaustive_nb_hits": "exhaustiveNbHits",
3637
"exhaustive_typo": "exhaustiveTypo",
@@ -80,6 +81,8 @@ class BrowseResponse(BaseModel):
8081
automatic_radius: Optional[str] = None
8182
""" Distance from a central coordinate provided by `aroundLatLng`. """
8283
exhaustive: Optional[Exhaustive] = None
84+
applied_rules: Optional[List[object]] = None
85+
""" Rules applied to the query. """
8386
exhaustive_facets_count: Optional[bool] = None
8487
""" See the `facetsCount` field of the `exhaustive` object in the response. """
8588
exhaustive_nb_hits: Optional[bool] = None

algoliasearch/search/models/get_api_key_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class GetApiKeyResponse(BaseModel):
4343
GetApiKeyResponse
4444
"""
4545

46-
value: Optional[str] = None
46+
value: str
4747
""" API key. """
4848
created_at: int
4949
""" Timestamp when the object was created, in milliseconds since the Unix epoch. """

algoliasearch/search/models/get_objects_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class GetObjectsResponse(BaseModel):
3232
GetObjectsResponse
3333
"""
3434

35-
results: List[object]
35+
results: Optional[List[object]] = None
3636
""" Retrieved records. """
3737

3838
model_config = ConfigDict(

algoliasearch/search/models/search_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"around_lat_lng": "aroundLatLng",
3232
"automatic_radius": "automaticRadius",
3333
"exhaustive": "exhaustive",
34+
"applied_rules": "appliedRules",
3435
"exhaustive_facets_count": "exhaustiveFacetsCount",
3536
"exhaustive_nb_hits": "exhaustiveNbHits",
3637
"exhaustive_typo": "exhaustiveTypo",
@@ -79,6 +80,8 @@ class SearchResponse(BaseModel):
7980
automatic_radius: Optional[str] = None
8081
""" Distance from a central coordinate provided by `aroundLatLng`. """
8182
exhaustive: Optional[Exhaustive] = None
83+
applied_rules: Optional[List[object]] = None
84+
""" Rules applied to the query. """
8285
exhaustive_facets_count: Optional[bool] = None
8386
""" See the `facetsCount` field of the `exhaustive` object in the response. """
8487
exhaustive_nb_hits: Optional[bool] = None

0 commit comments

Comments
 (0)