|
24 | 24 | RunOrigin, |
25 | 25 | RunResponse, |
26 | 26 | UpdateActorRequest, |
27 | | - WebhookCreate, |
28 | 27 | ) |
29 | 28 | from apify_client._resource_clients._resource_client import ResourceClient, ResourceClientAsync |
30 | 29 | from apify_client._utils import encode_key_value_store_record_value, response_to_dict, to_seconds |
|
51 | 50 | WebhookCollectionClient, |
52 | 51 | WebhookCollectionClientAsync, |
53 | 52 | ) |
54 | | - from apify_client._typeddicts_generated import WebhookCreateDict |
55 | | - from apify_client._types import Timeout |
| 53 | + from apify_client._types import Timeout, WebhooksList |
56 | 54 |
|
57 | 55 | _PricingInfo = ( |
58 | 56 | PayPerEventActorPricingInfo |
@@ -231,7 +229,7 @@ def start( |
231 | 229 | run_timeout: timedelta | None = None, |
232 | 230 | force_permission_level: ActorPermissionLevel | None = None, |
233 | 231 | wait_for_finish: int | None = None, |
234 | | - webhooks: list[WebhookCreate] | list[WebhookCreateDict] | None = None, |
| 232 | + webhooks: WebhooksList | None = None, |
235 | 233 | timeout: Timeout = 'medium', |
236 | 234 | ) -> Run: |
237 | 235 | """Start the Actor and immediately return the Run object. |
@@ -305,7 +303,7 @@ def call( |
305 | 303 | restart_on_error: bool | None = None, |
306 | 304 | memory_mbytes: int | None = None, |
307 | 305 | run_timeout: timedelta | None = None, |
308 | | - webhooks: list[WebhookCreate] | list[WebhookCreateDict] | None = None, |
| 306 | + webhooks: WebhooksList | None = None, |
309 | 307 | force_permission_level: ActorPermissionLevel | None = None, |
310 | 308 | wait_duration: timedelta | None = None, |
311 | 309 | logger: Logger | None | Literal['default'] = 'default', |
@@ -727,7 +725,7 @@ async def start( |
727 | 725 | run_timeout: timedelta | None = None, |
728 | 726 | force_permission_level: ActorPermissionLevel | None = None, |
729 | 727 | wait_for_finish: int | None = None, |
730 | | - webhooks: list[WebhookCreate] | list[WebhookCreateDict] | None = None, |
| 728 | + webhooks: WebhooksList | None = None, |
731 | 729 | timeout: Timeout = 'medium', |
732 | 730 | ) -> Run: |
733 | 731 | """Start the Actor and immediately return the Run object. |
@@ -801,7 +799,7 @@ async def call( |
801 | 799 | restart_on_error: bool | None = None, |
802 | 800 | memory_mbytes: int | None = None, |
803 | 801 | run_timeout: timedelta | None = None, |
804 | | - webhooks: list[WebhookCreate] | list[WebhookCreateDict] | None = None, |
| 802 | + webhooks: WebhooksList | None = None, |
805 | 803 | force_permission_level: ActorPermissionLevel | None = None, |
806 | 804 | wait_duration: timedelta | None = None, |
807 | 805 | logger: Logger | None | Literal['default'] = 'default', |
|
0 commit comments