From ffb4ca2d462c1f6da8bf6336a99c13ffbff63ba1 Mon Sep 17 00:00:00 2001 From: Apify Service Account <64261774+apify-service-account@users.noreply.github.com> Date: Tue, 7 Jul 2026 21:26:55 +0200 Subject: [PATCH 1/3] update generated models from apify-docs PR #2747 --- src/apify_client/_models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 31594a8a..7989f82f 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -206,7 +206,7 @@ class ActorDefinition(BaseModel): storages: Storages | None = None default_memory_mbytes: str | int | None = None """ - Specifies the default amount of memory in megabytes to be used when the Actor is started. Can be an integer or a [dynamic memory expression](https://docs.apify.com/platform/actors/development/actor-definition/dynamic-actor-memory). + Specifies the default amount of memory in megabytes to be used when the Actor is started. Can be an integer or a [dynamic memory expression](https://docs.apify.com/actors/development/actor-definition/dynamic-actor-memory). """ min_memory_mbytes: Annotated[int | None, Field(ge=128)] = None """ @@ -875,7 +875,7 @@ class Dataset(BaseModel): ), ] = None """ - Defines the schema of items in your dataset, the full specification can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/dataset-schema) + Defines the schema of items in your dataset, the full specification can be found in [Apify docs](https://docs.apify.com/storage/dataset-schema) """ console_url: Annotated[AnyUrl, Field(examples=['https://console.apify.com/storage/datasets/27TmTznX9YPeAYhkC'])] items_public_url: Annotated[ @@ -3611,7 +3611,7 @@ class UpdateLimitsRequest(BaseModel): """ data_retention_days: Annotated[int | None, Field(examples=[90])] = None """ - Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. [Lear more](https://docs.apify.com/platform/storage/usage#data-retention). + Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. [Lear more](https://docs.apify.com/storage#data-retention). """ From 9e9087d7203adad1a7498083b78766fcd5a23ca1 Mon Sep 17 00:00:00 2001 From: Apify Service Account <64261774+apify-service-account@users.noreply.github.com> Date: Fri, 10 Jul 2026 12:02:34 +0200 Subject: [PATCH 2/3] update generated models from apify-docs PR #2747 --- src/apify_client/_literals.py | 1 + src/apify_client/_models.py | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/apify_client/_literals.py b/src/apify_client/_literals.py index 3a026b2e..b85f92b6 100644 --- a/src/apify_client/_literals.py +++ b/src/apify_client/_literals.py @@ -455,6 +455,7 @@ 'CLI', 'CI', 'STANDBY', + 'MCP', ] diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 7989f82f..3f185871 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -1479,8 +1479,8 @@ class KeyValueStoreStats(BaseModel): ) read_count: Annotated[int, Field(examples=[9])] write_count: Annotated[int, Field(examples=[3])] - delete_count: Annotated[int, Field(examples=[6])] - list_count: Annotated[int, Field(examples=[2])] + delete_count: Annotated[int | None, Field(examples=[6])] = None + list_count: Annotated[int | None, Field(examples=[2])] = None s3_storage_bytes: Annotated[int | None, Field(examples=[18])] = None storage_bytes: Annotated[int | None, Field(examples=[457225])] = None @@ -2883,7 +2883,7 @@ class RunOptions(BaseModel): timeout_secs: Annotated[int, Field(examples=[300], ge=0)] memory_mbytes: Annotated[int, Field(examples=[1024], ge=128, le=32768)] disk_mbytes: Annotated[int, Field(examples=[2048], ge=0)] - max_items: Annotated[int | None, Field(examples=[1000], ge=1)] = None + max_items: Annotated[int | None, Field(examples=[1000], ge=0)] = None max_total_charge_usd: Annotated[float | None, Field(examples=[5], ge=0.0)] = None @@ -3303,7 +3303,7 @@ class StoreListActor(BaseModel): user_picture_url: Annotated[AnyUrl | None, Field(examples=['https://...'])] = None url: Annotated[AnyUrl | None, Field(examples=['https://...'])] = None stats: ActorStats - current_pricing_info: CurrentPricingInfo + current_pricing_info: CurrentPricingInfo | None = None is_white_listed_for_agentic_payments: bool | None = None """ Whether the Actor is whitelisted for agentic payment processing. @@ -3712,7 +3712,7 @@ class UserPrivateInfo(BaseModel): username: Annotated[str, Field(examples=['myusername'])] profile: Profile | None = None email: Annotated[EmailStr | None, Field(examples=['bob@example.com'])] = None - proxy: Proxy + proxy: Proxy | None = None plan: Plan effective_platform_features: EffectivePlatformFeatures created_at: Annotated[AwareDatetime | None, Field(examples=['2022-11-29T14:48:29.381Z'])] = None @@ -3831,7 +3831,7 @@ class Webhook(BaseModel): condition: WebhookCondition ignore_ssl_errors: Annotated[bool, Field(examples=[False])] do_not_retry: Annotated[bool | None, Field(examples=[False])] = None - request_url: Annotated[AnyUrl, Field(examples=['http://example.com/'])] + request_url: Annotated[AnyUrl | None, Field(examples=['http://example.com/'])] payload_template: Annotated[str | None, Field(examples=['{\\n "userId": {{userId}}...'])] = None headers_template: Annotated[str | None, Field(examples=['{\\n "Authorization": "Bearer ..."}'])] = None description: Annotated[str | None, Field(examples=['this is webhook description'])] = None From c075c0c032dcd34524bca77fd27aef29317e72ba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 10 Jul 2026 10:33:13 +0000 Subject: [PATCH 3/3] fix: resolve merge conflict in _literals.py --- src/apify_client/_literals.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/apify_client/_literals.py b/src/apify_client/_literals.py index 437f12df..530cee1d 100644 --- a/src/apify_client/_literals.py +++ b/src/apify_client/_literals.py @@ -459,21 +459,6 @@ ) -<<<<<<< HEAD -RunOrigin = Literal[ - 'DEVELOPMENT', - 'WEB', - 'API', - 'SCHEDULER', - 'TEST', - 'WEBHOOK', - 'ACTOR', - 'CLI', - 'CI', - 'STANDBY', - 'MCP', -] -======= RunOrigin = ( Literal[ 'DEVELOPMENT', @@ -490,7 +475,6 @@ ] | str ) ->>>>>>> origin/master SourceCodeFileFormat = (