Skip to content

Commit 4e29f41

Browse files
[TODO]: update generated models from apify-docs PR #2561
1 parent 5b20a65 commit 4e29f41

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

src/apify_client/_models.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,20 @@ class ActVersion(BaseModel):
4040
extra='allow',
4141
populate_by_name=True,
4242
)
43+
source_type: Annotated[VersionSourceType | None, Field(alias='sourceType')] = None
44+
build_tag: Annotated[str | None, Field(alias='buildTag', examples=['experimental'])] = None
45+
version_number: Annotated[str | None, Field(alias='versionNumber', examples=['0.0'])] = None
4346
git_repo_url: Annotated[
4447
str | None,
4548
Field(alias='gitRepoUrl', examples=['https://github.com/apifytech/actor-crawler.git#experimental:web-scraper']),
4649
] = None
47-
source_type: Annotated[VersionSourceType | None, Field(alias='sourceType')] = None
48-
build_tag: Annotated[str | None, Field(alias='buildTag', examples=['experimental'])] = None
49-
version_number: Annotated[str | None, Field(alias='versionNumber', examples=['0.0'])] = None
50+
"""
51+
URL of the git repository, present when sourceType is GIT_REPO.
52+
"""
53+
source_files: Annotated[list[SourceCodeFile] | None, Field(alias='sourceFiles')] = None
54+
"""
55+
Inline source files, present when sourceType is SOURCE_FILES.
56+
"""
5057

5158

5259
@docs_group('Models')
@@ -466,7 +473,7 @@ class Build(BaseModel):
466473
] = None
467474
readme: Annotated[str | None, Field(deprecated=True, examples=['# Magic Actor\\nThis Actor is magic.'])] = None
468475
build_number: Annotated[str, Field(alias='buildNumber', examples=['0.1.1'])]
469-
act_version: Annotated[ActVersion | None, Field(alias='actVersion')] = None
476+
act_version: Annotated[ActVersion | None, Field(alias='actVersion', title='BuildActVersion')] = None
470477
"""
471478
Snapshot of the Actor version that this build was created from.
472479
"""
@@ -2928,7 +2935,7 @@ class Schedule(ScheduleBase):
29282935
)
29292936
description: Annotated[str | None, Field(examples=['Schedule of actor ...'])] = None
29302937
title: str | None = None
2931-
notifications: Notifications | None = None
2938+
notifications: Annotated[Notifications | None, Field(title='ScheduleNotifications')] = None
29322939
"""
29332940
Notification settings for this schedule.
29342941
"""
@@ -3112,10 +3119,6 @@ class StoreListActor(BaseModel):
31123119
url: Annotated[AnyUrl | None, Field(examples=['https://...'])] = None
31133120
stats: ActorStats
31143121
current_pricing_info: Annotated[CurrentPricingInfo, Field(alias='currentPricingInfo')]
3115-
is_white_listed_for_agentic_payment: Annotated[bool | None, Field(alias='isWhiteListedForAgenticPayment')] = None
3116-
"""
3117-
Whether the Actor is whitelisted for agentic payment processing.
3118-
"""
31193122
is_white_listed_for_agentic_payments: Annotated[bool | None, Field(alias='isWhiteListedForAgenticPayments')] = None
31203123
"""
31213124
Whether the Actor is whitelisted for agentic payment processing.
@@ -3625,7 +3628,7 @@ class Webhook1(BaseModel):
36253628
populate_by_name=True,
36263629
)
36273630
action_type: Annotated[str | None, Field(alias='actionType', examples=['HTTP_REQUEST'])] = None
3628-
condition: dict[str, Any] | None = None
3631+
condition: WebhookCondition | None = None
36293632
request_url: Annotated[AnyUrl | None, Field(alias='requestUrl', examples=['https://example.com/webhook'])] = None
36303633
is_ad_hoc: Annotated[bool | None, Field(alias='isAdHoc', examples=[False])] = None
36313634

@@ -3677,7 +3680,7 @@ class WebhookDispatch(BaseModel):
36773680
status: WebhookDispatchStatus
36783681
event_type: Annotated[WebhookEventType, Field(alias='eventType')]
36793682
event_data: Annotated[EventData | None, Field(alias='eventData', title='eventData')] = None
3680-
webhook: Annotated[Webhook1 | None, Field(title='webhook')] = None
3683+
webhook: Annotated[Webhook1 | None, Field(title='WebhookDispatchWebhookSummary')] = None
36813684
"""
36823685
A summary of the webhook that triggered this dispatch.
36833686
"""

0 commit comments

Comments
 (0)