From 1724a474877f1b99a6142a82a5a6385628baffed Mon Sep 17 00:00:00 2001 From: Apify Service Account <64261774+apify-service-account@users.noreply.github.com> Date: Mon, 24 Aug 2026 12:49:16 +0200 Subject: [PATCH] chore: Regenerate models from the published OpenAPI spec --- src/apify_client/_models.py | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 33c0ce63..f585509b 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -735,9 +735,10 @@ class CommonActorPricingInfo(BaseModel): populate_by_name=True, alias_generator=to_camel, ) - apify_margin_percentage: float + apify_margin_percentage: Annotated[float, Field(examples=[0.2])] """ - In [0, 1], fraction of pricePerUnitUsd that goes to Apify + Apify's share of the revenue generated under this pricing info record, as a fraction between 0 and 1. Set by the Apify platform. + """ created_at: AwareDatetime """ @@ -792,18 +793,6 @@ class CreateActorRequest(BaseModel): """ An array of `Version` objects. Each object represents a specific version of the Actor's source code: its location, builds, and environment configuration. """ - pricing_infos: ( - list[ - Annotated[ - PayPerEventActorPricingInfo - | PricePerDatasetItemActorPricingInfo - | FlatPricePerMonthActorPricingInfo - | FreeActorPricingInfo, - Field(discriminator='pricing_model'), - ] - ] - | None - ) = None 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. @@ -920,6 +909,10 @@ class CurrentPricingInfo(BaseModel): ) pricing_model: Annotated[str, Field(examples=['FREE'])] apify_margin_percentage: Annotated[float | None, Field(examples=[0.2])] = None + """ + Apify's share of the revenue generated under this pricing info record, as a fraction between 0 and 1. Set by the Apify platform. + + """ created_at: Annotated[AwareDatetime | None, Field(examples=['2023-01-01T00:00:00.000Z'])] = None started_at: Annotated[AwareDatetime | None, Field(examples=['2023-01-01T00:00:00.000Z'])] = None notified_about_change_at: Annotated[AwareDatetime | None, Field(examples=[None])] = None