|
35 | 35 | ) |
36 | 36 |
|
37 | 37 | if TYPE_CHECKING: |
38 | | - from .resources import ai, web, brand, utility, industry |
| 38 | + from .resources import ai, web, brand, utility, industry, monitors |
39 | 39 | from .resources.ai import AIResource, AsyncAIResource |
40 | 40 | from .resources.web import WebResource, AsyncWebResource |
41 | 41 | from .resources.brand import BrandResource, AsyncBrandResource |
42 | 42 | from .resources.utility import UtilityResource, AsyncUtilityResource |
43 | 43 | from .resources.industry import IndustryResource, AsyncIndustryResource |
| 44 | + from .resources.monitors import MonitorsResource, AsyncMonitorsResource |
44 | 45 |
|
45 | 46 | __all__ = [ |
46 | 47 | "Timeout", |
@@ -148,6 +149,15 @@ def utility(self) -> UtilityResource: |
148 | 149 |
|
149 | 150 | return UtilityResource(self) |
150 | 151 |
|
| 152 | + @cached_property |
| 153 | + def monitors(self) -> MonitorsResource: |
| 154 | + """ |
| 155 | + Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema. |
| 156 | + """ |
| 157 | + from .resources.monitors import MonitorsResource |
| 158 | + |
| 159 | + return MonitorsResource(self) |
| 160 | + |
151 | 161 | @cached_property |
152 | 162 | def with_raw_response(self) -> ContextDevWithRawResponse: |
153 | 163 | return ContextDevWithRawResponse(self) |
@@ -355,6 +365,15 @@ def utility(self) -> AsyncUtilityResource: |
355 | 365 |
|
356 | 366 | return AsyncUtilityResource(self) |
357 | 367 |
|
| 368 | + @cached_property |
| 369 | + def monitors(self) -> AsyncMonitorsResource: |
| 370 | + """ |
| 371 | + Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema. |
| 372 | + """ |
| 373 | + from .resources.monitors import AsyncMonitorsResource |
| 374 | + |
| 375 | + return AsyncMonitorsResource(self) |
| 376 | + |
358 | 377 | @cached_property |
359 | 378 | def with_raw_response(self) -> AsyncContextDevWithRawResponse: |
360 | 379 | return AsyncContextDevWithRawResponse(self) |
@@ -504,6 +523,15 @@ def utility(self) -> utility.UtilityResourceWithRawResponse: |
504 | 523 |
|
505 | 524 | return UtilityResourceWithRawResponse(self._client.utility) |
506 | 525 |
|
| 526 | + @cached_property |
| 527 | + def monitors(self) -> monitors.MonitorsResourceWithRawResponse: |
| 528 | + """ |
| 529 | + Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema. |
| 530 | + """ |
| 531 | + from .resources.monitors import MonitorsResourceWithRawResponse |
| 532 | + |
| 533 | + return MonitorsResourceWithRawResponse(self._client.monitors) |
| 534 | + |
507 | 535 |
|
508 | 536 | class AsyncContextDevWithRawResponse: |
509 | 537 | _client: AsyncContextDev |
@@ -541,6 +569,15 @@ def utility(self) -> utility.AsyncUtilityResourceWithRawResponse: |
541 | 569 |
|
542 | 570 | return AsyncUtilityResourceWithRawResponse(self._client.utility) |
543 | 571 |
|
| 572 | + @cached_property |
| 573 | + def monitors(self) -> monitors.AsyncMonitorsResourceWithRawResponse: |
| 574 | + """ |
| 575 | + Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema. |
| 576 | + """ |
| 577 | + from .resources.monitors import AsyncMonitorsResourceWithRawResponse |
| 578 | + |
| 579 | + return AsyncMonitorsResourceWithRawResponse(self._client.monitors) |
| 580 | + |
544 | 581 |
|
545 | 582 | class ContextDevWithStreamedResponse: |
546 | 583 | _client: ContextDev |
@@ -578,6 +615,15 @@ def utility(self) -> utility.UtilityResourceWithStreamingResponse: |
578 | 615 |
|
579 | 616 | return UtilityResourceWithStreamingResponse(self._client.utility) |
580 | 617 |
|
| 618 | + @cached_property |
| 619 | + def monitors(self) -> monitors.MonitorsResourceWithStreamingResponse: |
| 620 | + """ |
| 621 | + Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema. |
| 622 | + """ |
| 623 | + from .resources.monitors import MonitorsResourceWithStreamingResponse |
| 624 | + |
| 625 | + return MonitorsResourceWithStreamingResponse(self._client.monitors) |
| 626 | + |
581 | 627 |
|
582 | 628 | class AsyncContextDevWithStreamedResponse: |
583 | 629 | _client: AsyncContextDev |
@@ -615,6 +661,15 @@ def utility(self) -> utility.AsyncUtilityResourceWithStreamingResponse: |
615 | 661 |
|
616 | 662 | return AsyncUtilityResourceWithStreamingResponse(self._client.utility) |
617 | 663 |
|
| 664 | + @cached_property |
| 665 | + def monitors(self) -> monitors.AsyncMonitorsResourceWithStreamingResponse: |
| 666 | + """ |
| 667 | + Monitor pages, sitemaps, and extracted website data for exact or semantic changes. The change.detected webhook payload is documented by the MonitorsChangeDetectedWebhookPayload schema. |
| 668 | + """ |
| 669 | + from .resources.monitors import AsyncMonitorsResourceWithStreamingResponse |
| 670 | + |
| 671 | + return AsyncMonitorsResourceWithStreamingResponse(self._client.monitors) |
| 672 | + |
618 | 673 |
|
619 | 674 | Client = ContextDev |
620 | 675 |
|
|
0 commit comments