From 1fcc47eee3d338f241ac39a9bd134f2f1ad02261 Mon Sep 17 00:00:00 2001 From: apify-service-account Date: Thu, 9 Apr 2026 09:58:46 +0000 Subject: [PATCH 1/3] [TODO]: update generated models from apify-docs PR #2403 --- src/apify_client/_models.py | 67 +++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 37 deletions(-) diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 13f39659..799e88ad 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: -# filename: https://docs.apify.com/api/openapi.json -# timestamp: 2026-04-09T08:30:29+00:00 +# filename: openapi.json +# timestamp: 2026-04-09T09:58:44+00:00 from __future__ import annotations @@ -139,8 +139,8 @@ class SourceCodeFile(BaseModel): extra='allow', populate_by_name=True, ) - format: SourceCodeFileFormat - content: Annotated[str, Field(examples=["console.log('This is the main.js file');"])] + format: SourceCodeFileFormat | None = None + content: Annotated[str | None, Field(examples=["console.log('This is the main.js file');"])] = None name: Annotated[str, Field(examples=['src/main.js'])] @@ -213,13 +213,6 @@ class CommonActorPricingInfo(BaseModel): reason_for_change: Annotated[str | None, Field(alias='reasonForChange')] = None -class PricingModel(StrEnum): - PAY_PER_EVENT = 'PAY_PER_EVENT' - PRICE_PER_DATASET_ITEM = 'PRICE_PER_DATASET_ITEM' - FLAT_PRICE_PER_MONTH = 'FLAT_PRICE_PER_MONTH' - FREE = 'FREE' - - class ActorChargeEvent(BaseModel): model_config = ConfigDict( extra='allow', @@ -636,6 +629,25 @@ class ActorNotFoundError(BaseModel): error: ActorNotFoundErrorDetail | None = None +class RecordOrTokenNotFoundErrorDetail(ErrorDetail): + model_config = ConfigDict( + extra='allow', + populate_by_name=True, + ) + type: Annotated[Literal['record-or-token-not-found'], Field(title='ErrorType')] = 'record-or-token-not-found' + """ + Machine-processable error type identifier. + """ + + +class RecordOrTokenNotFoundError(BaseModel): + model_config = ConfigDict( + extra='allow', + populate_by_name=True, + ) + error: RecordOrTokenNotFoundErrorDetail | None = None + + class RecordNotFoundErrorDetail(ErrorDetail): model_config = ConfigDict( extra='allow', @@ -1531,7 +1543,7 @@ class CreateTaskRequest(BaseModel): populate_by_name=True, ) act_id: Annotated[str, Field(alias='actId', examples=['asADASadYvn4mBZmm'])] - name: Annotated[str, Field(examples=['my-task'])] + name: Annotated[str | None, Field(examples=['my-task'])] = None options: TaskOptions | None = None input: TaskInput | None = None title: str | None = None @@ -1628,25 +1640,6 @@ class ChargeRunRequest(BaseModel): count: Annotated[int, Field(examples=[1])] -class RecordOrTokenNotFoundErrorDetail(ErrorDetail): - model_config = ConfigDict( - extra='allow', - populate_by_name=True, - ) - type: Annotated[Literal['record-or-token-not-found'], Field(title='ErrorType')] = 'record-or-token-not-found' - """ - Machine-processable error type identifier. - """ - - -class RecordOrTokenNotFoundError(BaseModel): - model_config = ConfigDict( - extra='allow', - populate_by_name=True, - ) - error: RecordOrTokenNotFoundErrorDetail | None = None - - class StorageOwnership(StrEnum): OWNED_BY_ME = 'ownedByMe' SHARED_WITH_ME = 'sharedWithMe' @@ -2324,7 +2317,7 @@ class RequestBase(BaseModel): """ A unique key used for request de-duplication. Requests with the same unique key are considered identical. """ - url: Annotated[AnyUrl | None, Field(examples=['https://apify.com'])] = None + url: Annotated[str | None, Field(examples=['https://apify.com'])] = None """ The URL of the request. """ @@ -2337,7 +2330,7 @@ class RequestBase(BaseModel): """ The final URL that was loaded, after redirects (if any). """ - payload: Annotated[dict[str, Any] | None, Field(examples=[None])] = None + payload: Annotated[str | dict[str, Any] | None, Field(examples=[None])] = None """ The request payload, typically used with POST or PUT requests. """ @@ -2400,7 +2393,7 @@ class RequestDraft(BaseModel): """ A unique key used for request de-duplication. Requests with the same unique key are considered identical. """ - url: Annotated[AnyUrl, Field(examples=['https://apify.com'])] + url: Annotated[str, Field(examples=['https://apify.com'])] """ The URL of the request. """ @@ -2699,7 +2692,7 @@ class HeadRequest(BaseModel): """ A unique key used for request de-duplication. Requests with the same unique key are considered identical. """ - url: Annotated[AnyUrl, Field(examples=['https://apify.com'])] + url: Annotated[str, Field(examples=['https://apify.com'])] """ The URL of the request. """ @@ -2760,7 +2753,7 @@ class LockedHeadRequest(BaseModel): """ A unique key used for request de-duplication. Requests with the same unique key are considered identical. """ - url: Annotated[AnyUrl, Field(examples=['https://apify.com'])] + url: Annotated[str, Field(examples=['https://apify.com'])] """ The URL of the request. """ @@ -2856,7 +2849,7 @@ class WebhookCreate(BaseModel): idempotency_key: Annotated[str | None, Field(alias='idempotencyKey', examples=['fdSJmdP3nfs7sfk3y'])] = None ignore_ssl_errors: Annotated[bool | None, Field(alias='ignoreSslErrors', examples=[False])] = None do_not_retry: Annotated[bool | None, Field(alias='doNotRetry', examples=[False])] = None - request_url: Annotated[AnyUrl, Field(alias='requestUrl', examples=['http://example.com/'])] + request_url: Annotated[str, Field(alias='requestUrl', examples=['http://example.com/'])] payload_template: Annotated[ str | None, Field(alias='payloadTemplate', examples=['{\\n "userId": {{userId}}...']) ] = None From 32b0babcfcc129b58632f9fadfb4ccb0e5f755a4 Mon Sep 17 00:00:00 2001 From: apify-service-account Date: Thu, 9 Apr 2026 10:39:57 +0000 Subject: [PATCH 2/3] [TODO]: update generated models from apify-docs PR #2403 --- src/apify_client/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 799e88ad..d65a14e4 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: openapi.json -# timestamp: 2026-04-09T09:58:44+00:00 +# timestamp: 2026-04-09T10:39:55+00:00 from __future__ import annotations From 53b8fd5879792c524ee29021a42a56afdfc7e106 Mon Sep 17 00:00:00 2001 From: apify-service-account Date: Fri, 10 Apr 2026 06:09:50 +0000 Subject: [PATCH 3/3] [TODO]: update generated models from apify-docs PR #2403 --- src/apify_client/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index d65a14e4..5cde5b68 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: openapi.json -# timestamp: 2026-04-09T10:39:55+00:00 +# timestamp: 2026-04-10T06:09:49+00:00 from __future__ import annotations