@@ -49,6 +49,7 @@ def retrieve(
4949 self ,
5050 * ,
5151 domain : str ,
52+ type : Literal ["by_domain" ],
5253 force_language : Literal [
5354 "afrikaans" ,
5455 "albanian" ,
@@ -191,6 +192,8 @@ def retrieve(
191192 Args:
192193 domain: Domain name to retrieve brand data for (e.g., 'stripe.com').
193194
195+ type: Discriminator for domain-based brand retrieval.
196+
194197 max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard
195198 refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
196199 are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
@@ -219,6 +222,7 @@ def retrieve(
219222 self ,
220223 * ,
221224 name : str ,
225+ type : Literal ["by_name" ],
222226 country_gl : str | Omit = omit ,
223227 force_language : Literal [
224228 "afrikaans" ,
@@ -362,6 +366,8 @@ def retrieve(
362366 Args:
363367 name: Company name to retrieve brand data for (e.g., 'Apple Inc').
364368
369+ type: Discriminator for name-based brand retrieval.
370+
365371 country_gl: Optional country code hint (GL parameter) to specify the country when looking up
366372 by company name.
367373
@@ -393,6 +399,7 @@ def retrieve(
393399 self ,
394400 * ,
395401 email : str ,
402+ type : Literal ["by_email" ],
396403 force_language : Literal [
397404 "afrikaans" ,
398405 "albanian" ,
@@ -535,6 +542,8 @@ def retrieve(
535542 Args:
536543 email: Email address to retrieve brand data for (e.g., 'jane@stripe.com').
537544
545+ type: Discriminator for email-based brand retrieval.
546+
538547 max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard
539548 refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
540549 are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
@@ -563,6 +572,7 @@ def retrieve(
563572 self ,
564573 * ,
565574 ticker : str ,
575+ type : Literal ["by_ticker" ],
566576 force_language : Literal [
567577 "afrikaans" ,
568578 "albanian" ,
@@ -706,6 +716,8 @@ def retrieve(
706716 Args:
707717 ticker: Stock ticker symbol to retrieve brand data for (e.g., 'AAPL').
708718
719+ type: Discriminator for ticker-based brand retrieval.
720+
709721 max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard
710722 refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
711723 are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
@@ -736,6 +748,7 @@ def retrieve(
736748 self ,
737749 * ,
738750 transaction_info : str ,
751+ type : Literal ["by_transaction" ],
739752 city : str | Omit = omit ,
740753 country_gl : str | Omit = omit ,
741754 force_language : Literal [
@@ -882,6 +895,8 @@ def retrieve(
882895 Args:
883896 transaction_info: Transaction information to identify the brand.
884897
898+ type: Discriminator for transaction-based brand retrieval.
899+
885900 city: Optional city name to prioritize when searching for the brand.
886901
887902 country_gl: Optional country code hint (GL parameter) to specify the country when
@@ -913,11 +928,18 @@ def retrieve(
913928 """
914929 ...
915930
916- @required_args (["domain" ], ["name" ], ["email" ], ["ticker" ], ["transaction_info" ])
931+ @required_args (
932+ ["domain" , "type" ], ["name" , "type" ], ["email" , "type" ], ["ticker" , "type" ], ["transaction_info" , "type" ]
933+ )
917934 def retrieve (
918935 self ,
919936 * ,
920937 domain : str | Omit = omit ,
938+ type : Literal ["by_domain" ]
939+ | Literal ["by_name" ]
940+ | Literal ["by_email" ]
941+ | Literal ["by_ticker" ]
942+ | Literal ["by_transaction" ],
921943 force_language : Literal [
922944 "afrikaans" ,
923945 "albanian" ,
@@ -1066,6 +1088,7 @@ def retrieve(
10661088 body = maybe_transform (
10671089 {
10681090 "domain" : domain ,
1091+ "type" : type ,
10691092 "force_language" : force_language ,
10701093 "max_age_ms" : max_age_ms ,
10711094 "max_speed" : max_speed ,
@@ -1172,6 +1195,7 @@ async def retrieve(
11721195 self ,
11731196 * ,
11741197 domain : str ,
1198+ type : Literal ["by_domain" ],
11751199 force_language : Literal [
11761200 "afrikaans" ,
11771201 "albanian" ,
@@ -1314,6 +1338,8 @@ async def retrieve(
13141338 Args:
13151339 domain: Domain name to retrieve brand data for (e.g., 'stripe.com').
13161340
1341+ type: Discriminator for domain-based brand retrieval.
1342+
13171343 max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard
13181344 refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
13191345 are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
@@ -1342,6 +1368,7 @@ async def retrieve(
13421368 self ,
13431369 * ,
13441370 name : str ,
1371+ type : Literal ["by_name" ],
13451372 country_gl : str | Omit = omit ,
13461373 force_language : Literal [
13471374 "afrikaans" ,
@@ -1485,6 +1512,8 @@ async def retrieve(
14851512 Args:
14861513 name: Company name to retrieve brand data for (e.g., 'Apple Inc').
14871514
1515+ type: Discriminator for name-based brand retrieval.
1516+
14881517 country_gl: Optional country code hint (GL parameter) to specify the country when looking up
14891518 by company name.
14901519
@@ -1516,6 +1545,7 @@ async def retrieve(
15161545 self ,
15171546 * ,
15181547 email : str ,
1548+ type : Literal ["by_email" ],
15191549 force_language : Literal [
15201550 "afrikaans" ,
15211551 "albanian" ,
@@ -1658,6 +1688,8 @@ async def retrieve(
16581688 Args:
16591689 email: Email address to retrieve brand data for (e.g., 'jane@stripe.com').
16601690
1691+ type: Discriminator for email-based brand retrieval.
1692+
16611693 max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard
16621694 refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
16631695 are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
@@ -1686,6 +1718,7 @@ async def retrieve(
16861718 self ,
16871719 * ,
16881720 ticker : str ,
1721+ type : Literal ["by_ticker" ],
16891722 force_language : Literal [
16901723 "afrikaans" ,
16911724 "albanian" ,
@@ -1829,6 +1862,8 @@ async def retrieve(
18291862 Args:
18301863 ticker: Stock ticker symbol to retrieve brand data for (e.g., 'AAPL').
18311864
1865+ type: Discriminator for ticker-based brand retrieval.
1866+
18321867 max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard
18331868 refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms)
18341869 are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1
@@ -1859,6 +1894,7 @@ async def retrieve(
18591894 self ,
18601895 * ,
18611896 transaction_info : str ,
1897+ type : Literal ["by_transaction" ],
18621898 city : str | Omit = omit ,
18631899 country_gl : str | Omit = omit ,
18641900 force_language : Literal [
@@ -2005,6 +2041,8 @@ async def retrieve(
20052041 Args:
20062042 transaction_info: Transaction information to identify the brand.
20072043
2044+ type: Discriminator for transaction-based brand retrieval.
2045+
20082046 city: Optional city name to prioritize when searching for the brand.
20092047
20102048 country_gl: Optional country code hint (GL parameter) to specify the country when
@@ -2036,11 +2074,18 @@ async def retrieve(
20362074 """
20372075 ...
20382076
2039- @required_args (["domain" ], ["name" ], ["email" ], ["ticker" ], ["transaction_info" ])
2077+ @required_args (
2078+ ["domain" , "type" ], ["name" , "type" ], ["email" , "type" ], ["ticker" , "type" ], ["transaction_info" , "type" ]
2079+ )
20402080 async def retrieve (
20412081 self ,
20422082 * ,
20432083 domain : str | Omit = omit ,
2084+ type : Literal ["by_domain" ]
2085+ | Literal ["by_name" ]
2086+ | Literal ["by_email" ]
2087+ | Literal ["by_ticker" ]
2088+ | Literal ["by_transaction" ],
20442089 force_language : Literal [
20452090 "afrikaans" ,
20462091 "albanian" ,
@@ -2189,6 +2234,7 @@ async def retrieve(
21892234 body = await async_maybe_transform (
21902235 {
21912236 "domain" : domain ,
2237+ "type" : type ,
21922238 "force_language" : force_language ,
21932239 "max_age_ms" : max_age_ms ,
21942240 "max_speed" : max_speed ,
0 commit comments