Skip to content

Commit 3a3890d

Browse files
Merge branch 'main' into fix/python-type-check-and-additional-properties (generated)
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent e83dd10 commit 3a3890d

File tree

377 files changed

+739
-0
lines changed

Some content is hidden

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

377 files changed

+739
-0
lines changed

clients/algoliasearch-client-python/algoliasearch/abtesting/models/ab_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ class ABTest(BaseModel):
6969
configuration: Optional[ABTestConfiguration] = None
7070

7171
model_config = ConfigDict(
72+
strict=False,
7273
use_enum_values=True,
7374
populate_by_name=True,
7475
validate_assignment=True,
7576
protected_namespaces=(),
7677
alias_generator=_alias_generator,
78+
extra="allow",
7779
)
7880

7981
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/ab_test_configuration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ class ABTestConfiguration(BaseModel):
4545
minimum_detectable_effect: Optional[MinimumDetectableEffect] = None
4646

4747
model_config = ConfigDict(
48+
strict=False,
4849
use_enum_values=True,
4950
populate_by_name=True,
5051
validate_assignment=True,
5152
protected_namespaces=(),
5253
alias_generator=_alias_generator,
54+
extra="allow",
5355
)
5456

5557
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/ab_test_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ class ABTestResponse(BaseModel):
4242
""" 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](#tag/Indices/operation/getTask) and this `taskID`. """
4343

4444
model_config = ConfigDict(
45+
strict=False,
4546
use_enum_values=True,
4647
populate_by_name=True,
4748
validate_assignment=True,
4849
protected_namespaces=(),
4950
alias_generator=_alias_generator,
51+
extra="allow",
5052
)
5153

5254
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/ab_tests_variant.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ class AbTestsVariant(BaseModel):
4242
""" Description for this variant. """
4343

4444
model_config = ConfigDict(
45+
strict=False,
4546
use_enum_values=True,
4647
populate_by_name=True,
4748
validate_assignment=True,
4849
protected_namespaces=(),
4950
alias_generator=_alias_generator,
51+
extra="allow",
5052
)
5153

5254
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/ab_tests_variant_search_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ class AbTestsVariantSearchParams(BaseModel):
4444
custom_search_parameters: object
4545

4646
model_config = ConfigDict(
47+
strict=False,
4748
use_enum_values=True,
4849
populate_by_name=True,
4950
validate_assignment=True,
5051
protected_namespaces=(),
5152
alias_generator=_alias_generator,
53+
extra="allow",
5254
)
5355

5456
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/add_ab_tests_request.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ class AddABTestsRequest(BaseModel):
4444
""" End date and time of the A/B test, in RFC 3339 format. """
4545

4646
model_config = ConfigDict(
47+
strict=False,
4748
use_enum_values=True,
4849
populate_by_name=True,
4950
validate_assignment=True,
5051
protected_namespaces=(),
5152
alias_generator=_alias_generator,
53+
extra="allow",
5254
)
5355

5456
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/currency.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ class Currency(BaseModel):
4545
""" Standard deviation for this currency. """
4646

4747
model_config = ConfigDict(
48+
strict=False,
4849
use_enum_values=True,
4950
populate_by_name=True,
5051
validate_assignment=True,
5152
protected_namespaces=(),
5253
alias_generator=_alias_generator,
54+
extra="allow",
5355
)
5456

5557
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/empty_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ class EmptySearch(BaseModel):
3636
""" Whether to exclude empty searches when calculating A/B test results. """
3737

3838
model_config = ConfigDict(
39+
strict=False,
3940
use_enum_values=True,
4041
populate_by_name=True,
4142
validate_assignment=True,
4243
protected_namespaces=(),
4344
alias_generator=_alias_generator,
45+
extra="allow",
4446
)
4547

4648
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/empty_search_filter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ class EmptySearchFilter(BaseModel):
3939
""" Number of tracked searches removed from the A/B test. """
4040

4141
model_config = ConfigDict(
42+
strict=False,
4243
use_enum_values=True,
4344
populate_by_name=True,
4445
validate_assignment=True,
4546
protected_namespaces=(),
4647
alias_generator=_alias_generator,
48+
extra="allow",
4749
)
4850

4951
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/error_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class ErrorBase(BaseModel):
3535
message: Optional[str] = None
3636

