1- # generated by datamodel-codegen:
2- # filename: openapi.json
3- # timestamp: 2026-04-09T11:54:55+00:00
1+ # generated by datamodel-codegen
42
53from __future__ import annotations
64
@@ -152,8 +150,8 @@ class SourceCodeFile(BaseModel):
152150 extra = 'allow' ,
153151 populate_by_name = True ,
154152 )
155- format : SourceCodeFileFormat
156- content : Annotated [str , Field (examples = ["console.log('This is the main.js file');" ])]
153+ format : SourceCodeFileFormat | None = None
154+ content : Annotated [str | None , Field (examples = ["console.log('This is the main.js file');" ])] = None
157155 name : Annotated [str , Field (examples = ['src/main.js' ])]
158156
159157
@@ -229,14 +227,6 @@ class CommonActorPricingInfo(BaseModel):
229227 reason_for_change : Annotated [str | None , Field (alias = 'reasonForChange' )] = None
230228
231229
232- @docs_group ('Models' )
233- class PricingModel (StrEnum ):
234- PAY_PER_EVENT = 'PAY_PER_EVENT'
235- PRICE_PER_DATASET_ITEM = 'PRICE_PER_DATASET_ITEM'
236- FLAT_PRICE_PER_MONTH = 'FLAT_PRICE_PER_MONTH'
237- FREE = 'FREE'
238-
239-
240230@docs_group ('Models' )
241231class ActorChargeEvent (BaseModel ):
242232 model_config = ConfigDict (
@@ -679,6 +669,27 @@ class ActorNotFoundError(BaseModel):
679669 error : ActorNotFoundErrorDetail | None = None
680670
681671
672+ @docs_group ('Models' )
673+ class RecordOrTokenNotFoundErrorDetail (ErrorDetail ):
674+ model_config = ConfigDict (
675+ extra = 'allow' ,
676+ populate_by_name = True ,
677+ )
678+ type : Annotated [Literal ['record-or-token-not-found' ], Field (title = 'ErrorType' )] = 'record-or-token-not-found'
679+ """
680+ Machine-processable error type identifier.
681+ """
682+
683+
684+ @docs_group ('Models' )
685+ class RecordOrTokenNotFoundError (BaseModel ):
686+ model_config = ConfigDict (
687+ extra = 'allow' ,
688+ populate_by_name = True ,
689+ )
690+ error : RecordOrTokenNotFoundErrorDetail | None = None
691+
692+
682693@docs_group ('Models' )
683694class RecordNotFoundErrorDetail (ErrorDetail ):
684695 model_config = ConfigDict (
@@ -1632,7 +1643,7 @@ class CreateTaskRequest(BaseModel):
16321643 populate_by_name = True ,
16331644 )
16341645 act_id : Annotated [str , Field (alias = 'actId' , examples = ['asADASadYvn4mBZmm' ])]
1635- name : Annotated [str , Field (examples = ['my-task' ])]
1646+ name : Annotated [str | None , Field (examples = ['my-task' ])] = None
16361647 options : TaskOptions | None = None
16371648 input : TaskInput | None = None
16381649 title : str | None = None
@@ -1735,27 +1746,6 @@ class ChargeRunRequest(BaseModel):
17351746 count : Annotated [int , Field (examples = [1 ])]
17361747
17371748
1738- @docs_group ('Models' )
1739- class RecordOrTokenNotFoundErrorDetail (ErrorDetail ):
1740- model_config = ConfigDict (
1741- extra = 'allow' ,
1742- populate_by_name = True ,
1743- )
1744- type : Annotated [Literal ['record-or-token-not-found' ], Field (title = 'ErrorType' )] = 'record-or-token-not-found'
1745- """
1746- Machine-processable error type identifier.
1747- """
1748-
1749-
1750- @docs_group ('Models' )
1751- class RecordOrTokenNotFoundError (BaseModel ):
1752- model_config = ConfigDict (
1753- extra = 'allow' ,
1754- populate_by_name = True ,
1755- )
1756- error : RecordOrTokenNotFoundErrorDetail | None = None
1757-
1758-
17591749@docs_group ('Models' )
17601750class StorageOwnership (StrEnum ):
17611751 OWNED_BY_ME = 'ownedByMe'
@@ -2475,7 +2465,7 @@ class RequestBase(BaseModel):
24752465 """
24762466 A unique key used for request de-duplication. Requests with the same unique key are considered identical.
24772467 """
2478- url : Annotated [AnyUrl | None , Field (examples = ['https://apify.com' ])] = None
2468+ url : Annotated [str | None , Field (examples = ['https://apify.com' ])] = None
24792469 """
24802470 The URL of the request.
24812471 """
@@ -2488,7 +2478,7 @@ class RequestBase(BaseModel):
24882478 """
24892479 The final URL that was loaded, after redirects (if any).
24902480 """
2491- payload : Annotated [dict [str , Any ] | None , Field (examples = [None ])] = None
2481+ payload : Annotated [str | dict [str , Any ] | None , Field (examples = [None ])] = None
24922482 """
24932483 The request payload, typically used with POST or PUT requests.
24942484 """
@@ -2553,7 +2543,7 @@ class RequestDraft(BaseModel):
25532543 """
25542544 A unique key used for request de-duplication. Requests with the same unique key are considered identical.
25552545 """
2556- url : Annotated [AnyUrl , Field (examples = ['https://apify.com' ])]
2546+ url : Annotated [str , Field (examples = ['https://apify.com' ])]
25572547 """
25582548 The URL of the request.
25592549 """
@@ -2872,7 +2862,7 @@ class HeadRequest(BaseModel):
28722862 """
28732863 A unique key used for request de-duplication. Requests with the same unique key are considered identical.
28742864 """
2875- url : Annotated [AnyUrl , Field (examples = ['https://apify.com' ])]
2865+ url : Annotated [str , Field (examples = ['https://apify.com' ])]
28762866 """
28772867 The URL of the request.
28782868 """
@@ -2936,7 +2926,7 @@ class LockedHeadRequest(BaseModel):
29362926 """
29372927 A unique key used for request de-duplication. Requests with the same unique key are considered identical.
29382928 """
2939- url : Annotated [AnyUrl , Field (examples = ['https://apify.com' ])]
2929+ url : Annotated [str , Field (examples = ['https://apify.com' ])]
29402930 """
29412931 The URL of the request.
29422932 """
@@ -3037,7 +3027,7 @@ class WebhookCreate(BaseModel):
30373027 idempotency_key : Annotated [str | None , Field (alias = 'idempotencyKey' , examples = ['fdSJmdP3nfs7sfk3y' ])] = None
30383028 ignore_ssl_errors : Annotated [bool | None , Field (alias = 'ignoreSslErrors' , examples = [False ])] = None
30393029 do_not_retry : Annotated [bool | None , Field (alias = 'doNotRetry' , examples = [False ])] = None
3040- request_url : Annotated [AnyUrl , Field (alias = 'requestUrl' , examples = ['http://example.com/' ])]
3030+ request_url : Annotated [str , Field (alias = 'requestUrl' , examples = ['http://example.com/' ])]
30413031 payload_template : Annotated [
30423032 str | None , Field (alias = 'payloadTemplate' , examples = ['{\\ n "userId": {{userId}}...' ])
30433033 ] = None
0 commit comments