From 1e36120c4210a201018f8fd52d6ceb11e45b9a7b Mon Sep 17 00:00:00 2001 From: Apify Service Account <64261774+apify-service-account@users.noreply.github.com> Date: Wed, 4 Nov 2026 16:08:38 +0000 Subject: [PATCH] chore: Regenerate models from the published OpenAPI spec --- pyproject.toml | 2 +- src/apify_client/_models.py | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4a4597b6..0c5e7c81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -251,7 +251,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-10-29T100357Z" +version = "v2-2026-11-01T214220Z" [tool.uv] # Minimal defense against supply-chain atatcks. diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 8eb4c552..577e8b9a 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -494,17 +494,21 @@ class ActorStandby(BaseModel): """ Whether to pass the Actor's input to the standby run. If `false`, the standby runs start with no input. """ - tenancy: Annotated[str | None, Field(examples=['SINGLE_TENANT'])] = None + tenancy: Annotated[Tenancy | None, Field(examples=['SINGLE_TENANT'])] = None """ - Whether each user gets their own standby runs (`SINGLE_TENANT`) or runs are shared across users (`MULTI_TENANT`). Set by Apify. + Whether each user gets their own standby runs (`SINGLE_TENANT`) or runs are shared across users (`MULTI_TENANT`). """ is_console_auth_enabled: bool | None = None """ - Whether standby requests can be authenticated with an Apify Console session. Set by Apify. + Whether standby requests can be authenticated with an Apify Console session. + When creating an Actor, omit this field or set it to `false`. When updating an Actor, only Apify administrators can change it; other users can only send the current value, or `false` if it's not set yet. + """ is_tokenless_enabled: bool | None = None """ - Whether standby requests can be made without an API token. Set by Apify. + Whether standby requests can be made without an API token. + When creating an Actor, omit this field or set it to `false`. When updating an Actor, only Apify administrators can change it; other users can only send the current value, or `false` if it's not set yet. + """ @@ -4413,6 +4417,15 @@ class TaskStats(BaseModel): """ +@docs_group('Models') +class Tenancy(Enum): + """Whether each user gets their own standby runs (`SINGLE_TENANT`) or runs are shared across users (`MULTI_TENANT`).""" + + SINGLE_TENANT = 'SINGLE_TENANT' + MULTI_TENANT = 'MULTI_TENANT' + NONE_TYPE_NONE = None + + @docs_group('Models') class TieredPricing(BaseModel): model_config = ConfigDict(