Skip to content

Commit a62c8a4

Browse files
feat(api): manual updates
1 parent 040f31d commit a62c8a4

14 files changed

Lines changed: 2641 additions & 287 deletions

‎.stats.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 38
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-c1b6ca84f9bec1b1936cebb61f058924c3d7a5f6977e4cd76cf0544c4c7d8737.yml
1+
configured_endpoints: 40
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-e2ba5381de3010ee53f27388aa6727ad567eb18e4b0b4eb1c4c66402bfea64cc.yml
33
openapi_spec_hash: 141bfa8430ddccfb5a37c4bd703d163b
4-
config_hash: bff282047fafdad771fb7ec685f56944
4+
config_hash: 920678668dd2da6f8966fbf1b8fde4e2

‎api.md‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ from context.dev.types import (
151151
Intake,
152152
BatchRetrieveResponse,
153153
BatchListResponse,
154+
BatchDeleteResponse,
154155
BatchCancelResponse,
155156
BatchGetResultsResponse,
156157
BatchSubmitResponse,
@@ -161,6 +162,19 @@ Methods:
161162

162163
- <code title="get /batch/{batch_id}">client.batch.<a href="./src/context/dev/resources/batch.py">retrieve</a>(batch_id) -> <a href="./src/context/dev/types/batch_retrieve_response.py">BatchRetrieveResponse</a></code>
163164
- <code title="get /batch/list">client.batch.<a href="./src/context/dev/resources/batch.py">list</a>(\*\*<a href="src/context/dev/types/batch_list_params.py">params</a>) -> <a href="./src/context/dev/types/batch_list_response.py">BatchListResponse</a></code>
165+
- <code title="delete /batch/{batch_id}">client.batch.<a href="./src/context/dev/resources/batch.py">delete</a>(batch_id) -> <a href="./src/context/dev/types/batch_delete_response.py">BatchDeleteResponse</a></code>
164166
- <code title="post /batch/{batch_id}/cancel">client.batch.<a href="./src/context/dev/resources/batch.py">cancel</a>(batch_id) -> <a href="./src/context/dev/types/batch_cancel_response.py">BatchCancelResponse</a></code>
165167
- <code title="get /batch/{batch_id}/results">client.batch.<a href="./src/context/dev/resources/batch.py">get_results</a>(batch_id, \*\*<a href="src/context/dev/types/batch_get_results_params.py">params</a>) -> <a href="./src/context/dev/types/batch_get_results_response.py">BatchGetResultsResponse</a></code>
166-
- <code title="post /people/retrieve">client.batch.<a href="./src/context/dev/resources/batch.py">submit</a>(\*\*<a href="src/context/dev/types/batch_submit_params.py">params</a>) -> <a href="./src/context/dev/types/batch_submit_response.py">BatchSubmitResponse</a></code>
168+
- <code title="post /batch/submit">client.batch.<a href="./src/context/dev/resources/batch.py">submit</a>(\*\*<a href="src/context/dev/types/batch_submit_params.py">params</a>) -> <a href="./src/context/dev/types/batch_submit_response.py">BatchSubmitResponse</a></code>
169+
170+
# People
171+
172+
Types:
173+
174+
```python
175+
from context.dev.types import PersonEnrichResponse
176+
```
177+
178+
Methods:
179+
180+
- <code title="post /people/enrich">client.people.<a href="./src/context/dev/resources/people.py">enrich</a>(\*\*<a href="src/context/dev/types/person_enrich_params.py">params</a>) -> <a href="./src/context/dev/types/person_enrich_response.py">PersonEnrichResponse</a></code>

‎src/context/dev/_client.py‎

Lines changed: 44 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, batch, brand, parse, utility, industry, monitors
38+
from .resources import ai, web, batch, brand, parse, people, utility, industry, monitors
3939
from .resources.ai import AIResource, AsyncAIResource
4040
from .resources.web import WebResource, AsyncWebResource
4141
from .resources.batch import BatchResource, AsyncBatchResource
4242
from .resources.brand import BrandResource, AsyncBrandResource
4343
from .resources.parse import ParseResource, AsyncParseResource
44+
from .resources.people import PeopleResource, AsyncPeopleResource
4445
from .resources.utility import UtilityResource, AsyncUtilityResource
4546
from .resources.industry import IndustryResource, AsyncIndustryResource
4647
from .resources.monitors import MonitorsResource, AsyncMonitorsResource
@@ -168,10 +169,17 @@ def monitors(self) -> MonitorsResource:
168169

169170
@cached_property
170171
def batch(self) -> BatchResource:
172+
"""Scrape many pages or crawl a site asynchronously."""
171173
from .resources.batch import BatchResource
172174

173175
return BatchResource(self)
174176

177+
@cached_property
178+
def people(self) -> PeopleResource:
179+
from .resources.people import PeopleResource
180+
181+
return PeopleResource(self)
182+
175183
@cached_property
176184
def with_raw_response(self) -> ContextDevWithRawResponse:
177185
return ContextDevWithRawResponse(self)
@@ -396,10 +404,17 @@ def monitors(self) -> AsyncMonitorsResource:
396404

397405
@cached_property
398406
def batch(self) -> AsyncBatchResource:
407+
"""Scrape many pages or crawl a site asynchronously."""
399408
from .resources.batch import AsyncBatchResource
400409

401410
return AsyncBatchResource(self)
402411

412+
@cached_property
413+
def people(self) -> AsyncPeopleResource:
414+
from .resources.people import AsyncPeopleResource
415+
416+
return AsyncPeopleResource(self)
417+
403418
@cached_property
404419
def with_raw_response(self) -> AsyncContextDevWithRawResponse:
405420
return AsyncContextDevWithRawResponse(self)
@@ -566,10 +581,17 @@ def monitors(self) -> monitors.MonitorsResourceWithRawResponse:
566581

567582
@cached_property
568583
def batch(self) -> batch.BatchResourceWithRawResponse:
584+
"""Scrape many pages or crawl a site asynchronously."""
569585
from .resources.batch import BatchResourceWithRawResponse
570586

571587
return BatchResourceWithRawResponse(self._client.batch)
572588

589+
@cached_property
590+
def people(self) -> people.PeopleResourceWithRawResponse:
591+
from .resources.people import PeopleResourceWithRawResponse
592+
593+
return PeopleResourceWithRawResponse(self._client.people)
594+
573595

574596
class AsyncContextDevWithRawResponse:
575597
_client: AsyncContextDev
@@ -624,10 +646,17 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithRawResponse:
624646

625647
@cached_property
626648
def batch(self) -> batch.AsyncBatchResourceWithRawResponse:
649+
"""Scrape many pages or crawl a site asynchronously."""
627650
from .resources.batch import AsyncBatchResourceWithRawResponse
628651

629652
return AsyncBatchResourceWithRawResponse(self._client.batch)
630653

654+
@cached_property
655+
def people(self) -> people.AsyncPeopleResourceWithRawResponse:
656+
from .resources.people import AsyncPeopleResourceWithRawResponse
657+
658+
return AsyncPeopleResourceWithRawResponse(self._client.people)
659+
631660

632661
class ContextDevWithStreamedResponse:
633662
_client: ContextDev
@@ -682,10 +711,17 @@ def monitors(self) -> monitors.MonitorsResourceWithStreamingResponse:
682711

683712
@cached_property
684713
def batch(self) -> batch.BatchResourceWithStreamingResponse:
714+
"""Scrape many pages or crawl a site asynchronously."""
685715
from .resources.batch import BatchResourceWithStreamingResponse
686716

687717
return BatchResourceWithStreamingResponse(self._client.batch)
688718

719+
@cached_property
720+
def people(self) -> people.PeopleResourceWithStreamingResponse:
721+
from .resources.people import PeopleResourceWithStreamingResponse
722+
723+
return PeopleResourceWithStreamingResponse(self._client.people)
724+
689725

690726
class AsyncContextDevWithStreamedResponse:
691727
_client: AsyncContextDev
@@ -740,10 +776,17 @@ def monitors(self) -> monitors.AsyncMonitorsResourceWithStreamingResponse:
740776

741777
@cached_property
742778
def batch(self) -> batch.AsyncBatchResourceWithStreamingResponse:
779+
"""Scrape many pages or crawl a site asynchronously."""
743780
from .resources.batch import AsyncBatchResourceWithStreamingResponse
744781

745782
return AsyncBatchResourceWithStreamingResponse(self._client.batch)
746783

784+
@cached_property
785+
def people(self) -> people.AsyncPeopleResourceWithStreamingResponse:
786+
from .resources.people import AsyncPeopleResourceWithStreamingResponse
787+
788+
return AsyncPeopleResourceWithStreamingResponse(self._client.people)
789+
747790

748791
Client = ContextDev
749792

‎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
ParseResourceWithStreamingResponse,
4141
AsyncParseResourceWithStreamingResponse,
4242
)
43+
from .people import (
44+
PeopleResource,
45+
AsyncPeopleResource,
46+
PeopleResourceWithRawResponse,
47+
AsyncPeopleResourceWithRawResponse,
48+
PeopleResourceWithStreamingResponse,
49+
AsyncPeopleResourceWithStreamingResponse,
50+
)
4351
from .utility import (
4452
UtilityResource,
4553
AsyncUtilityResource,
@@ -114,4 +122,10 @@
114122
"AsyncBatchResourceWithRawResponse",
115123
"BatchResourceWithStreamingResponse",
116124
"AsyncBatchResourceWithStreamingResponse",
125+
"PeopleResource",
126+
"AsyncPeopleResource",
127+
"PeopleResourceWithRawResponse",
128+
"AsyncPeopleResourceWithRawResponse",
129+
"PeopleResourceWithStreamingResponse",
130+
"AsyncPeopleResourceWithStreamingResponse",
117131
]

0 commit comments

Comments
 (0)