Skip to content

Commit db1ab98

Browse files
chore: Regenerate models from the published OpenAPI spec (#1168)
1 parent 4bfd88a commit db1ab98

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ keep_model_order = true
251251
# workflow committing nothing unless the models changed. A local regeneration that only moves this line is that
252252
# same case - drop it rather than committing it alone.
253253
[tool.apify.openapi-spec]
254-
version = "v2-2026-10-27T134926Z"
254+
version = "v2-2026-10-29T100357Z"
255255

256256
[tool.uv]
257257
# Minimal defense against supply-chain atatcks.

‎src/apify_client/_literals.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@
3030
"""Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions)."""
3131

3232

33+
Deployment = (
34+
Literal[
35+
'SINGLE_TENANT',
36+
'MULTI_TENANT_OWNER_PAID',
37+
'MULTI_TENANT_FREE_USERS',
38+
'MULTI_TENANT_PAYING_USERS',
39+
]
40+
| str
41+
)
42+
"""
43+
Which pool the Server Actor run serves. `SINGLE_TENANT` is a private instance in the caller's account.
44+
The `MULTI_TENANT_*` pools run in the Actor owner's account and serve many callers;
45+
charges in them require a `requestId` (see the charge endpoint).
46+
"""
47+
48+
3349
Encoding = (
3450
Literal[
3551
'utf-8',

‎src/apify_client/_models.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from apify_client._literals import (
1313
ActorJobStatus,
1414
ActorPermissionLevel,
15+
Deployment,
1516
Encoding,
1617
ErrorType,
1718
GeneralAccess,
@@ -3513,7 +3514,7 @@ class Run(BaseModel):
35133514
"""
35143515
standby: RunStandby | None = None
35153516
"""
3516-
Standby configuration of the run. `null` for runs that are not Actor Standby runs.
3517+
Server Actor deployment of this run, `null` for runs not started by a Server Actor request.
35173518
"""
35183519
integration_tracking: IntegrationTracking | None = None
35193520
"""
@@ -3772,10 +3773,11 @@ class RunStandby(BaseModel):
37723773
populate_by_name=True,
37733774
alias_generator=to_camel,
37743775
)
3775-
deployment: Annotated[str, Field(examples=['SINGLE_TENANT'])]
3776+
deployment: Annotated[Deployment, Field(examples=['MULTI_TENANT_PAYING_USERS'])]
37763777
"""
3777-
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.
3778-
The `MULTI_TENANT_*` values are runs in the Actor owner's account that serve requests from many users.
3778+
Which pool the Server Actor run serves. `SINGLE_TENANT` is a private instance in the caller's account.
3779+
The `MULTI_TENANT_*` pools run in the Actor owner's account and serve many callers;
3780+
charges in them require a `requestId` (see the charge endpoint).
37793781
37803782
"""
37813783

0 commit comments

Comments
 (0)