Skip to content

Commit 55d0b8f

Browse files
feat(api): api update
1 parent b8a7b8c commit 55d0b8f

4 files changed

Lines changed: 4 additions & 288 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 10
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-cd55f587a8aff1c17aa98d828486e82082ff408b1dc835632284a1a8f519a8e0.yml
3-
openapi_spec_hash: 228af7a8532747ec67fc81a4e4f365aa
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-90a3350206f5abf24f9b8e29cbb467308ebdea82b4d7aaebd0845875810f5910.yml
3+
openapi_spec_hash: bb5e54c40d38f82eab1d829b831b1671
44
config_hash: a1303564edd6276a63d584a02b2238b2

src/brand/dev/resources/brand.py

Lines changed: 2 additions & 186 deletions
Original file line numberDiff line numberDiff line change
@@ -124,83 +124,6 @@ def retrieve(
124124
]
125125
| Omit = omit,
126126
max_speed: bool | Omit = omit,
127-
name: str | Omit = omit,
128-
ticker: str | Omit = omit,
129-
ticker_exchange: Literal[
130-
"AMEX",
131-
"AMS",
132-
"AQS",
133-
"ASX",
134-
"ATH",
135-
"BER",
136-
"BME",
137-
"BRU",
138-
"BSE",
139-
"BUD",
140-
"BUE",
141-
"BVC",
142-
"CBOE",
143-
"CNQ",
144-
"CPH",
145-
"DFM",
146-
"DOH",
147-
"DUB",
148-
"DUS",
149-
"DXE",
150-
"EGX",
151-
"FSX",
152-
"HAM",
153-
"HEL",
154-
"HKSE",
155-
"HOSE",
156-
"ICE",
157-
"IOB",
158-
"IST",
159-
"JKT",
160-
"JNB",
161-
"JPX",
162-
"KLS",
163-
"KOE",
164-
"KSC",
165-
"KUW",
166-
"LIS",
167-
"LSE",
168-
"MCX",
169-
"MEX",
170-
"MIL",
171-
"MUN",
172-
"NASDAQ",
173-
"NEO",
174-
"NSE",
175-
"NYSE",
176-
"NZE",
177-
"OSL",
178-
"OTC",
179-
"PAR",
180-
"PNK",
181-
"PRA",
182-
"RIS",
183-
"SAO",
184-
"SAU",
185-
"SES",
186-
"SET",
187-
"SGO",
188-
"SHH",
189-
"SHZ",
190-
"SIX",
191-
"STO",
192-
"STU",
193-
"TAI",
194-
"TAL",
195-
"TLV",
196-
"TSX",
197-
"TSXV",
198-
"TWO",
199-
"VIE",
200-
"WSE",
201-
"XETRA",
202-
]
203-
| Omit = omit,
204127
timeout_ms: int | Omit = omit,
205128
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
206129
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -210,8 +133,7 @@ def retrieve(
210133
timeout: float | httpx.Timeout | None | NotGiven = not_given,
211134
) -> BrandRetrieveResponse:
212135
"""
213-
Retrieve brand information using one of three methods: domain name, company
214-
name, or stock ticker symbol. Exactly one of these parameters must be provided.
136+
Retrieve brand information from a domain name
215137
216138
Args:
217139
domain: Domain name to retrieve brand data for (e.g., 'example.com', 'google.com').
@@ -224,17 +146,6 @@ def retrieve(
224146
the API will skip time-consuming operations for faster response at the cost of
225147
less comprehensive data. Works with all three lookup methods.
226148
227-
name: Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft
228-
Corporation'). Must be 3-30 characters. Cannot be used with domain or ticker
229-
parameters.
230-
231-
ticker: Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
232-
Must be 1-15 characters, letters/numbers/dots only. Cannot be used with domain
233-
or name parameters.
234-
235-
ticker_exchange: Optional stock exchange for the ticker. Only used when ticker parameter is
236-
provided. Defaults to assume ticker is American if not specified.
237-
238149
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
239150
than this value, it will be aborted with a 408 status code. Maximum allowed
240151
value is 300000ms (5 minutes).
@@ -259,9 +170,6 @@ def retrieve(
259170
"domain": domain,
260171
"force_language": force_language,
261172
"max_speed": max_speed,
262-
"name": name,
263-
"ticker": ticker,
264-
"ticker_exchange": ticker_exchange,
265173
"timeout_ms": timeout_ms,
266174
},
267175
brand_retrieve_params.BrandRetrieveParams,
@@ -1036,83 +944,6 @@ async def retrieve(
1036944
]
1037945
| Omit = omit,
1038946
max_speed: bool | Omit = omit,
1039-
name: str | Omit = omit,
1040-
ticker: str | Omit = omit,
1041-
ticker_exchange: Literal[
1042-
"AMEX",
1043-
"AMS",
1044-
"AQS",
1045-
"ASX",
1046-
"ATH",
1047-
"BER",
1048-
"BME",
1049-
"BRU",
1050-
"BSE",
1051-
"BUD",
1052-
"BUE",
1053-
"BVC",
1054-
"CBOE",
1055-
"CNQ",
1056-
"CPH",
1057-
"DFM",
1058-
"DOH",
1059-
"DUB",
1060-
"DUS",
1061-
"DXE",
1062-
"EGX",
1063-
"FSX",
1064-
"HAM",
1065-
"HEL",
1066-
"HKSE",
1067-
"HOSE",
1068-
"ICE",
1069-
"IOB",
1070-
"IST",
1071-
"JKT",
1072-
"JNB",
1073-
"JPX",
1074-
"KLS",
1075-
"KOE",
1076-
"KSC",
1077-
"KUW",
1078-
"LIS",
1079-
"LSE",
1080-
"MCX",
1081-
"MEX",
1082-
"MIL",
1083-
"MUN",
1084-
"NASDAQ",
1085-
"NEO",
1086-
"NSE",
1087-
"NYSE",
1088-
"NZE",
1089-
"OSL",
1090-
"OTC",
1091-
"PAR",
1092-
"PNK",
1093-
"PRA",
1094-
"RIS",
1095-
"SAO",
1096-
"SAU",
1097-
"SES",
1098-
"SET",
1099-
"SGO",
1100-
"SHH",
1101-
"SHZ",
1102-
"SIX",
1103-
"STO",
1104-
"STU",
1105-
"TAI",
1106-
"TAL",
1107-
"TLV",
1108-
"TSX",
1109-
"TSXV",
1110-
"TWO",
1111-
"VIE",
1112-
"WSE",
1113-
"XETRA",
1114-
]
1115-
| Omit = omit,
1116947
timeout_ms: int | Omit = omit,
1117948
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1118949
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1122,8 +953,7 @@ async def retrieve(
1122953
timeout: float | httpx.Timeout | None | NotGiven = not_given,
1123954
) -> BrandRetrieveResponse:
1124955
"""
1125-
Retrieve brand information using one of three methods: domain name, company
1126-
name, or stock ticker symbol. Exactly one of these parameters must be provided.
956+
Retrieve brand information from a domain name
1127957
1128958
Args:
1129959
domain: Domain name to retrieve brand data for (e.g., 'example.com', 'google.com').
@@ -1136,17 +966,6 @@ async def retrieve(
1136966
the API will skip time-consuming operations for faster response at the cost of
1137967
less comprehensive data. Works with all three lookup methods.
1138968
1139-
name: Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft
1140-
Corporation'). Must be 3-30 characters. Cannot be used with domain or ticker
1141-
parameters.
1142-
1143-
ticker: Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
1144-
Must be 1-15 characters, letters/numbers/dots only. Cannot be used with domain
1145-
or name parameters.
1146-
1147-
ticker_exchange: Optional stock exchange for the ticker. Only used when ticker parameter is
1148-
provided. Defaults to assume ticker is American if not specified.
1149-
1150969
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
1151970
than this value, it will be aborted with a 408 status code. Maximum allowed
1152971
value is 300000ms (5 minutes).
@@ -1171,9 +990,6 @@ async def retrieve(
1171990
"domain": domain,
1172991
"force_language": force_language,
1173992
"max_speed": max_speed,
1174-
"name": name,
1175-
"ticker": ticker,
1176-
"ticker_exchange": ticker_exchange,
1177993
"timeout_ms": timeout_ms,
1178994
},
1179995
brand_retrieve_params.BrandRetrieveParams,

src/brand/dev/types/brand_retrieve_params.py

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -83,100 +83,6 @@ class BrandRetrieveParams(TypedDict, total=False):
8383
methods.
8484
"""
8585

86-
name: str
87-
"""
88-
Company name to retrieve brand data for (e.g., 'Apple Inc', 'Microsoft
89-
Corporation'). Must be 3-30 characters. Cannot be used with domain or ticker
90-
parameters.
91-
"""
92-
93-
ticker: str
94-
"""Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
95-
96-
Must be 1-15 characters, letters/numbers/dots only. Cannot be used with domain
97-
or name parameters.
98-
"""
99-
100-
ticker_exchange: Literal[
101-
"AMEX",
102-
"AMS",
103-
"AQS",
104-
"ASX",
105-
"ATH",
106-
"BER",
107-
"BME",
108-
"BRU",
109-
"BSE",
110-
"BUD",
111-
"BUE",
112-
"BVC",
113-
"CBOE",
114-
"CNQ",
115-
"CPH",
116-
"DFM",
117-
"DOH",
118-
"DUB",
119-
"DUS",
120-
"DXE",
121-
"EGX",
122-
"FSX",
123-
"HAM",
124-
"HEL",
125-
"HKSE",
126-
"HOSE",
127-
"ICE",
128-
"IOB",
129-
"IST",
130-
"JKT",
131-
"JNB",
132-
"JPX",
133-
"KLS",
134-
"KOE",
135-
"KSC",
136-
"KUW",
137-
"LIS",
138-
"LSE",
139-
"MCX",
140-
"MEX",
141-
"MIL",
142-
"MUN",
143-
"NASDAQ",
144-
"NEO",
145-
"NSE",
146-
"NYSE",
147-
"NZE",
148-
"OSL",
149-
"OTC",
150-
"PAR",
151-
"PNK",
152-
"PRA",
153-
"RIS",
154-
"SAO",
155-
"SAU",
156-
"SES",
157-
"SET",
158-
"SGO",
159-
"SHH",
160-
"SHZ",
161-
"SIX",
162-
"STO",
163-
"STU",
164-
"TAI",
165-
"TAL",
166-
"TLV",
167-
"TSX",
168-
"TSXV",
169-
"TWO",
170-
"VIE",
171-
"WSE",
172-
"XETRA",
173-
]
174-
"""Optional stock exchange for the ticker.
175-
176-
Only used when ticker parameter is provided. Defaults to assume ticker is
177-
American if not specified.
178-
"""
179-
18086
timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")]
18187
"""Optional timeout in milliseconds for the request.
18288

tests/api_resources/test_brand.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ def test_method_retrieve_with_all_params(self, client: BrandDev) -> None:
4141
domain="domain",
4242
force_language="albanian",
4343
max_speed=True,
44-
name="xxx",
45-
ticker="ticker",
46-
ticker_exchange="AMEX",
4744
timeout_ms=1,
4845
)
4946
assert_matches_type(BrandRetrieveResponse, brand, path=["response"])
@@ -526,9 +523,6 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncBrandDev
526523
domain="domain",
527524
force_language="albanian",
528525
max_speed=True,
529-
name="xxx",
530-
ticker="ticker",
531-
ticker_exchange="AMEX",
532526
timeout_ms=1,
533527
)
534528
assert_matches_type(BrandRetrieveResponse, brand, path=["response"])

0 commit comments

Comments
 (0)