diff --git a/algoliasearch/abtesting/models/ab_test_configuration.py b/algoliasearch/abtesting/models/ab_test_configuration.py index e2e34eb73..c2bb8451c 100644 --- a/algoliasearch/abtesting/models/ab_test_configuration.py +++ b/algoliasearch/abtesting/models/ab_test_configuration.py @@ -40,7 +40,7 @@ class ABTestConfiguration(BaseModel): A/B test configuration. """ - outliers: Outliers + outliers: Optional[Outliers] = None empty_search: Optional[EmptySearch] = None minimum_detectable_effect: Optional[MinimumDetectableEffect] = None diff --git a/algoliasearch/abtesting/models/variant.py b/algoliasearch/abtesting/models/variant.py index 0db869e40..9f0b64e5b 100644 --- a/algoliasearch/abtesting/models/variant.py +++ b/algoliasearch/abtesting/models/variant.py @@ -70,7 +70,7 @@ class Variant(BaseModel): """ [Conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate) for this variant. """ currencies: Optional[Dict[str, Currency]] = None """ A/B test currencies. """ - description: str + description: Optional[str] = None """ Description for this variant. """ estimated_sample_size: Optional[int] = None """ 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. """ diff --git a/algoliasearch/recommend/models/recommendations_results.py b/algoliasearch/recommend/models/recommendations_results.py index ac8b5357e..c838a6021 100644 --- a/algoliasearch/recommend/models/recommendations_results.py +++ b/algoliasearch/recommend/models/recommendations_results.py @@ -31,6 +31,7 @@ "around_lat_lng": "aroundLatLng", "automatic_radius": "automaticRadius", "exhaustive": "exhaustive", + "applied_rules": "appliedRules", "exhaustive_facets_count": "exhaustiveFacetsCount", "exhaustive_nb_hits": "exhaustiveNbHits", "exhaustive_typo": "exhaustiveTypo", @@ -77,6 +78,8 @@ class RecommendationsResults(BaseModel): automatic_radius: Optional[str] = None """ Distance from a central coordinate provided by `aroundLatLng`. """ exhaustive: Optional[Exhaustive] = None + applied_rules: Optional[List[object]] = None + """ Rules applied to the query. """ exhaustive_facets_count: Optional[bool] = None """ See the `facetsCount` field of the `exhaustive` object in the response. """ exhaustive_nb_hits: Optional[bool] = None diff --git a/algoliasearch/search/models/browse_response.py b/algoliasearch/search/models/browse_response.py index 85535869d..410c61660 100644 --- a/algoliasearch/search/models/browse_response.py +++ b/algoliasearch/search/models/browse_response.py @@ -31,6 +31,7 @@ "around_lat_lng": "aroundLatLng", "automatic_radius": "automaticRadius", "exhaustive": "exhaustive", + "applied_rules": "appliedRules", "exhaustive_facets_count": "exhaustiveFacetsCount", "exhaustive_nb_hits": "exhaustiveNbHits", "exhaustive_typo": "exhaustiveTypo", @@ -80,6 +81,8 @@ class BrowseResponse(BaseModel): automatic_radius: Optional[str] = None """ Distance from a central coordinate provided by `aroundLatLng`. """ exhaustive: Optional[Exhaustive] = None + applied_rules: Optional[List[object]] = None + """ Rules applied to the query. """ exhaustive_facets_count: Optional[bool] = None """ See the `facetsCount` field of the `exhaustive` object in the response. """ exhaustive_nb_hits: Optional[bool] = None diff --git a/algoliasearch/search/models/get_api_key_response.py b/algoliasearch/search/models/get_api_key_response.py index d3c38c4a2..07c0cd041 100644 --- a/algoliasearch/search/models/get_api_key_response.py +++ b/algoliasearch/search/models/get_api_key_response.py @@ -43,7 +43,7 @@ class GetApiKeyResponse(BaseModel): GetApiKeyResponse """ - value: Optional[str] = None + value: str """ API key. """ created_at: int """ Timestamp when the object was created, in milliseconds since the Unix epoch. """ diff --git a/algoliasearch/search/models/get_objects_response.py b/algoliasearch/search/models/get_objects_response.py index b2819c51a..70da209b0 100644 --- a/algoliasearch/search/models/get_objects_response.py +++ b/algoliasearch/search/models/get_objects_response.py @@ -32,7 +32,7 @@ class GetObjectsResponse(BaseModel): GetObjectsResponse """ - results: List[object] + results: Optional[List[object]] = None """ Retrieved records. """ model_config = ConfigDict( diff --git a/algoliasearch/search/models/search_response.py b/algoliasearch/search/models/search_response.py index 8e7351ac8..62dc7e062 100644 --- a/algoliasearch/search/models/search_response.py +++ b/algoliasearch/search/models/search_response.py @@ -31,6 +31,7 @@ "around_lat_lng": "aroundLatLng", "automatic_radius": "automaticRadius", "exhaustive": "exhaustive", + "applied_rules": "appliedRules", "exhaustive_facets_count": "exhaustiveFacetsCount", "exhaustive_nb_hits": "exhaustiveNbHits", "exhaustive_typo": "exhaustiveTypo", @@ -79,6 +80,8 @@ class SearchResponse(BaseModel): automatic_radius: Optional[str] = None """ Distance from a central coordinate provided by `aroundLatLng`. """ exhaustive: Optional[Exhaustive] = None + applied_rules: Optional[List[object]] = None + """ Rules applied to the query. """ exhaustive_facets_count: Optional[bool] = None """ See the `facetsCount` field of the `exhaustive` object in the response. """ exhaustive_nb_hits: Optional[bool] = None