From 9d8c8515fd3752df08e61c2d59806b76d4a67363 Mon Sep 17 00:00:00 2001 From: Apify Service Account <64261774+apify-service-account@users.noreply.github.com> Date: Thu, 29 Oct 2026 14:29:00 +0100 Subject: [PATCH] chore: Regenerate models from the published OpenAPI spec --- pyproject.toml | 2 +- src/apify_client/_literals.py | 16 ++++++++++++++++ src/apify_client/_models.py | 10 ++++++---- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4597333b..4a4597b6 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-27T134926Z" +version = "v2-2026-10-29T100357Z" [tool.uv] # Minimal defense against supply-chain atatcks. diff --git a/src/apify_client/_literals.py b/src/apify_client/_literals.py index 9f22ad23..de56efd5 100644 --- a/src/apify_client/_literals.py +++ b/src/apify_client/_literals.py @@ -30,6 +30,22 @@ """Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions).""" +Deployment = ( + Literal[ + 'SINGLE_TENANT', + 'MULTI_TENANT_OWNER_PAID', + 'MULTI_TENANT_FREE_USERS', + 'MULTI_TENANT_PAYING_USERS', + ] + | str +) +""" +Which pool the Server Actor run serves. `SINGLE_TENANT` is a private instance in the caller's account. +The `MULTI_TENANT_*` pools run in the Actor owner's account and serve many callers; +charges in them require a `requestId` (see the charge endpoint). +""" + + Encoding = ( Literal[ 'utf-8', diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 57de055f..50046605 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -12,6 +12,7 @@ from apify_client._literals import ( ActorJobStatus, ActorPermissionLevel, + Deployment, Encoding, ErrorType, GeneralAccess, @@ -3513,7 +3514,7 @@ class Run(BaseModel): """ standby: RunStandby | None = None """ - Standby configuration of the run. `null` for runs that are not Actor Standby runs. + Server Actor deployment of this run, `null` for runs not started by a Server Actor request. """ integration_tracking: IntegrationTracking | None = None """ @@ -3772,10 +3773,11 @@ class RunStandby(BaseModel): populate_by_name=True, alias_generator=to_camel, ) - deployment: Annotated[str, Field(examples=['SINGLE_TENANT'])] + deployment: Annotated[Deployment, Field(examples=['MULTI_TENANT_PAYING_USERS'])] """ - How the Standby run is deployed: `SINGLE_TENANT`, `MULTI_TENANT_FREE_USERS`, `MULTI_TENANT_PAYING_USERS` or `MULTI_TENANT_OWNER_PAID`. `SINGLE_TENANT` is a private instance in the user's account. - The `MULTI_TENANT_*` values are runs in the Actor owner's account that serve requests from many users. + Which pool the Server Actor run serves. `SINGLE_TENANT` is a private instance in the caller's account. + The `MULTI_TENANT_*` pools run in the Actor owner's account and serve many callers; + charges in them require a `requestId` (see the charge endpoint). """