diff --git a/pyproject.toml b/pyproject.toml index 0cc632c0..e8cfe591 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -257,7 +257,7 @@ keep_model_order = true # workflow committing nothing unless the models changed. A local regeneration that only moves this line is that # same case - drop it rather than committing it alone. [tool.apify.openapi-spec] -version = "v2-2026-11-09T143926Z" +version = "v2-2026-11-18T151559Z" [tool.uv] # Minimal defense against supply-chain atatcks. diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 25ea64a2..9c1d304d 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -2723,6 +2723,16 @@ class PayPerEventActorPricingInfo(CommonActorPricingInfo): """ +@docs_group('Models') +class Plan(BaseModel): + model_config = ConfigDict( + extra='allow', + populate_by_name=True, + alias_generator=to_camel, + ) + available_proxy_groups: dict[str, int] + + @docs_group('Models') class PricePerDatasetItemActorPricingInfo(CommonActorPricingInfo): model_config = ConfigDict( @@ -4051,7 +4061,7 @@ class ScheduleResponse(BaseModel): @docs_group('Models') class ScheduleUiState(BaseModel): - """State of the schedule editor in Apify Console. It's removed when an API update changes `cronExpression` or `timezone`.""" + """State of the schedule editor in Apify Console. It's removed when an API update changes `cronExpression` or `timezone`, after which it is `null`.""" model_config = ConfigDict( extra='allow', @@ -4948,6 +4958,30 @@ class UserProfile(BaseModel): twitter_username: Annotated[str | None, Field(examples=['@BillGates'])] = None +@docs_group('Models') +class UserProxyInfo(BaseModel): + """Reduced user data with only the fields Apify Proxy reads.""" + + model_config = ConfigDict( + extra='allow', + populate_by_name=True, + alias_generator=to_camel, + ) + plan: Annotated[Plan, Field(title='UserProxyPlan')] + effective_platform_features: EffectivePlatformFeatures + is_paying: Annotated[bool, Field(examples=[True])] + + +@docs_group('Models') +class UserProxyInfoResponse(BaseModel): + model_config = ConfigDict( + extra='allow', + populate_by_name=True, + alias_generator=to_camel, + ) + data: UserProxyInfo + + @docs_group('Models') class UserPublicInfo(BaseModel): model_config = ConfigDict(