Skip to content

Commit 0c5112e

Browse files
chore: update generated models from apify-docs PR #2467 (#764)
This PR updates the auto-generated Pydantic models and TypedDicts based on OpenAPI specification changes in [apify-docs PR #2467](apify/apify-docs#2467). --------- Co-authored-by: apify-service-account <apify-service-account@users.noreply.github.com> Co-authored-by: Josef Prochazka <josef.prochazka@apify.com>
1 parent 2f09830 commit 0c5112e

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/apify_client/_models_generated.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,6 +1897,15 @@ class ListOfVersionsResponse(BaseModel):
18971897
data: ListOfVersions
18981898

18991899

1900+
@docs_group('Models')
1901+
class ListOfWebhookDispatchesResponse(BaseModel):
1902+
model_config = ConfigDict(
1903+
extra='allow',
1904+
populate_by_name=True,
1905+
)
1906+
data: ListOfWebhookDispatches
1907+
1908+
19001909
@docs_group('Models')
19011910
class ListOfWebhooksResponse(BaseModel):
19021911
model_config = ConfigDict(
@@ -3906,15 +3915,6 @@ class WebhookDispatch(BaseModel):
39063915
calls: Annotated[list[Call] | None, Field(title='calls')] = None
39073916

39083917

3909-
@docs_group('Models')
3910-
class WebhookDispatchList(BaseModel):
3911-
model_config = ConfigDict(
3912-
extra='allow',
3913-
populate_by_name=True,
3914-
)
3915-
data: ListOfWebhookDispatches | None = None
3916-
3917-
39183918
@docs_group('Models')
39193919
class WebhookDispatchResponse(BaseModel):
39203920
model_config = ConfigDict(

src/apify_client/_resource_clients/webhook_dispatch_collection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import TYPE_CHECKING, Any
44

55
from apify_client._docs import docs_group
6-
from apify_client._models_generated import ListOfWebhookDispatches, WebhookDispatchList
6+
from apify_client._models_generated import ListOfWebhookDispatches, ListOfWebhookDispatchesResponse
77
from apify_client._resource_clients._resource_client import ResourceClient, ResourceClientAsync
88

99
if TYPE_CHECKING:
@@ -51,7 +51,7 @@ def list(
5151
The retrieved webhook dispatches of a user.
5252
"""
5353
result = self._list(timeout=timeout, limit=limit, offset=offset, desc=desc)
54-
return WebhookDispatchList.model_validate(result).data
54+
return ListOfWebhookDispatchesResponse.model_validate(result).data
5555

5656

5757
@docs_group('Resource clients')
@@ -95,4 +95,4 @@ async def list(
9595
The retrieved webhook dispatches of a user.
9696
"""
9797
result = await self._list(timeout=timeout, limit=limit, offset=offset, desc=desc)
98-
return WebhookDispatchList.model_validate(result).data
98+
return ListOfWebhookDispatchesResponse.model_validate(result).data

0 commit comments

Comments
 (0)