Skip to content

Commit 152e848

Browse files
feat(api): manual updates
1 parent 6a4a863 commit 152e848

7 files changed

Lines changed: 912 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 11
1+
configured_endpoints: 12
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-070cac50467cd07e8601e948fc97e3c82ea0630d6a0b0f24164335e396893e6a.yml
33
openapi_spec_hash: b887bcfe688f72b3a34ee24246d12955
4-
config_hash: b842002500dc1c97db29148912365e84
4+
config_hash: 86160e220c81f47769a71c9343e486d8

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ from brand.dev.types import (
99
BrandIdentifyFromTransactionResponse,
1010
BrandPrefetchResponse,
1111
BrandRetrieveByEmailResponse,
12+
BrandRetrieveByIsinResponse,
1213
BrandRetrieveByNameResponse,
1314
BrandRetrieveByTickerResponse,
1415
BrandRetrieveNaicsResponse,
@@ -25,6 +26,7 @@ Methods:
2526
- <code title="get /brand/transaction_identifier">client.brand.<a href="./src/brand/dev/resources/brand.py">identify_from_transaction</a>(\*\*<a href="src/brand/dev/types/brand_identify_from_transaction_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_identify_from_transaction_response.py">BrandIdentifyFromTransactionResponse</a></code>
2627
- <code title="post /brand/prefetch">client.brand.<a href="./src/brand/dev/resources/brand.py">prefetch</a>(\*\*<a href="src/brand/dev/types/brand_prefetch_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_prefetch_response.py">BrandPrefetchResponse</a></code>
2728
- <code title="get /brand/retrieve-by-email">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve_by_email</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_by_email_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_by_email_response.py">BrandRetrieveByEmailResponse</a></code>
29+
- <code title="get /brand/retrieve-by-isin">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve_by_isin</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_by_isin_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_by_isin_response.py">BrandRetrieveByIsinResponse</a></code>
2830
- <code title="get /brand/retrieve-by-name">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve_by_name</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_by_name_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_by_name_response.py">BrandRetrieveByNameResponse</a></code>
2931
- <code title="get /brand/retrieve-by-ticker">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve_by_ticker</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_by_ticker_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_by_ticker_response.py">BrandRetrieveByTickerResponse</a></code>
3032
- <code title="get /brand/naics">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve_naics</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_naics_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_naics_response.py">BrandRetrieveNaicsResponse</a></code>

src/brand/dev/resources/brand.py

Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
brand_screenshot_params,
1515
brand_styleguide_params,
1616
brand_retrieve_naics_params,
17+
brand_retrieve_by_isin_params,
1718
brand_retrieve_by_name_params,
1819
brand_retrieve_by_email_params,
1920
brand_retrieve_by_ticker_params,
@@ -37,6 +38,7 @@
3738
from ..types.brand_screenshot_response import BrandScreenshotResponse
3839
from ..types.brand_styleguide_response import BrandStyleguideResponse
3940
from ..types.brand_retrieve_naics_response import BrandRetrieveNaicsResponse
41+
from ..types.brand_retrieve_by_isin_response import BrandRetrieveByIsinResponse
4042
from ..types.brand_retrieve_by_name_response import BrandRetrieveByNameResponse
4143
from ..types.brand_retrieve_by_email_response import BrandRetrieveByEmailResponse
4244
from ..types.brand_retrieve_by_ticker_response import BrandRetrieveByTickerResponse
@@ -515,6 +517,122 @@ def retrieve_by_email(
515517
cast_to=BrandRetrieveByEmailResponse,
516518
)
517519

520+
def retrieve_by_isin(
521+
self,
522+
*,
523+
isin: str,
524+
force_language: Literal[
525+
"albanian",
526+
"arabic",
527+
"azeri",
528+
"bengali",
529+
"bulgarian",
530+
"cebuano",
531+
"croatian",
532+
"czech",
533+
"danish",
534+
"dutch",
535+
"english",
536+
"estonian",
537+
"farsi",
538+
"finnish",
539+
"french",
540+
"german",
541+
"hausa",
542+
"hawaiian",
543+
"hindi",
544+
"hungarian",
545+
"icelandic",
546+
"indonesian",
547+
"italian",
548+
"kazakh",
549+
"kyrgyz",
550+
"latin",
551+
"latvian",
552+
"lithuanian",
553+
"macedonian",
554+
"mongolian",
555+
"nepali",
556+
"norwegian",
557+
"pashto",
558+
"pidgin",
559+
"polish",
560+
"portuguese",
561+
"romanian",
562+
"russian",
563+
"serbian",
564+
"slovak",
565+
"slovene",
566+
"somali",
567+
"spanish",
568+
"swahili",
569+
"swedish",
570+
"tagalog",
571+
"turkish",
572+
"ukrainian",
573+
"urdu",
574+
"uzbek",
575+
"vietnamese",
576+
"welsh",
577+
]
578+
| Omit = omit,
579+
max_speed: bool | Omit = omit,
580+
timeout_ms: int | Omit = omit,
581+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
582+
# The extra values given here take precedence over values defined on the client or passed to this method.
583+
extra_headers: Headers | None = None,
584+
extra_query: Query | None = None,
585+
extra_body: Body | None = None,
586+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
587+
) -> BrandRetrieveByIsinResponse:
588+
"""
589+
Retrieve brand information using an ISIN (International Securities
590+
Identification Number). This endpoint looks up the company associated with the
591+
ISIN and returns its brand data.
592+
593+
Args:
594+
isin: ISIN (International Securities Identification Number) to retrieve brand data for
595+
(e.g., 'AU000000IMD5', 'US0378331005'). Must be exactly 12 characters: 2 letters
596+
followed by 9 alphanumeric characters and ending with a digit.
597+
598+
force_language: Optional parameter to force the language of the retrieved brand data.
599+
600+
max_speed: Optional parameter to optimize the API call for maximum speed. When set to true,
601+
the API will skip time-consuming operations for faster response at the cost of
602+
less comprehensive data.
603+
604+
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
605+
than this value, it will be aborted with a 408 status code. Maximum allowed
606+
value is 300000ms (5 minutes).
607+
608+
extra_headers: Send extra headers
609+
610+
extra_query: Add additional query parameters to the request
611+
612+
extra_body: Add additional JSON properties to the request
613+
614+
timeout: Override the client-level default timeout for this request, in seconds
615+
"""
616+
return self._get(
617+
"/brand/retrieve-by-isin",
618+
options=make_request_options(
619+
extra_headers=extra_headers,
620+
extra_query=extra_query,
621+
extra_body=extra_body,
622+
timeout=timeout,
623+
query=maybe_transform(
624+
{
625+
"isin": isin,
626+
"force_language": force_language,
627+
"max_speed": max_speed,
628+
"timeout_ms": timeout_ms,
629+
},
630+
brand_retrieve_by_isin_params.BrandRetrieveByIsinParams,
631+
),
632+
),
633+
cast_to=BrandRetrieveByIsinResponse,
634+
)
635+
518636
def retrieve_by_name(
519637
self,
520638
*,
@@ -1517,6 +1635,122 @@ async def retrieve_by_email(
15171635
cast_to=BrandRetrieveByEmailResponse,
15181636
)
15191637

1638+
async def retrieve_by_isin(
1639+
self,
1640+
*,
1641+
isin: str,
1642+
force_language: Literal[
1643+
"albanian",
1644+
"arabic",
1645+
"azeri",
1646+
"bengali",
1647+
"bulgarian",
1648+
"cebuano",
1649+
"croatian",
1650+
"czech",
1651+
"danish",
1652+
"dutch",
1653+
"english",
1654+
"estonian",
1655+
"farsi",
1656+
"finnish",
1657+
"french",
1658+
"german",
1659+
"hausa",
1660+
"hawaiian",
1661+
"hindi",
1662+
"hungarian",
1663+
"icelandic",
1664+
"indonesian",
1665+
"italian",
1666+
"kazakh",
1667+
"kyrgyz",
1668+
"latin",
1669+
"latvian",
1670+
"lithuanian",
1671+
"macedonian",
1672+
"mongolian",
1673+
"nepali",
1674+
"norwegian",
1675+
"pashto",
1676+
"pidgin",
1677+
"polish",
1678+
"portuguese",
1679+
"romanian",
1680+
"russian",
1681+
"serbian",
1682+
"slovak",
1683+
"slovene",
1684+
"somali",
1685+
"spanish",
1686+
"swahili",
1687+
"swedish",
1688+
"tagalog",
1689+
"turkish",
1690+
"ukrainian",
1691+
"urdu",
1692+
"uzbek",
1693+
"vietnamese",
1694+
"welsh",
1695+
]
1696+
| Omit = omit,
1697+
max_speed: bool | Omit = omit,
1698+
timeout_ms: int | Omit = omit,
1699+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1700+
# The extra values given here take precedence over values defined on the client or passed to this method.
1701+
extra_headers: Headers | None = None,
1702+
extra_query: Query | None = None,
1703+
extra_body: Body | None = None,
1704+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
1705+
) -> BrandRetrieveByIsinResponse:
1706+
"""
1707+
Retrieve brand information using an ISIN (International Securities
1708+
Identification Number). This endpoint looks up the company associated with the
1709+
ISIN and returns its brand data.
1710+
1711+
Args:
1712+
isin: ISIN (International Securities Identification Number) to retrieve brand data for
1713+
(e.g., 'AU000000IMD5', 'US0378331005'). Must be exactly 12 characters: 2 letters
1714+
followed by 9 alphanumeric characters and ending with a digit.
1715+
1716+
force_language: Optional parameter to force the language of the retrieved brand data.
1717+
1718+
max_speed: Optional parameter to optimize the API call for maximum speed. When set to true,
1719+
the API will skip time-consuming operations for faster response at the cost of
1720+
less comprehensive data.
1721+
1722+
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
1723+
than this value, it will be aborted with a 408 status code. Maximum allowed
1724+
value is 300000ms (5 minutes).
1725+
1726+
extra_headers: Send extra headers
1727+
1728+
extra_query: Add additional query parameters to the request
1729+
1730+
extra_body: Add additional JSON properties to the request
1731+
1732+
timeout: Override the client-level default timeout for this request, in seconds
1733+
"""
1734+
return await self._get(
1735+
"/brand/retrieve-by-isin",
1736+
options=make_request_options(
1737+
extra_headers=extra_headers,
1738+
extra_query=extra_query,
1739+
extra_body=extra_body,
1740+
timeout=timeout,
1741+
query=await async_maybe_transform(
1742+
{
1743+
"isin": isin,
1744+
"force_language": force_language,
1745+
"max_speed": max_speed,
1746+
"timeout_ms": timeout_ms,
1747+
},
1748+
brand_retrieve_by_isin_params.BrandRetrieveByIsinParams,
1749+
),
1750+
),
1751+
cast_to=BrandRetrieveByIsinResponse,
1752+
)
1753+
15201754
async def retrieve_by_name(
15211755
self,
15221756
*,
@@ -2069,6 +2303,9 @@ def __init__(self, brand: BrandResource) -> None:
20692303
self.retrieve_by_email = to_raw_response_wrapper(
20702304
brand.retrieve_by_email,
20712305
)
2306+
self.retrieve_by_isin = to_raw_response_wrapper(
2307+
brand.retrieve_by_isin,
2308+
)
20722309
self.retrieve_by_name = to_raw_response_wrapper(
20732310
brand.retrieve_by_name,
20742311
)
@@ -2108,6 +2345,9 @@ def __init__(self, brand: AsyncBrandResource) -> None:
21082345
self.retrieve_by_email = async_to_raw_response_wrapper(
21092346
brand.retrieve_by_email,
21102347
)
2348+
self.retrieve_by_isin = async_to_raw_response_wrapper(
2349+
brand.retrieve_by_isin,
2350+
)
21112351
self.retrieve_by_name = async_to_raw_response_wrapper(
21122352
brand.retrieve_by_name,
21132353
)
@@ -2147,6 +2387,9 @@ def __init__(self, brand: BrandResource) -> None:
21472387
self.retrieve_by_email = to_streamed_response_wrapper(
21482388
brand.retrieve_by_email,
21492389
)
2390+
self.retrieve_by_isin = to_streamed_response_wrapper(
2391+
brand.retrieve_by_isin,
2392+
)
21502393
self.retrieve_by_name = to_streamed_response_wrapper(
21512394
brand.retrieve_by_name,
21522395
)
@@ -2186,6 +2429,9 @@ def __init__(self, brand: AsyncBrandResource) -> None:
21862429
self.retrieve_by_email = async_to_streamed_response_wrapper(
21872430
brand.retrieve_by_email,
21882431
)
2432+
self.retrieve_by_isin = async_to_streamed_response_wrapper(
2433+
brand.retrieve_by_isin,
2434+
)
21892435
self.retrieve_by_name = async_to_streamed_response_wrapper(
21902436
brand.retrieve_by_name,
21912437
)

src/brand/dev/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
from .brand_screenshot_response import BrandScreenshotResponse as BrandScreenshotResponse
1414
from .brand_styleguide_response import BrandStyleguideResponse as BrandStyleguideResponse
1515
from .brand_retrieve_naics_params import BrandRetrieveNaicsParams as BrandRetrieveNaicsParams
16+
from .brand_retrieve_by_isin_params import BrandRetrieveByIsinParams as BrandRetrieveByIsinParams
1617
from .brand_retrieve_by_name_params import BrandRetrieveByNameParams as BrandRetrieveByNameParams
1718
from .brand_retrieve_naics_response import BrandRetrieveNaicsResponse as BrandRetrieveNaicsResponse
1819
from .brand_retrieve_by_email_params import BrandRetrieveByEmailParams as BrandRetrieveByEmailParams
20+
from .brand_retrieve_by_isin_response import BrandRetrieveByIsinResponse as BrandRetrieveByIsinResponse
1921
from .brand_retrieve_by_name_response import BrandRetrieveByNameResponse as BrandRetrieveByNameResponse
2022
from .brand_retrieve_by_ticker_params import BrandRetrieveByTickerParams as BrandRetrieveByTickerParams
2123
from .brand_retrieve_by_email_response import BrandRetrieveByEmailResponse as BrandRetrieveByEmailResponse

0 commit comments

Comments
 (0)