Skip to content
Merged
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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-08T073338Z"
version = "v2-2026-10-20T095308Z"

[tool.uv]
# Minimal defense against supply-chain atatcks.
Expand Down
9 changes: 9 additions & 0 deletions src/apify_client/_literals.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
'final-invoice-negative',
'full-permission-actor-blocked-for-admin',
'full-permission-actor-not-approved',
'full-permissions-require-verified-owner',
'github-branch-empty',
'github-issue-already-exists',
'github-public-key-not-found',
Expand All @@ -176,6 +177,7 @@
'input-json-not-object',
'input-json-too-long',
'input-update-collision',
'input-validation-timed-out',
'insufficient-permissions',
'insufficient-permissions-to-change-field',
'insufficient-security-measures',
Expand Down Expand Up @@ -247,6 +249,7 @@
'max-metamorphs-exceeded',
'max-total-charge-usd-below-minimum',
'max-total-charge-usd-must-be-greater-than-zero',
'mcp-connector-actor-not-allowed',
'method-not-allowed',
'migration-disabled',
'missing-actor-rights',
Expand All @@ -261,6 +264,7 @@
'missing-settings',
'missing-username',
'monthly-usage-limit-too-low',
'more-public-actors-require-verified-owner',
'more-than-one-update-not-allowed',
'multiple-records-found',
'must-be-admin',
Expand Down Expand Up @@ -313,6 +317,7 @@
'query-timeout',
'quoted-price-outdated',
'rate-limit-exceeded',
'readme-required',
'recaptcha-invalid',
'recaptcha-required',
'record-not-found',
Expand Down Expand Up @@ -341,11 +346,13 @@
'schema-validation',
'schema-validation-error',
'schema-validation-failed',
'schemas-required',
'service-worker-registration-not-allowed',
'sign-up-method-not-allowed',
'slack-integration-not-custom',
'socket-closed',
'socket-destroyed',
'standby-deployment-invalid',
'store-schema-invalid',
'store-terms-not-accepted',
'stripe-enabled',
Expand All @@ -367,6 +374,8 @@
'too-many-mcp-connectors',
'too-many-o-auth-apps',
'too-many-organizations',
'too-many-public-actor-tasks-per-account',
'too-many-public-actor-tasks-per-actor',
'too-many-requests',
'too-many-schedules',
'too-many-ui-access-keys',
Expand Down
24 changes: 16 additions & 8 deletions src/apify_client/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class ActVersion(BaseModel):
)
source_type: VersionSourceType | None = None
build_tag: Annotated[str | None, Field(examples=['experimental'])] = None
"""
The build tag of the Actor version this build was created from. Can be `null` when the version has no build tag, in which case the build is tagged on success only if the `tag` parameter was passed when starting it.
"""
version_number: Annotated[
str | None, Field(examples=['0.0'], pattern='^([0-9]|[1-9][0-9])\\.([0-9]|[1-9][0-9])$')
] = None
Expand Down Expand Up @@ -260,6 +263,9 @@ class ActorResource(BaseModel):
]
| None
) = None
"""
The Actor's pricing records, including past ones.
"""
default_run_options: DefaultRunOptions
example_run_input: ExampleRunInput | None = None
is_deprecated: Annotated[bool | None, Field(examples=[False])] = None
Expand Down Expand Up @@ -947,9 +953,6 @@ class CurrentPricingInfo(BaseModel):
bool | None, Field(alias='isPPEPlatformUsagePaidByUser', examples=[False])
] = None
reason_for_change: Annotated[str | None, Field(examples=[None])] = None
trial_minutes: Annotated[int | None, Field(examples=[None])] = None
unit_name: Annotated[str | None, Field(examples=[None])] = None
price_per_unit_usd: Annotated[float | None, Field(examples=[None])] = None
minimal_max_total_charge_usd: Annotated[float | None, Field(examples=[0.5])] = None
pricing_per_event: dict[str, Any] | None = None
"""
Expand Down Expand Up @@ -1495,6 +1498,8 @@ class ExampleRunInput(BaseModel):

@docs_group('Models')
class FlatPricePerMonthActorPricingInfo(CommonActorPricingInfo):
"""Rental pricing model, which is no longer supported."""

model_config = ConfigDict(
extra='allow',
populate_by_name=True,
Expand All @@ -1503,11 +1508,11 @@ class FlatPricePerMonthActorPricingInfo(CommonActorPricingInfo):
pricing_model: Literal['FLAT_PRICE_PER_MONTH']
trial_minutes: int
"""
For how long this Actor can be used for free in trial period
Number of minutes a user could run the Actor for free before having to rent it. Apify no longer offers rental pricing, so you can see this field only in pricing history and in runs started before rented Actors moved to other pricing models.
"""
price_per_unit_usd: float
"""
Monthly flat price in USD
Monthly flat price in USD. Apify no longer offers rental pricing, so you can see this field only in pricing history and in runs started before rented Actors moved to other pricing models.
"""


Expand Down Expand Up @@ -2901,11 +2906,11 @@ class Run(BaseModel):
"""
usage_total_usd: Annotated[float | None, Field(examples=[0.2654])] = None
"""
Total cost in USD for this run. Represents what you actually pay. For run owners: includes platform usage (compute units) and/or event costs depending on the Actor's pricing model. For run non-owners: only available for Pay-Per-Event Actors (event costs only). Requires authentication token to access.
Total cost in USD for this run. Represents what you actually pay. For run owners: includes platform usage (compute units) and/or event costs depending on the Actor's pricing model. For run non-owners: only available for pay-per-event Actors (event costs only). Requires authentication token to access.
"""
usage_usd: RunUsageUsd | None = None
"""
Platform usage costs breakdown in USD. Only present if you own the run AND are paying for platform usage (Pay-Per-Usage, Rental, or Pay-Per-Event with usage costs like standby Actors). Not available for standard Pay-Per-Event Actors. Requires authentication token to access.
Platform usage costs breakdown in USD. Only present if you own the run and are paying for platform usage (pay-per-usage or pay-per-event with usage costs like Standby Actors). Not available for standard pay-per-event Actors. Requires authentication token to access.
"""
metamorphs: list[RunMetamorphEvent] | None = None
"""
Expand Down Expand Up @@ -3518,7 +3523,7 @@ class TaskPublicConfig(BaseModel):
"""
Time when the task was published, or `null` if the task isn't published.
This field is server-controlled. To publish or unpublish a task, use the
[Update task](https://docs.apify.com/api/v2/actor-task-put) endpoint and set `isPublic`.
[Update Actor task](https://docs.apify.com/api/v2/actor-task-put) endpoint and set `isPublic`.

"""
seo_title: Annotated[str | None, Field(examples=['Scrape data from a website'], max_length=60)] = None
Expand Down Expand Up @@ -3706,6 +3711,9 @@ class UpdateActorRequest(BaseModel):
]
| None
) = None
"""
The Actor's pricing records. You can't add the `FLAT_PRICE_PER_MONTH` or `PRICE_PER_DATASET_ITEM` records, because these pricing models are no longer supported.
"""
categories: Annotated[list[str] | None, Field(examples=[['SOCIAL_MEDIA']])] = None
"""
A list of categories that best define the Actor. Reflected in Apify Store's search and filtering options.
Expand Down
Loading