Skip to content

Commit 512bf26

Browse files
feat(api): api update
1 parent f98376c commit 512bf26

9 files changed

Lines changed: 4 additions & 467 deletions

File tree

‎.stats.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-3a604b0c9775298072e70890d369d21d38422553a8fe23d9d081b0dc06035ee2.yml
3-
openapi_spec_hash: f94db2839851fb192f013b3ca258c39f
1+
configured_endpoints: 20
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-7e43493a842618882d9d7d4f33c51d4b6a1e99c960f8be0996bd544864a5e79f.yml
3+
openapi_spec_hash: 44bc5177ca909b32a1617ce637f5d704
44
config_hash: 85e90b8fda2e1f326ca60f8ab3e53704

‎api.md‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@ Methods:
6666
- <code title="get /brand/retrieve-by-ticker">client.brand.<a href="./src/context/dev/resources/brand.py">retrieve_by_ticker</a>(\*\*<a href="src/context/dev/types/brand_retrieve_by_ticker_params.py">params</a>) -> <a href="./src/context/dev/types/brand_retrieve_by_ticker_response.py">BrandRetrieveByTickerResponse</a></code>
6767
- <code title="get /brand/retrieve-simplified">client.brand.<a href="./src/context/dev/resources/brand.py">retrieve_simplified</a>(\*\*<a href="src/context/dev/types/brand_retrieve_simplified_params.py">params</a>) -> <a href="./src/context/dev/types/brand_retrieve_simplified_response.py">BrandRetrieveSimplifiedResponse</a></code>
6868

69-
# Industry
70-
71-
Types:
72-
73-
```python
74-
from context.dev.types import IndustryRetrieveNaicsResponse
75-
```
76-
77-
Methods:
78-
79-
- <code title="get /brand/naics">client.industry.<a href="./src/context/dev/resources/industry.py">retrieve_naics</a>(\*\*<a href="src/context/dev/types/industry_retrieve_naics_params.py">params</a>) -> <a href="./src/context/dev/types/industry_retrieve_naics_response.py">IndustryRetrieveNaicsResponse</a></code>
80-
8169
# Utility
8270

8371
Types:

‎src/context/dev/_client.py‎

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@
3131
)
3232

3333
if TYPE_CHECKING:
34-
from .resources import ai, web, brand, utility, industry
34+
from .resources import ai, web, brand, utility
3535
from .resources.ai import AIResource, AsyncAIResource
3636
from .resources.web import WebResource, AsyncWebResource
3737
from .resources.brand import BrandResource, AsyncBrandResource
3838
from .resources.utility import UtilityResource, AsyncUtilityResource
39-
from .resources.industry import IndustryResource, AsyncIndustryResource
4039

