|
35 | 35 | ) |
36 | 36 |
|
37 | 37 | if TYPE_CHECKING: |
38 | | - from .resources import ai, web, news, batch, brand, parse, people, utility, industry, monitors |
| 38 | + from .resources import ai, web, news, batch, brand, parse, people, utility, industry, monitors, webhooks |
39 | 39 | from .resources.ai import AIResource, AsyncAIResource |
40 | 40 | from .resources.web import WebResource, AsyncWebResource |
41 | 41 | from .resources.news import NewsResource, AsyncNewsResource |
|
46 | 46 | from .resources.utility import UtilityResource, AsyncUtilityResource |
47 | 47 | from .resources.industry import IndustryResource, AsyncIndustryResource |
48 | 48 | from .resources.monitors import MonitorsResource, AsyncMonitorsResource |
| 49 | + from .resources.webhooks.webhooks import WebhooksResource, AsyncWebhooksResource |
49 | 50 |
|
50 | 51 | __all__ = [ |
51 | 52 | "Timeout", |
@@ -175,6 +176,12 @@ def batch(self) -> BatchResource: |
175 | 176 |
|
176 | 177 | return BatchResource(self) |
177 | 178 |
|
| 179 | + @cached_property |
| 180 | + def webhooks(self) -> WebhooksResource: |
| 181 | + from .resources.webhooks import WebhooksResource |
| 182 | + |
| 183 | + return WebhooksResource(self) |
| 184 | + |
178 | 185 | @cached_property |
179 | 186 | def people(self) -> PeopleResource: |
180 | 187 | from .resources.people import PeopleResource |
@@ -417,6 +424,12 @@ def batch(self) -> AsyncBatchResource: |
417 | 424 |
|
418 | 425 | return AsyncBatchResource(self) |
419 | 426 |
|
| 427 | + @cached_property |
| 428 | + def webhooks(self) -> AsyncWebhooksResource: |
| 429 | + from .resources.webhooks import AsyncWebhooksResource |
| 430 | + |
| 431 | + return AsyncWebhooksResource(self) |
| 432 | + |
420 | 433 | @cached_property |
421 | 434 | def people(self) -> AsyncPeopleResource: |
422 | 435 | from .resources.people import AsyncPeopleResource |
@@ -601,6 +614,12 @@ def batch(self) -> batch.BatchResourceWithRawResponse: |
601 | 614 |
|
602 | 615 | return BatchResourceWithRawResponse(self._client.batch) |
603 | 616 |
|
| 617 | + @cached_property |
| 618 | + def webhooks(self) -> webhooks.WebhooksResourceWithRawResponse: |
| 619 | + from .resources.webhooks import WebhooksResourceWithRawResponse |
| 620 | + |
| 621 | + return WebhooksResourceWithRawResponse(self._client.webhooks) |
| 622 | + |
604 | 623 | @cached_property |
605 | 624 | def people(self) -> people.PeopleResourceWithRawResponse: |
606 | 625 | from .resources.people import PeopleResourceWithRawResponse |
@@ -673,6 +692,12 @@ def batch(self) -> batch.AsyncBatchResourceWithRawResponse: |
673 | 692 |
|
674 | 693 | return AsyncBatchResourceWithRawResponse(self._client.batch) |
675 | 694 |
|
| 695 | + @cached_property |
| 696 | + def webhooks(self) -> webhooks.AsyncWebhooksResourceWithRawResponse: |
| 697 | + from .resources.webhooks import AsyncWebhooksResourceWithRawResponse |
| 698 | + |
| 699 | + return AsyncWebhooksResourceWithRawResponse(self._client.webhooks) |
| 700 | + |
676 | 701 | @cached_property |
677 | 702 | def people(self) -> people.AsyncPeopleResourceWithRawResponse: |
678 | 703 | from .resources.people import AsyncPeopleResourceWithRawResponse |
@@ -745,6 +770,12 @@ def batch(self) -> batch.BatchResourceWithStreamingResponse: |
745 | 770 |
|
746 | 771 | return BatchResourceWithStreamingResponse(self._client.batch) |
747 | 772 |
|
| 773 | + @cached_property |
| 774 | + def webhooks(self) -> webhooks.WebhooksResourceWithStreamingResponse: |
| 775 | + from .resources.webhooks import WebhooksResourceWithStreamingResponse |
| 776 | + |
| 777 | + return WebhooksResourceWithStreamingResponse(self._client.webhooks) |
| 778 | + |
748 | 779 | @cached_property |
749 | 780 | def people(self) -> people.PeopleResourceWithStreamingResponse: |
750 | 781 | from .resources.people import PeopleResourceWithStreamingResponse |
@@ -817,6 +848,12 @@ def batch(self) -> batch.AsyncBatchResourceWithStreamingResponse: |
817 | 848 |
|
818 | 849 | return AsyncBatchResourceWithStreamingResponse(self._client.batch) |
819 | 850 |
|
| 851 | + @cached_property |
| 852 | + def webhooks(self) -> webhooks.AsyncWebhooksResourceWithStreamingResponse: |
| 853 | + from .resources.webhooks import AsyncWebhooksResourceWithStreamingResponse |
| 854 | + |
| 855 | + return AsyncWebhooksResourceWithStreamingResponse(self._client.webhooks) |
| 856 | + |
820 | 857 | @cached_property |
821 | 858 | def people(self) -> people.AsyncPeopleResourceWithStreamingResponse: |
822 | 859 | from .resources.people import AsyncPeopleResourceWithStreamingResponse |
|
0 commit comments