Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/apify_client/_models_generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -1897,6 +1897,15 @@ class ListOfVersionsResponse(BaseModel):
data: ListOfVersions


@docs_group('Models')
class ListOfWebhookDispatchesResponse(BaseModel):
model_config = ConfigDict(
extra='allow',
populate_by_name=True,
)
data: ListOfWebhookDispatches


@docs_group('Models')
class ListOfWebhooksResponse(BaseModel):
model_config = ConfigDict(
Expand Down Expand Up @@ -3906,15 +3915,6 @@ class WebhookDispatch(BaseModel):
calls: Annotated[list[Call] | None, Field(title='calls')] = None


@docs_group('Models')
class WebhookDispatchList(BaseModel):
model_config = ConfigDict(
extra='allow',
populate_by_name=True,
)
data: ListOfWebhookDispatches | None = None


@docs_group('Models')
class WebhookDispatchResponse(BaseModel):
model_config = ConfigDict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import TYPE_CHECKING, Any

from apify_client._docs import docs_group
from apify_client._models_generated import ListOfWebhookDispatches, WebhookDispatchList
from apify_client._models_generated import ListOfWebhookDispatches, ListOfWebhookDispatchesResponse
from apify_client._resource_clients._resource_client import ResourceClient, ResourceClientAsync

if TYPE_CHECKING:
Expand Down Expand Up @@ -51,7 +51,7 @@ def list(
The retrieved webhook dispatches of a user.
"""
result = self._list(timeout=timeout, limit=limit, offset=offset, desc=desc)
return WebhookDispatchList.model_validate(result).data
return ListOfWebhookDispatchesResponse.model_validate(result).data


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