4140
__all__ = [
4241
"Timeout",
@@ -123,12 +122,6 @@ def brand(self) -> BrandResource:
123122

124123
return BrandResource(self)
125124

126-
@cached_property
127-
def industry(self) -> IndustryResource:
128-
from .resources.industry import IndustryResource
129-
130-
return IndustryResource(self)
131-
132125
@cached_property
133126
def utility(self) -> UtilityResource:
134127
from .resources.utility import UtilityResource
@@ -321,12 +314,6 @@ def brand(self) -> AsyncBrandResource:
321314

322315
return AsyncBrandResource(self)
323316

324-
@cached_property
325-
def industry(self) -> AsyncIndustryResource:
326-
from .resources.industry import AsyncIndustryResource
327-
328-
return AsyncIndustryResource(self)
329-
330317
@cached_property
331318
def utility(self) -> AsyncUtilityResource:
332319
from .resources.utility import AsyncUtilityResource
@@ -470,12 +457,6 @@ def brand(self) -> brand.BrandResourceWithRawResponse:
470457

471458
return BrandResourceWithRawResponse(self._client.brand)
472459

473-
@cached_property
474-
def industry(self) -> industry.IndustryResourceWithRawResponse:
475-
from .resources.industry import IndustryResourceWithRawResponse
476-
477-
return IndustryResourceWithRawResponse(self._client.industry)
478-
479460
@cached_property
480461
def utility(self) -> utility.UtilityResourceWithRawResponse:
481462
from .resources.utility import UtilityResourceWithRawResponse
@@ -507,12 +488,6 @@ def brand(self) -> brand.AsyncBrandResourceWithRawResponse:
507488

508489
return AsyncBrandResourceWithRawResponse(self._client.brand)
509490

510-
@cached_property
511-
def industry(self) -> industry.AsyncIndustryResourceWithRawResponse:
512-
from .resources.industry import AsyncIndustryResourceWithRawResponse
513-
514-
return AsyncIndustryResourceWithRawResponse(self._client.industry)
515-
516491
@cached_property
517492
def utility(self) -> utility.AsyncUtilityResourceWithRawResponse:
518493
from .resources.utility import AsyncUtilityResourceWithRawResponse
@@ -544,12 +519,6 @@ def brand(self) -> brand.BrandResourceWithStreamingResponse:
544519

545520
return BrandResourceWithStreamingResponse(self._client.brand)
546521

547-
@cached_property
548-
def industry(self) -> industry.IndustryResourceWithStreamingResponse:
549-
from .resources.industry import IndustryResourceWithStreamingResponse
550-
551-
return IndustryResourceWithStreamingResponse(self._client.industry)
552-
553522
@cached_property
554523
def utility(self) -> utility.UtilityResourceWithStreamingResponse:
555524
from .resources.utility import UtilityResourceWithStreamingResponse
@@ -581,12 +550,6 @@ def brand(self) -> brand.AsyncBrandResourceWithStreamingResponse:
581550

582551
return AsyncBrandResourceWithStreamingResponse(self._client.brand)
583552

584-
@cached_property
585-
def industry(self) -> industry.AsyncIndustryResourceWithStreamingResponse:
586-
from .resources.industry import AsyncIndustryResourceWithStreamingResponse
587-
588-
return AsyncIndustryResourceWithStreamingResponse(self._client.industry)
589-
590553
@cached_property
591554
def utility(self) -> utility.AsyncUtilityResourceWithStreamingResponse:
592555
from .resources.utility import AsyncUtilityResourceWithStreamingResponse

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@
3232
UtilityResourceWithStreamingResponse,
3333
AsyncUtilityResourceWithStreamingResponse,
3434
)
35-
from .industry import (
36-
IndustryResource,
37-
AsyncIndustryResource,
38-
IndustryResourceWithRawResponse,
39-
AsyncIndustryResourceWithRawResponse,
40-
IndustryResourceWithStreamingResponse,
41-
AsyncIndustryResourceWithStreamingResponse,
42-
)
4335

4436
__all__ = [
4537
"WebResource",
@@ -60,12 +52,6 @@
6052
"AsyncBrandResourceWithRawResponse",
6153
"BrandResourceWithStreamingResponse",
6254
"AsyncBrandResourceWithStreamingResponse",
63-
"IndustryResource",
64-
"AsyncIndustryResource",
65-
"IndustryResourceWithRawResponse",
66-
"AsyncIndustryResourceWithRawResponse",
67-
"IndustryResourceWithStreamingResponse",
68-
"AsyncIndustryResourceWithStreamingResponse",
6955
"UtilityResource",
7056
"AsyncUtilityResource",
7157
"UtilityResourceWithRawResponse",

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

Lines changed: 0 additions & 217 deletions
This file was deleted.

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from .web_extract_styleguide_params import WebExtractStyleguideParams as WebExtractStyleguideParams
2929
from .web_web_scrape_sitemap_params import WebWebScrapeSitemapParams as WebWebScrapeSitemapParams
3030
from .brand_retrieve_by_email_params import BrandRetrieveByEmailParams as BrandRetrieveByEmailParams
31-
from .industry_retrieve_naics_params import IndustryRetrieveNaicsParams as IndustryRetrieveNaicsParams
3231
from .web_web_scrape_images_response import WebWebScrapeImagesResponse as WebWebScrapeImagesResponse
3332
from .brand_retrieve_by_isin_response import BrandRetrieveByIsinResponse as BrandRetrieveByIsinResponse
3433
from .brand_retrieve_by_name_response import BrandRetrieveByNameResponse as BrandRetrieveByNameResponse
@@ -37,7 +36,6 @@
3736
from .web_web_scrape_sitemap_response import WebWebScrapeSitemapResponse as WebWebScrapeSitemapResponse
3837
from .brand_retrieve_by_email_response import BrandRetrieveByEmailResponse as BrandRetrieveByEmailResponse
3938
from .brand_retrieve_simplified_params import BrandRetrieveSimplifiedParams as BrandRetrieveSimplifiedParams
40-
from .industry_retrieve_naics_response import IndustryRetrieveNaicsResponse as IndustryRetrieveNaicsResponse
4139
from .utility_prefetch_by_email_params import UtilityPrefetchByEmailParams as UtilityPrefetchByEmailParams
4240
from .brand_retrieve_by_ticker_response import BrandRetrieveByTickerResponse as BrandRetrieveByTickerResponse
4341
from .brand_retrieve_simplified_response import BrandRetrieveSimplifiedResponse as BrandRetrieveSimplifiedResponse

0 commit comments

Comments
 (0)