Skip to content

Commit f80c306

Browse files
feat(api): manual updates
1 parent 1c5aeb4 commit f80c306

25 files changed

Lines changed: 6262 additions & 4 deletions

‎.stats.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 25
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-d04e3c285c2f57723b288ee69b1d78b7bb928aae403203b2cdd524dd195e55b2.yml
1+
configured_endpoints: 36
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-8667763c416101820f5086c97d542bf13bb3bb12b57f5f604da671d9dcea0599.yml
33
openapi_spec_hash: e33db883d584bc8573897391f3edb105
4-
config_hash: c7b0cdaba3b9797b77efd89e1754d803
4+
config_hash: 7ec4851ee8d93177947e95df5ae897b5

‎api.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,37 @@ Methods:
9797

9898
- <code title="post /brand/prefetch">client.utility.<a href="./src/context/dev/resources/utility.py">prefetch</a>(\*\*<a href="src/context/dev/types/utility_prefetch_params.py">params</a>) -> <a href="./src/context/dev/types/utility_prefetch_response.py">UtilityPrefetchResponse</a></code>
9999
- <code title="post /brand/prefetch-by-email">client.utility.<a href="./src/context/dev/resources/utility.py">prefetch_by_email</a>(\*\*<a href="src/context/dev/types/utility_prefetch_by_email_params.py">params</a>) -> <a href="./src/context/dev/types/utility_prefetch_by_email_response.py">UtilityPrefetchByEmailResponse</a></code>
100+
101+
# Monitors
102+
103+
Types:
104+
105+
```python
106+
from context.dev.types import (
107+
MonitorCreateResponse,
108+
MonitorRetrieveResponse,
109+
MonitorUpdateResponse,
110+
MonitorListResponse,
111+
MonitorDeleteResponse,
112+
MonitorListAccountChangesResponse,
113+
MonitorListAccountRunsResponse,
114+
MonitorListChangesResponse,
115+
MonitorListRunsResponse,
116+
MonitorRetrieveChangeResponse,
117+
MonitorRunResponse,
118+
)
119+
```
120+
121+
Methods:
122+
123+
- <code title="post /monitors">client.monitors.<a href="./src/context/dev/resources/monitors.py">create</a>(\*\*<a href="src/context/dev/types/monitor_create_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_create_response.py">MonitorCreateResponse</a></code>
124+
- <code title="get /monitors/{monitor_id}">client.monitors.<a href="./src/context/dev/resources/monitors.py">retrieve</a>(monitor_id) -> <a href="./src/context/dev/types/monitor_retrieve_response.py">MonitorRetrieveResponse</a></code>
125+
- <code title="patch /monitors/{monitor_id}">client.monitors.<a href="./src/context/dev/resources/monitors.py">update</a>(monitor_id, \*\*<a href="src/context/dev/types/monitor_update_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_update_response.py">MonitorUpdateResponse</a></code>
126+
- <code title="get /monitors">client.monitors.<a href="./src/context/dev/resources/monitors.py">list</a>(\*\*<a href="src/context/dev/types/monitor_list_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_response.py">MonitorListResponse</a></code>
127+
- <code title="delete /monitors/{monitor_id}">client.monitors.<a href="./src/context/dev/resources/monitors.py">delete</a>(monitor_id) -> <a href="./src/context/dev/types/monitor_delete_response.py">MonitorDeleteResponse</a></code>
128+
- <code title="get /monitors/changes">client.monitors.<a href="./src/context/dev/resources/monitors.py">list_account_changes</a>(\*\*<a href="src/context/dev/types/monitor_list_account_changes_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_account_changes_response.py">MonitorListAccountChangesResponse</a></code>
129+
- <code title="get /monitors/runs">client.monitors.<a href="./src/context/dev/resources/monitors.py">list_account_runs</a>(\*\*<a href="src/context/dev/types/monitor_list_account_runs_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_account_runs_response.py">MonitorListAccountRunsResponse</a></code>
130+
- <code title="get /monitors/{monitor_id}/changes">client.monitors.<a href="./src/context/dev/resources/monitors.py">list_changes</a>(monitor_id, \*\*<a href="src/context/dev/types/monitor_list_changes_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_changes_response.py">MonitorListChangesResponse</a></code>
131+
- <code title="get /monitors/{monitor_id}/runs">client.monitors.<a href="./src/context/dev/resources/monitors.py">list_runs</a>(monitor_id, \*\*<a href="src/context/dev/types/monitor_list_runs_params.py">params</a>) -> <a href="./src/context/dev/types/monitor_list_runs_response.py">MonitorListRunsResponse</a></code>
132+
- <code title="get /monitors/changes/{change_id}">client.monitors.<a href="./src/context/dev/resources/monitors.py">retrieve_change</a>(change_id) -> <a href="./src/context/dev/types/monitor_retrieve_change_response.py">MonitorRetrieveChangeResponse</a></code>
133+
- <code title="post /monitors/{monitor_id}/run">client.monitors.<a href="./src/context/dev/resources/monitors.py">run</a>(monitor_id) -> <a href="./src/context/dev/types/monitor_run_response.py">MonitorRunResponse</a></code>

‎src/context/dev/_client.py‎

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@
3535
)
3636

3737
if TYPE_CHECKING:
38-
from .resources import ai, web, brand, utility, industry
38+
from .resources import ai, web, brand, utility, industry, monitors
3939
from .resources.ai import AIResource, AsyncAIResource
4040
from .resources.web import WebResource, AsyncWebResource
4141
from .resources.brand import BrandResource, AsyncBrandResource
4242
from .resources.utility import UtilityResource, AsyncUtilityResource
4343
from .resources.industry import IndustryResource, AsyncIndustryResource
44+
from .resources.monitors import MonitorsResource, AsyncMonitorsResource
4445

4546
__all__ = [
4647
"Timeout",
@@ -148,6 +149,15 @@ def utility(self) -> UtilityResource:
148149

149150
return UtilityResource(self)
150151

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+
151161
@cached_property
152162
def with_raw_response(self) -> ContextDevWithRawResponse:
153163
return ContextDevWithRawResponse(self)
@@ -355,6 +365,15 @@ def utility(self) -> AsyncUtilityResource:
355365

356366
return AsyncUtilityResource(self)
357367

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+
358377
@cached_property
359378
def with_raw_response(self) -> AsyncContextDevWithRawResponse:
360379
return AsyncContextDevWithRawResponse(self)
@@ -504,6 +523,15 @@ def utility(self) -> utility.UtilityResourceWithRawResponse:
504523

505524
return UtilityResourceWithRawResponse(self._client.utility)
506525

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+
507535

508536
class AsyncContextDevWithRawResponse:
509537
_client: AsyncContextDev
@@ -541,6 +569,15 @@ def utility(self) -> utility.AsyncUtilityResourceWithRawResponse:
541569

542570
return AsyncUtilityResourceWithRawResponse(self._client.utility)
543571

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+
544581

545582
class ContextDevWithStreamedResponse:
546583
_client: ContextDev
@@ -578,6 +615,15 @@ def utility(self) -> utility.UtilityResourceWithStreamingResponse:
578615

579616
return UtilityResourceWithStreamingResponse(self._client.utility)
580617

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+
581627

582628
class AsyncContextDevWithStreamedResponse:
583629
_client: AsyncContextDev
@@ -615,6 +661,15 @@ def utility(self) -> utility.AsyncUtilityResourceWithStreamingResponse:
615661

616662
return AsyncUtilityResourceWithStreamingResponse(self._client.utility)
617663

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+
618673

619674
Client = ContextDev
620675

‎src/context/dev/resources/__init__.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
IndustryResourceWithStreamingResponse,
4141
AsyncIndustryResourceWithStreamingResponse,
4242
)
43+
from .monitors import (
44+
MonitorsResource,
45+
AsyncMonitorsResource,
46+
MonitorsResourceWithRawResponse,
47+
AsyncMonitorsResourceWithRawResponse,
48+
MonitorsResourceWithStreamingResponse,
49+
AsyncMonitorsResourceWithStreamingResponse,
50+
)
4351

4452
__all__ = [
4553
"WebResource",
@@ -72,4 +80,10 @@
7280
"AsyncUtilityResourceWithRawResponse",
7381
"UtilityResourceWithStreamingResponse",
7482
"AsyncUtilityResourceWithStreamingResponse",
83+
"MonitorsResource",
84+
"AsyncMonitorsResource",
85+
"MonitorsResourceWithRawResponse",
86+
"AsyncMonitorsResourceWithRawResponse",
87+
"MonitorsResourceWithStreamingResponse",
88+
"AsyncMonitorsResourceWithStreamingResponse",
7589
]

0 commit comments

Comments
 (0)