Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions src/apify_client/_internal_models.py

This file was deleted.

25 changes: 23 additions & 2 deletions src/apify_client/_models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: https://docs.apify.com/api/openapi.json
# timestamp: 2026-02-24T08:34:43+00:00
# filename: openapi.json
# timestamp: 2026-02-25T14:54:37+00:00

from __future__ import annotations

Expand Down Expand Up @@ -2884,3 +2884,24 @@ class UpdateLimitsRequest(BaseModel):
Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. [Lear more](https://docs.apify.com/platform/storage/usage#data-retention).

"""


class ActorJob(BaseModel):
"""Minimal model for an Actor job (run or build) with status. Used for validation during polling operations."""

model_config = ConfigDict(
extra='allow',
)
status: ActorJobStatus
"""
Current status of the Actor job.
"""


class ActorJobResponse(BaseModel):
"""Response wrapper for an Actor job (run or build). Used for minimal validation during polling operations."""

model_config = ConfigDict(
extra='allow',
)
data: ActorJob
2 changes: 1 addition & 1 deletion src/apify_client/_resource_clients/_resource_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

from apify_client._consts import DEFAULT_WAIT_FOR_FINISH, DEFAULT_WAIT_WHEN_JOB_NOT_EXIST, TERMINAL_STATUSES
from apify_client._docs import docs_group
from apify_client._internal_models import ActorJobResponse
from apify_client._logging import WithLogDetailsClient
from apify_client._models import ActorJobResponse
from apify_client._utils import catch_not_found_or_throw, response_to_dict, to_safe_id, to_seconds
from apify_client.errors import ApifyApiError

Expand Down