3737
model_config = ConfigDict(
38+
strict=False,
3839
use_enum_values=True,
3940
populate_by_name=True,
4041
validate_assignment=True,

clients/algoliasearch-client-python/algoliasearch/abtesting/models/estimate_ab_test_request.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ class EstimateABTestRequest(BaseModel):
4141
""" A/B test variants. """
4242

4343
model_config = ConfigDict(
44+
strict=False,
4445
use_enum_values=True,
4546
populate_by_name=True,
4647
validate_assignment=True,
4748
protected_namespaces=(),
4849
alias_generator=_alias_generator,
50+
extra="allow",
4951
)
5052

5153
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/estimate_ab_test_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ class EstimateABTestResponse(BaseModel):
3939
""" Sample size estimates for each variant. The first element is the control variant. Each element is the estimated number of searches required to achieve the desired statistical significance. """
4040

4141
model_config = ConfigDict(
42+
strict=False,
4243
use_enum_values=True,
4344
populate_by_name=True,
4445
validate_assignment=True,
4546
protected_namespaces=(),
4647
alias_generator=_alias_generator,
48+
extra="allow",
4749
)
4850

4951
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/estimate_configuration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ class EstimateConfiguration(BaseModel):
4545
minimum_detectable_effect: MinimumDetectableEffect
4646

4747
model_config = ConfigDict(
48+
strict=False,
4849
use_enum_values=True,
4950
populate_by_name=True,
5051
validate_assignment=True,
5152
protected_namespaces=(),
5253
alias_generator=_alias_generator,
54+
extra="allow",
5355
)
5456

5557
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/filter_effects.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ class FilterEffects(BaseModel):
4040
empty_search: Optional[EmptySearchFilter] = None
4141

4242
model_config = ConfigDict(
43+
strict=False,
4344
use_enum_values=True,
4445
populate_by_name=True,
4546
validate_assignment=True,
4647
protected_namespaces=(),
4748
alias_generator=_alias_generator,
49+
extra="allow",
4850
)
4951

5052
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/list_ab_tests_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ class ListABTestsResponse(BaseModel):
4444
""" Number of retrievable A/B tests. """
4545

4646
model_config = ConfigDict(
47+
strict=False,
4748
use_enum_values=True,
4849
populate_by_name=True,
4950
validate_assignment=True,
5051
protected_namespaces=(),
5152
alias_generator=_alias_generator,
53+
extra="allow",
5254
)
5355

5456
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/minimum_detectable_effect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ class MinimumDetectableEffect(BaseModel):
4040
metric: EffectMetric
4141

4242
model_config = ConfigDict(
43+
strict=False,
4344
use_enum_values=True,
4445
populate_by_name=True,
4546
validate_assignment=True,
4647
protected_namespaces=(),
4748
alias_generator=_alias_generator,
49+
extra="allow",
4850
)
4951

5052
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/outliers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ class Outliers(BaseModel):
3636
""" Whether to exclude outliers when calculating A/B test results. """
3737

3838
model_config = ConfigDict(
39+
strict=False,
3940
use_enum_values=True,
4041
populate_by_name=True,
4142
validate_assignment=True,
4243
protected_namespaces=(),
4344
alias_generator=_alias_generator,
45+
extra="allow",
4446
)
4547

4648
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/outliers_filter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ class OutliersFilter(BaseModel):
3939
""" Number of tracked searches removed from the A/B test. """
4040

4141
model_config = ConfigDict(
42+
strict=False,
4243
use_enum_values=True,
4344
populate_by_name=True,
4445
validate_assignment=True,
4546
protected_namespaces=(),
4647
alias_generator=_alias_generator,
48+
extra="allow",
4749
)
4850

4951
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/schedule_ab_test_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ class ScheduleABTestResponse(BaseModel):
3636
""" Unique scheduled A/B test identifier. """
3737

3838
model_config = ConfigDict(
39+
strict=False,
3940
use_enum_values=True,
4041
populate_by_name=True,
4142
validate_assignment=True,
4243
protected_namespaces=(),
4344
alias_generator=_alias_generator,
45+
extra="allow",
4446
)
4547

4648
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/schedule_ab_tests_request.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ class ScheduleABTestsRequest(BaseModel):
4747
""" End date and time of the A/B test, in RFC 3339 format. """
4848

4949
model_config = ConfigDict(
50+
strict=False,
5051
use_enum_values=True,
5152
populate_by_name=True,
5253
validate_assignment=True,
5354
protected_namespaces=(),
5455
alias_generator=_alias_generator,
56+
extra="allow",
5557
)
5658

5759
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/abtesting/models/variant.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@ class Variant(BaseModel):
9595
""" Number of users that made tracked searches to this variant. """
9696

9797
model_config = ConfigDict(
98+
strict=False,
9899
use_enum_values=True,
99100
populate_by_name=True,
100101
validate_assignment=True,
101102
protected_namespaces=(),
102103
alias_generator=_alias_generator,
104+
extra="allow",
103105
)
104106

105107
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/analytics/models/click_position.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ class ClickPosition(BaseModel):
3939
""" Number of times this search has been clicked at that position. """
4040

4141
model_config = ConfigDict(
42+
strict=False,
4243
use_enum_values=True,
4344
populate_by_name=True,
4445
validate_assignment=True,
4546
protected_namespaces=(),
4647
alias_generator=_alias_generator,
48+
extra="allow",
4749
)
4850

4951
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/analytics/models/currency_code.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ class CurrencyCode(BaseModel):
3939
""" Revenue associated with this search in this currency. """
4040

4141
model_config = ConfigDict(
42+
strict=False,
4243
use_enum_values=True,
4344
populate_by_name=True,
4445
validate_assignment=True,
4546
protected_namespaces=(),
4647
alias_generator=_alias_generator,
48+
extra="allow",
4749
)
4850

4951
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/analytics/models/daily_add_to_cart_rates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ class DailyAddToCartRates(BaseModel):
4545
""" Date in the format YYYY-MM-DD. """
4646

4747
model_config = ConfigDict(
48+
strict=False,
4849
use_enum_values=True,
4950
populate_by_name=True,
5051
validate_assignment=True,
5152
protected_namespaces=(),
5253
alias_generator=_alias_generator,
54+
extra="allow",
5355
)
5456

5557
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/analytics/models/daily_average_clicks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ class DailyAverageClicks(BaseModel):
4242
""" Date in the format YYYY-MM-DD. """
4343

4444
model_config = ConfigDict(
45+
strict=False,
4546
use_enum_values=True,
4647
populate_by_name=True,
4748
validate_assignment=True,
4849
protected_namespaces=(),
4950
alias_generator=_alias_generator,
51+
extra="allow",
5052
)
5153

5254
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/analytics/models/daily_click_through_rates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ class DailyClickThroughRates(BaseModel):
4545
""" Date in the format YYYY-MM-DD. """
4646

4747
model_config = ConfigDict(
48+
strict=False,
4849
use_enum_values=True,
4950
populate_by_name=True,
5051
validate_assignment=True,
5152
protected_namespaces=(),
5253
alias_generator=_alias_generator,
54+
extra="allow",
5355
)
5456

5557
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/analytics/models/daily_conversion_rates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ class DailyConversionRates(BaseModel):
4545
""" Date in the format YYYY-MM-DD. """
4646

4747
model_config = ConfigDict(
48+
strict=False,
4849
use_enum_values=True,
4950
populate_by_name=True,
5051
validate_assignment=True,
5152
protected_namespaces=(),
5253
alias_generator=_alias_generator,
54+
extra="allow",
5355
)
5456

5557
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/analytics/models/daily_no_click_rates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ class DailyNoClickRates(BaseModel):
4545
""" Date in the format YYYY-MM-DD. """
4646

4747
model_config = ConfigDict(
48+
strict=False,
4849
use_enum_values=True,
4950
populate_by_name=True,
5051
validate_assignment=True,
5152
protected_namespaces=(),
5253
alias_generator=_alias_generator,
54+
extra="allow",
5355
)
5456

5557
def to_json(self) -> str:

clients/algoliasearch-client-python/algoliasearch/analytics/models/daily_no_results_rates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ class DailyNoResultsRates(BaseModel):
4545
""" No results rate, calculated as number of searches with zero results divided by the total number of searches. """
4646

4747
model_config = ConfigDict(
48+
strict=False,
4849
use_enum_values=True,
4950
populate_by_name=True,
5051
validate_assignment=True,
5152
protected_namespaces=(),
5253
alias_generator=_alias_generator,
54+
extra="allow",
5355
)
5456

5557
def to_json(self) -> str:

0 commit comments

Comments
 (0)