Skip to content

Commit 503d9d9

Browse files
feat: Add actor_path to Actor version models (#1210)
- Regenerates the Pydantic models, TypedDicts, and literal aliases from the [published OpenAPI specification](https://docs.apify.com/api/openapi.json), and records its version in `pyproject.toml`. - Specification version: `v2-2026-11-01T214220Z` -> `v2-2026-11-04T151257Z`.
1 parent 32df309 commit 503d9d9

2 files changed

Lines changed: 17 additions & 1 deletion

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-11-01T214220Z"
254+
version = "v2-2026-11-04T151257Z"
255255

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

‎src/apify_client/_models.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ class ActVersion(BaseModel):
9090
"""
9191
URL of the tarball or ZIP file, present when sourceType is TARBALL. Returned only to the Actor owner.
9292
"""
93+
actor_path: Annotated[str | None, Field(examples=['actors/typescript-actor'])] = None
94+
"""
95+
The Actor's directory inside the uploaded source, present when the version sets it. Applies when sourceType is SOURCE_FILES or TARBALL. On a TARBALL version, only users with write access to the Actor get it.
96+
"""
9397

9498

9599
@docs_group('Models')
@@ -1111,6 +1115,10 @@ class CreateVersionRequest(BaseModel):
11111115
"""
11121116
URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`.
11131117
"""
1118+
actor_path: Annotated[str | None, Field(examples=['actors/typescript-actor'], max_length=255, min_length=1)] = None
1119+
"""
1120+
The Actor's directory inside the uploaded source, as a path relative to the upload root with `/` separators, for example `actors/typescript-actor`. Applies when the `sourceType` is `SOURCE_FILES` or `TARBALL`. The API rejects a path when the `sourceType` is `GIT_REPO` or `GITHUB_GIST`. When omitted or `null`, the upload root is the Actor's directory. It has 1 to 255 characters, with no leading, trailing, or repeated `/` and no `.` or `..` segments.
1121+
"""
11141122

11151123

11161124
@docs_group('Models')
@@ -4745,6 +4753,10 @@ class UpdateVersionRequest(BaseModel):
47454753
"""
47464754
URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`.
47474755
"""
4756+
actor_path: Annotated[str | None, Field(examples=['actors/typescript-actor'], max_length=255, min_length=1)] = None
4757+
"""
4758+
The Actor's directory inside the uploaded source, as a path relative to the upload root with `/` separators, for example `actors/typescript-actor`. Applies when the `sourceType` is `SOURCE_FILES` or `TARBALL`. The API rejects it when the `sourceType` is `GIT_REPO` or `GITHUB_GIST`. On an update without `sourceType`, the API checks it against the version's stored source type. When the version has no `actorPath`, the upload root is the Actor's directory. It has 1 to 255 characters, with no leading, trailing, or repeated `/` and no `.` or `..` segments. An update that sends `sourceType`, `sourceFiles`, or `tarballUrl` without `actorPath` removes the stored `actorPath`, so send it again with every upload. An update of other fields, such as `envVars` or `buildTag`, keeps it. Send `null` to remove it.
4759+
"""
47484760

47494761

47504762
@docs_group('Models')
@@ -5000,6 +5012,10 @@ class Version(BaseModel):
50005012
"""
50015013
URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`.
50025014
"""
5015+
actor_path: Annotated[str | None, Field(examples=['actors/typescript-actor'], max_length=255, min_length=1)] = None
5016+
"""
5017+
The Actor's directory inside the uploaded source, as a path relative to the upload root with `/` separators, for example `actors/typescript-actor`. Applies when the `sourceType` is `SOURCE_FILES` or `TARBALL`. When absent or `null`, the upload root is the Actor's directory. On a `TARBALL` version, only users with write access to the Actor get it. It has 1 to 255 characters, with no leading, trailing, or repeated `/` and no `.` or `..` segments.
5018+
"""
50035019
github_webhook_id: int | None = None
50045020
"""
50055021
ID of the GitHub webhook that triggers a build on push. Present when build on push is enabled for a GitHub repository.

0 commit comments

Comments
 (0)