From 951fde7dd43dcf82cd08f169809a22e12a4d3a51 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Mon, 19 Oct 2026 15:25:50 +0200 Subject: [PATCH 1/3] chore: regenerate models from apify/apify-docs#3087 --- src/apify_client/_literals.py | 12 ++ src/apify_client/_models.py | 199 ++++++++++++------ src/apify_client/_resource_clients/actor.py | 6 +- .../_resource_clients/actor_version.py | 6 +- .../actor_version_collection.py | 6 +- 5 files changed, 161 insertions(+), 68 deletions(-) diff --git a/src/apify_client/_literals.py b/src/apify_client/_literals.py index 676ef340a..030f1f0da 100644 --- a/src/apify_client/_literals.py +++ b/src/apify_client/_literals.py @@ -538,3 +538,15 @@ | str ) """Type of event that triggers the webhook.""" + + +WritableVersionSourceType = ( + Literal[ + 'SOURCE_FILES', + 'GIT_REPO', + 'TARBALL', + 'GITHUB_GIST', + ] + | str +) +"""The version source types accepted in request bodies. Same as `VersionSourceType`, without `SOURCE_CODE`.""" diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index c9340c302..779b67c29 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -20,6 +20,7 @@ VersionSourceType, WebhookDispatchStatus, WebhookEventType, + WritableVersionSourceType, ) @@ -778,10 +779,11 @@ class CreateActorRequest(BaseModel): """ Human-readable name of the Actor, displayed in Apify Store and Console. Can contain spaces and capital letters. Recommended length is 40-50 characters. You can change this title without affecting the Actor's URL or SEO. """ - is_public: Annotated[bool | None, Field(examples=[False])] = None + is_public: Literal[False] | None = None """ - Whether the Actor is available to users in Apify Store. If `false`, the Actor is private and only visible to you. + Whether the Actor is available to users in Apify Store. A new Actor is always private. To publish it, build it first, then update it with `isPublic` set to `true`. """ + actor_permission_level: ActorPermissionLevel | None = None seo_title: Annotated[str | None, Field(examples=['Free Instagram scraper'])] = None """ Name of the Actor to display by search engines such as Google. Can be different from the Actor's name displayed in Apify Store and Console. Recommended length is 40-50 characters. @@ -791,7 +793,7 @@ class CreateActorRequest(BaseModel): Description of the Actor to display by search engines such as Google. Recommended length is 140-156 characters. """ restart_on_error: Annotated[bool | None, Field(deprecated=True, examples=[False])] = None - versions: list[Version] | None = None + versions: Annotated[list[CreateVersionRequest] | None, Field(max_length=10, min_length=1)] = None """ An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration. """ @@ -828,6 +830,7 @@ class CreateOrUpdateScheduleRequest(BaseModel): timezone: Annotated[str | None, Field(examples=['UTC'])] = None description: Annotated[str | None, Field(examples=['Schedule of actor ...'])] = None title: str | None = None + notifications: ScheduleNotifications | None = None actions: ( list[Annotated[ScheduleCreateActionRunActor | ScheduleCreateActionRunActorTask, Field(discriminator='type')]] | None @@ -835,23 +838,43 @@ class CreateOrUpdateScheduleRequest(BaseModel): @docs_group('Models') -class CreateOrUpdateVersionRequest(BaseModel): +class CreateTaskRequest(BaseModel): model_config = ConfigDict( extra='allow', populate_by_name=True, alias_generator=to_camel, ) - version_number: Annotated[ - str | None, Field(examples=['1.6'], pattern='^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])$') - ] = None + act_id: Annotated[str, Field(examples=['asADASadYvn4mBZmm'])] + name: Annotated[str | None, Field(examples=['my-task'])] = None + options: TaskOptions | None = None + input: TaskInput | list[TaskInput] | None = None + title: str | None = None + description: str | None = None + actor_standby: ActorStandby | None = None + public_config: TaskPublicConfig | None = None + """ + Configuration that controls how the published task appears on its public landing page. + Editing this object requires write permission to the Actor that the task belongs to. + + """ + + +@docs_group('Models') +class CreateVersionRequest(BaseModel): + model_config = ConfigDict( + extra='allow', + populate_by_name=True, + alias_generator=to_camel, + ) + version_number: Annotated[str, Field(examples=['1.6'], pattern='^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])$')] """ The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning. """ - source_type: VersionSourceType | None = None + source_type: WritableVersionSourceType """ Where the source code of the version lives. """ - env_vars: list[EnvVar] | None = None + env_vars: Annotated[list[EnvVarRequest] | None, Field(max_length=100)] = None """ Environment variables for the version. """ @@ -859,47 +882,39 @@ class CreateOrUpdateVersionRequest(BaseModel): """ Whether to inject the environment variables at build time. """ - build_tag: Annotated[str | None, Field(examples=['latest'])] = None + build_tag: Annotated[ + str | None, + Field( + examples=['latest'], + max_length=30, + min_length=1, + pattern='^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$', + ), + ] = None """ The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag. """ source_files: Annotated[list[SourceCodeFile | SourceCodeFolder] | None, Field(title='VersionSourceFiles')] = None """ - Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders. + Required when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders. """ - git_repo_url: str | None = None + git_repo_url: Annotated[str | None, Field(pattern='^(?:https?://|git@)?[^/|:]+[/:]')] = None """ - URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`. + URL of the Git repository to clone the source code from. Required when the `sourceType` is `GIT_REPO`. """ - tarball_url: str | None = None + tarball_url: Annotated[str | None, Field(pattern='^(?:[hH][tT][tT][pP][sS]?:)?//\\S+')] = None """ - URL of the tarball to download the source code from. Applies when the `sourceType` is `TARBALL`. - """ - github_gist_url: Annotated[str | None, Field(alias='gitHubGistUrl')] = None + URL of the tarball to download the source code from. Required when the `sourceType` is `TARBALL`. """ - URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`. - """ - - -@docs_group('Models') -class CreateTaskRequest(BaseModel): - model_config = ConfigDict( - extra='allow', - populate_by_name=True, - alias_generator=to_camel, - ) - act_id: Annotated[str, Field(examples=['asADASadYvn4mBZmm'])] - name: Annotated[str | None, Field(examples=['my-task'])] = None - options: TaskOptions | None = None - input: TaskInput | list[TaskInput] | None = None - title: str | None = None - description: str | None = None - actor_standby: ActorStandby | None = None - public_config: TaskPublicConfig | None = None + github_gist_url: Annotated[ + str | None, + Field( + alias='gitHubGistUrl', + pattern='^[hH][tT][tT][pP][sS]://[gG][iI][sS][tT]\\.[gG][iI][tT][hH][uU][bB]\\.[cC][oO][mM]/[A-Za-z0-9][A-Za-z0-9-]{0,38}/[0-9a-fA-F]{32}$', + ), + ] = None """ - Configuration that controls how the published task appears on its public landing page. - Editing this object requires write permission to the Actor that the task belongs to. - + URL of the GitHub Gist to clone the source code from. Required when the `sourceType` is `GITHUB_GIST`. """ @@ -1408,15 +1423,23 @@ class EnvVar(BaseModel): @docs_group('Models') -class EnvVarRequest(EnvVar): +class EnvVarRequest(BaseModel): model_config = ConfigDict( extra='allow', populate_by_name=True, alias_generator=to_camel, ) - value: Annotated[str, Field(examples=['my-value'])] + name: Annotated[str, Field(examples=['MY_ENV_VAR'], max_length=100, min_length=1, pattern='^[^=]*$')] """ - The value of the environment variable. If `isSecret` is `true`, this value isn't returned by the API. + The name of the environment variable. Can't contain `=`. + """ + value: Annotated[str, Field(examples=['my-value'], max_length=50000)] + """ + The value of the environment variable. + """ + is_secret: Annotated[bool | None, Field(examples=[False])] = None + """ + Whether the environment variable is encrypted. Secret values aren't returned by the API. """ @@ -1988,18 +2011,6 @@ class MonthlyUsageResponse(BaseModel): data: MonthlyUsage -@docs_group('Models') -class Notifications(BaseModel): - """Notification settings for this schedule.""" - - model_config = ConfigDict( - extra='allow', - populate_by_name=True, - alias_generator=to_camel, - ) - email: Annotated[bool | None, Field(examples=[True])] = None - - @docs_group('Models') class PaginationResponse(BaseModel): """Common pagination fields for list responses.""" @@ -3173,10 +3184,7 @@ class Schedule(ScheduleBase): ) description: Annotated[str | None, Field(examples=['Schedule of actor ...'])] = None title: str | None = None - notifications: Annotated[Notifications | None, Field(title='ScheduleNotifications')] = None - """ - Notification settings for this schedule. - """ + notifications: ScheduleNotifications | None = None actions: list[Annotated[ScheduleActionRunActor | ScheduleActionRunActorTask, Field(discriminator='type')]] @@ -3263,6 +3271,18 @@ class ScheduleLogResponse(BaseModel): data: list[ScheduleLogEntry] +@docs_group('Models') +class ScheduleNotifications(BaseModel): + """Notification settings for this schedule.""" + + model_config = ConfigDict( + extra='allow', + populate_by_name=True, + alias_generator=to_camel, + ) + email: Annotated[bool | None, Field(examples=[True])] = None + + @docs_group('Models') class ScheduleResponse(BaseModel): model_config = ConfigDict( @@ -3684,7 +3704,7 @@ class UpdateActorRequest(BaseModel): Human-readable name of the Actor, displayed in Apify Store and Console. Can contain spaces and capital letters. Recommended length is 40-50 characters. You can change this title without affecting the Actor's URL or SEO. """ restart_on_error: Annotated[bool | None, Field(deprecated=True, examples=[False])] = None - versions: list[CreateOrUpdateVersionRequest] | None = None + versions: Annotated[list[CreateVersionRequest] | None, Field(max_length=10, min_length=1)] = None """ An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration. """ @@ -3835,6 +3855,67 @@ class UpdateTaskRequest(BaseModel): """ +@docs_group('Models') +class UpdateVersionRequest(BaseModel): + model_config = ConfigDict( + extra='allow', + populate_by_name=True, + alias_generator=to_camel, + ) + version_number: Annotated[ + str | None, Field(examples=['1.6'], pattern='^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])$') + ] = None + """ + The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning. + """ + source_type: WritableVersionSourceType | None = None + """ + Where the source code of the version lives. + """ + env_vars: Annotated[list[EnvVarRequest] | None, Field(max_length=100)] = None + """ + Environment variables for the version. + """ + apply_env_vars_to_build: Annotated[bool | None, Field(examples=[False])] = None + """ + Whether to inject the environment variables at build time. + """ + build_tag: Annotated[ + str | None, + Field( + examples=['latest'], + max_length=30, + min_length=1, + pattern='^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$', + ), + ] = None + """ + The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag. + """ + source_files: Annotated[list[SourceCodeFile | SourceCodeFolder] | None, Field(title='VersionSourceFiles')] = None + """ + Required when the request sets `sourceType` to `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders. + """ + git_repo_url: Annotated[str | None, Field(pattern='^(?:https?://|git@)?[^/|:]+[/:]')] = None + """ + URL of the Git repository to clone the source code from. Required when the request sets `sourceType` to `GIT_REPO`. + """ + tarball_url: Annotated[str | None, Field(pattern='^(?:[hH][tT][tT][pP][sS]?:)?//\\S+')] = None + """ + URL of the tarball to download the source code from. Required when the request sets `sourceType` to `TARBALL`. + """ + github_gist_url: Annotated[ + str | None, + Field( + alias='gitHubGistUrl', + pattern='^[hH][tT][tT][pP][sS]://[gG][iI][sS][tT]\\.[gG][iI][tT][hH][uU][bB]\\.[cC][oO][mM]/[A-Za-z0-9][A-Za-z0-9-]{0,38}/[0-9a-fA-F]{32}$', + ), + ] = None + """ + URL of the GitHub Gist to clone the source code from. Required when the request sets `sourceType` to `GITHUB_GIST`. + """ + + @docs_group('Models') class UpdateWebhookRequest(BaseModel): model_config = ConfigDict( diff --git a/src/apify_client/_resource_clients/actor.py b/src/apify_client/_resource_clients/actor.py index 37b14a1e3..6bd06fbb3 100644 --- a/src/apify_client/_resource_clients/actor.py +++ b/src/apify_client/_resource_clients/actor.py @@ -12,7 +12,7 @@ ActorStandby, Build, BuildResponse, - CreateOrUpdateVersionRequest, + CreateVersionRequest, DefaultRunOptions, ExampleRunInput, FlatPricePerMonthActorPricingInfo, @@ -191,7 +191,7 @@ def update( description=description, seo_title=seo_title, seo_description=seo_description, - versions=[CreateOrUpdateVersionRequest.model_validate(v) for v in versions] if versions else None, + versions=[CreateVersionRequest.model_validate(v) for v in versions] if versions else None, is_public=is_public, is_deprecated=is_deprecated, categories=categories, @@ -751,7 +751,7 @@ async def update( description=description, seo_title=seo_title, seo_description=seo_description, - versions=[CreateOrUpdateVersionRequest.model_validate(v) for v in versions] if versions else None, + versions=[CreateVersionRequest.model_validate(v) for v in versions] if versions else None, is_public=is_public, is_deprecated=is_deprecated, categories=categories, diff --git a/src/apify_client/_resource_clients/actor_version.py b/src/apify_client/_resource_clients/actor_version.py index 497adfa03..503e610a2 100644 --- a/src/apify_client/_resource_clients/actor_version.py +++ b/src/apify_client/_resource_clients/actor_version.py @@ -6,10 +6,10 @@ from apify_client._docs import docs_group from apify_client._models import ( - CreateOrUpdateVersionRequest, EnvVarRequest, SourceCodeFile, SourceCodeFolder, + UpdateVersionRequest, Version, VersionResponse, ) @@ -102,7 +102,7 @@ def update( Returns: The updated Actor version. """ - version_fields = CreateOrUpdateVersionRequest( + version_fields = UpdateVersionRequest( build_tag=build_tag, env_vars=[EnvVarRequest.model_validate(v) for v in env_vars] if env_vars else None, apply_env_vars_to_build=apply_env_vars_to_build, @@ -218,7 +218,7 @@ async def update( Returns: The updated Actor version. """ - version_fields = CreateOrUpdateVersionRequest( + version_fields = UpdateVersionRequest( build_tag=build_tag, env_vars=[EnvVarRequest.model_validate(v) for v in env_vars] if env_vars else None, apply_env_vars_to_build=apply_env_vars_to_build, diff --git a/src/apify_client/_resource_clients/actor_version_collection.py b/src/apify_client/_resource_clients/actor_version_collection.py index 7a74277ed..9bed8fd53 100644 --- a/src/apify_client/_resource_clients/actor_version_collection.py +++ b/src/apify_client/_resource_clients/actor_version_collection.py @@ -6,7 +6,7 @@ from apify_client._docs import docs_group from apify_client._models import ( - CreateOrUpdateVersionRequest, + CreateVersionRequest, EnvVarRequest, ListOfVersions, ListOfVersionsResponse, @@ -117,7 +117,7 @@ def create( Returns: The created Actor version. """ - version_fields = CreateOrUpdateVersionRequest( + version_fields = CreateVersionRequest( version_number=version_number, build_tag=build_tag, env_vars=[EnvVarRequest.model_validate(v) for v in env_vars] if env_vars else None, @@ -223,7 +223,7 @@ async def create( Returns: The created Actor version. """ - version_fields = CreateOrUpdateVersionRequest( + version_fields = CreateVersionRequest( version_number=version_number, build_tag=build_tag, env_vars=[EnvVarRequest.model_validate(v) for v in env_vars] if env_vars else None, From 4ee38b2d07ce5fa3420026f188ecd1faf658a34a Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Mon, 19 Oct 2026 15:31:00 +0200 Subject: [PATCH 2/3] chore: regenerate models from the loosened apify/apify-docs#3087 --- src/apify_client/_models.py | 70 +++++++++++-------------------------- 1 file changed, 21 insertions(+), 49 deletions(-) diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 779b67c29..759c1430d 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -779,7 +779,7 @@ class CreateActorRequest(BaseModel): """ Human-readable name of the Actor, displayed in Apify Store and Console. Can contain spaces and capital letters. Recommended length is 40-50 characters. You can change this title without affecting the Actor's URL or SEO. """ - is_public: Literal[False] | None = None + is_public: Annotated[bool | None, Field(examples=[False])] = None """ Whether the Actor is available to users in Apify Store. A new Actor is always private. To publish it, build it first, then update it with `isPublic` set to `true`. """ @@ -874,7 +874,7 @@ class CreateVersionRequest(BaseModel): """ Where the source code of the version lives. """ - env_vars: Annotated[list[EnvVarRequest] | None, Field(max_length=100)] = None + env_vars: list[EnvVarRequest] | None = None """ Environment variables for the version. """ @@ -882,39 +882,25 @@ class CreateVersionRequest(BaseModel): """ Whether to inject the environment variables at build time. """ - build_tag: Annotated[ - str | None, - Field( - examples=['latest'], - max_length=30, - min_length=1, - pattern='^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$', - ), - ] = None + build_tag: Annotated[str | None, Field(examples=['latest'])] = None """ The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag. """ source_files: Annotated[list[SourceCodeFile | SourceCodeFolder] | None, Field(title='VersionSourceFiles')] = None """ - Required when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders. + Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders. """ - git_repo_url: Annotated[str | None, Field(pattern='^(?:https?://|git@)?[^/|:]+[/:]')] = None + git_repo_url: str | None = None """ - URL of the Git repository to clone the source code from. Required when the `sourceType` is `GIT_REPO`. + URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`. """ - tarball_url: Annotated[str | None, Field(pattern='^(?:[hH][tT][tT][pP][sS]?:)?//\\S+')] = None + tarball_url: str | None = None """ - URL of the tarball to download the source code from. Required when the `sourceType` is `TARBALL`. + URL of the tarball to download the source code from. Applies when the `sourceType` is `TARBALL`. """ - github_gist_url: Annotated[ - str | None, - Field( - alias='gitHubGistUrl', - pattern='^[hH][tT][tT][pP][sS]://[gG][iI][sS][tT]\\.[gG][iI][tT][hH][uU][bB]\\.[cC][oO][mM]/[A-Za-z0-9][A-Za-z0-9-]{0,38}/[0-9a-fA-F]{32}$', - ), - ] = None + github_gist_url: Annotated[str | None, Field(alias='gitHubGistUrl')] = None """ - URL of the GitHub Gist to clone the source code from. Required when the `sourceType` is `GITHUB_GIST`. + URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`. """ @@ -1429,11 +1415,11 @@ class EnvVarRequest(BaseModel): populate_by_name=True, alias_generator=to_camel, ) - name: Annotated[str, Field(examples=['MY_ENV_VAR'], max_length=100, min_length=1, pattern='^[^=]*$')] + name: Annotated[str, Field(examples=['MY_ENV_VAR'])] """ The name of the environment variable. Can't contain `=`. """ - value: Annotated[str, Field(examples=['my-value'], max_length=50000)] + value: Annotated[str, Field(examples=['my-value'])] """ The value of the environment variable. """ @@ -3872,7 +3858,7 @@ class UpdateVersionRequest(BaseModel): """ Where the source code of the version lives. """ - env_vars: Annotated[list[EnvVarRequest] | None, Field(max_length=100)] = None + env_vars: list[EnvVarRequest] | None = None """ Environment variables for the version. """ @@ -3880,39 +3866,25 @@ class UpdateVersionRequest(BaseModel): """ Whether to inject the environment variables at build time. """ - build_tag: Annotated[ - str | None, - Field( - examples=['latest'], - max_length=30, - min_length=1, - pattern='^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$', - ), - ] = None + build_tag: Annotated[str | None, Field(examples=['latest'])] = None """ The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag. """ source_files: Annotated[list[SourceCodeFile | SourceCodeFolder] | None, Field(title='VersionSourceFiles')] = None """ - Required when the request sets `sourceType` to `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders. + Applies when the `sourceType` is `SOURCE_FILES`. Represents the Actor's file structure as an array of files and folders. """ - git_repo_url: Annotated[str | None, Field(pattern='^(?:https?://|git@)?[^/|:]+[/:]')] = None + git_repo_url: str | None = None """ - URL of the Git repository to clone the source code from. Required when the request sets `sourceType` to `GIT_REPO`. + URL of the Git repository to clone the source code from. Applies when the `sourceType` is `GIT_REPO`. """ - tarball_url: Annotated[str | None, Field(pattern='^(?:[hH][tT][tT][pP][sS]?:)?//\\S+')] = None + tarball_url: str | None = None """ - URL of the tarball to download the source code from. Required when the request sets `sourceType` to `TARBALL`. + URL of the tarball to download the source code from. Applies when the `sourceType` is `TARBALL`. """ - github_gist_url: Annotated[ - str | None, - Field( - alias='gitHubGistUrl', - pattern='^[hH][tT][tT][pP][sS]://[gG][iI][sS][tT]\\.[gG][iI][tT][hH][uU][bB]\\.[cC][oO][mM]/[A-Za-z0-9][A-Za-z0-9-]{0,38}/[0-9a-fA-F]{32}$', - ), - ] = None + github_gist_url: Annotated[str | None, Field(alias='gitHubGistUrl')] = None """ - URL of the GitHub Gist to clone the source code from. Required when the request sets `sourceType` to `GITHUB_GIST`. + URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`. """ From cba2f3bd19d1ffe74eeff59d168e274aad33be2f Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Mon, 19 Oct 2026 15:33:17 +0200 Subject: [PATCH 3/3] chore: regenerate models without the version count cap --- src/apify_client/_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 759c1430d..7e1e2596b 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -793,7 +793,7 @@ class CreateActorRequest(BaseModel): Description of the Actor to display by search engines such as Google. Recommended length is 140-156 characters. """ restart_on_error: Annotated[bool | None, Field(deprecated=True, examples=[False])] = None - versions: Annotated[list[CreateVersionRequest] | None, Field(max_length=10, min_length=1)] = None + versions: Annotated[list[CreateVersionRequest] | None, Field(min_length=1)] = None """ An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration. """ @@ -3690,7 +3690,7 @@ class UpdateActorRequest(BaseModel): Human-readable name of the Actor, displayed in Apify Store and Console. Can contain spaces and capital letters. Recommended length is 40-50 characters. You can change this title without affecting the Actor's URL or SEO. """ restart_on_error: Annotated[bool | None, Field(deprecated=True, examples=[False])] = None - versions: Annotated[list[CreateVersionRequest] | None, Field(max_length=10, min_length=1)] = None + versions: Annotated[list[CreateVersionRequest] | None, Field(min_length=1)] = None """ An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration. """