context.dev 0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- context/__init__.py +1 -0
- context/dev/__init__.py +102 -0
- context/dev/_base_client.py +2127 -0
- context/dev/_client.py +451 -0
- context/dev/_compat.py +219 -0
- context/dev/_constants.py +14 -0
- context/dev/_exceptions.py +108 -0
- context/dev/_files.py +123 -0
- context/dev/_models.py +872 -0
- context/dev/_qs.py +150 -0
- context/dev/_resource.py +43 -0
- context/dev/_response.py +835 -0
- context/dev/_streaming.py +338 -0
- context/dev/_types.py +270 -0
- context/dev/_utils/__init__.py +64 -0
- context/dev/_utils/_compat.py +45 -0
- context/dev/_utils/_datetime_parse.py +136 -0
- context/dev/_utils/_json.py +35 -0
- context/dev/_utils/_logs.py +25 -0
- context/dev/_utils/_proxy.py +65 -0
- context/dev/_utils/_reflection.py +42 -0
- context/dev/_utils/_resources_proxy.py +24 -0
- context/dev/_utils/_streams.py +12 -0
- context/dev/_utils/_sync.py +58 -0
- context/dev/_utils/_transform.py +457 -0
- context/dev/_utils/_typing.py +156 -0
- context/dev/_utils/_utils.py +421 -0
- context/dev/_version.py +4 -0
- context/dev/lib/.keep +4 -0
- context/dev/py.typed +0 -0
- context/dev/resources/__init__.py +19 -0
- context/dev/resources/brand.py +3994 -0
- context/dev/types/__init__.py +48 -0
- context/dev/types/brand_ai_product_params.py +20 -0
- context/dev/types/brand_ai_product_response.py +62 -0
- context/dev/types/brand_ai_products_params.py +44 -0
- context/dev/types/brand_ai_products_response.py +54 -0
- context/dev/types/brand_ai_query_params.py +86 -0
- context/dev/types/brand_ai_query_response.py +33 -0
- context/dev/types/brand_fonts_params.py +24 -0
- context/dev/types/brand_fonts_response.py +44 -0
- context/dev/types/brand_identify_from_transaction_params.py +349 -0
- context/dev/types/brand_identify_from_transaction_response.py +497 -0
- context/dev/types/brand_prefetch_by_email_params.py +25 -0
- context/dev/types/brand_prefetch_by_email_response.py +18 -0
- context/dev/types/brand_prefetch_params.py +21 -0
- context/dev/types/brand_prefetch_response.py +18 -0
- context/dev/types/brand_retrieve_by_email_params.py +88 -0
- context/dev/types/brand_retrieve_by_email_response.py +497 -0
- context/dev/types/brand_retrieve_by_isin_params.py +88 -0
- context/dev/types/brand_retrieve_by_isin_response.py +497 -0
- context/dev/types/brand_retrieve_by_name_params.py +87 -0
- context/dev/types/brand_retrieve_by_name_response.py +497 -0
- context/dev/types/brand_retrieve_by_ticker_params.py +163 -0
- context/dev/types/brand_retrieve_by_ticker_response.py +497 -0
- context/dev/types/brand_retrieve_naics_params.py +34 -0
- context/dev/types/brand_retrieve_naics_response.py +33 -0
- context/dev/types/brand_retrieve_params.py +91 -0
- context/dev/types/brand_retrieve_response.py +497 -0
- context/dev/types/brand_retrieve_simplified_params.py +21 -0
- context/dev/types/brand_retrieve_simplified_response.py +130 -0
- context/dev/types/brand_screenshot_params.py +40 -0
- context/dev/types/brand_screenshot_response.py +27 -0
- context/dev/types/brand_styleguide_params.py +38 -0
- context/dev/types/brand_styleguide_response.py +321 -0
- context/dev/types/brand_web_scrape_html_params.py +12 -0
- context/dev/types/brand_web_scrape_html_response.py +18 -0
- context/dev/types/brand_web_scrape_images_params.py +12 -0
- context/dev/types/brand_web_scrape_images_response.py +33 -0
- context/dev/types/brand_web_scrape_md_params.py +26 -0
- context/dev/types/brand_web_scrape_md_response.py +18 -0
- context/dev/types/brand_web_scrape_sitemap_params.py +15 -0
- context/dev/types/brand_web_scrape_sitemap_response.py +40 -0
- context_dev-0.0.3.dist-info/METADATA +448 -0
- context_dev-0.0.3.dist-info/RECORD +77 -0
- context_dev-0.0.3.dist-info/WHEEL +4 -0
- context_dev-0.0.3.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"BrandRetrieveResponse",
|
|
10
|
+
"Brand",
|
|
11
|
+
"BrandAddress",
|
|
12
|
+
"BrandBackdrop",
|
|
13
|
+
"BrandBackdropColor",
|
|
14
|
+
"BrandBackdropResolution",
|
|
15
|
+
"BrandColor",
|
|
16
|
+
"BrandIndustries",
|
|
17
|
+
"BrandIndustriesEic",
|
|
18
|
+
"BrandLinks",
|
|
19
|
+
"BrandLogo",
|
|
20
|
+
"BrandLogoColor",
|
|
21
|
+
"BrandLogoResolution",
|
|
22
|
+
"BrandSocial",
|
|
23
|
+
"BrandStock",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class BrandAddress(BaseModel):
|
|
28
|
+
"""Physical address of the brand"""
|
|
29
|
+
|
|
30
|
+
city: Optional[str] = None
|
|
31
|
+
"""City name"""
|
|
32
|
+
|
|
33
|
+
country: Optional[str] = None
|
|
34
|
+
"""Country name"""
|
|
35
|
+
|
|
36
|
+
country_code: Optional[str] = None
|
|
37
|
+
"""Country code"""
|
|
38
|
+
|
|
39
|
+
postal_code: Optional[str] = None
|
|
40
|
+
"""Postal or ZIP code"""
|
|
41
|
+
|
|
42
|
+
state_code: Optional[str] = None
|
|
43
|
+
"""State or province code"""
|
|
44
|
+
|
|
45
|
+
state_province: Optional[str] = None
|
|
46
|
+
"""State or province name"""
|
|
47
|
+
|
|
48
|
+
street: Optional[str] = None
|
|
49
|
+
"""Street address"""
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class BrandBackdropColor(BaseModel):
|
|
53
|
+
hex: Optional[str] = None
|
|
54
|
+
"""Color in hexadecimal format"""
|
|
55
|
+
|
|
56
|
+
name: Optional[str] = None
|
|
57
|
+
"""Name of the color"""
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class BrandBackdropResolution(BaseModel):
|
|
61
|
+
"""Resolution of the backdrop image"""
|
|
62
|
+
|
|
63
|
+
aspect_ratio: Optional[float] = None
|
|
64
|
+
"""Aspect ratio of the image (width/height)"""
|
|
65
|
+
|
|
66
|
+
height: Optional[int] = None
|
|
67
|
+
"""Height of the image in pixels"""
|
|
68
|
+
|
|
69
|
+
width: Optional[int] = None
|
|
70
|
+
"""Width of the image in pixels"""
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class BrandBackdrop(BaseModel):
|
|
74
|
+
colors: Optional[List[BrandBackdropColor]] = None
|
|
75
|
+
"""Array of colors in the backdrop image"""
|
|
76
|
+
|
|
77
|
+
resolution: Optional[BrandBackdropResolution] = None
|
|
78
|
+
"""Resolution of the backdrop image"""
|
|
79
|
+
|
|
80
|
+
url: Optional[str] = None
|
|
81
|
+
"""URL of the backdrop image"""
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class BrandColor(BaseModel):
|
|
85
|
+
hex: Optional[str] = None
|
|
86
|
+
"""Color in hexadecimal format"""
|
|
87
|
+
|
|
88
|
+
name: Optional[str] = None
|
|
89
|
+
"""Name of the color"""
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class BrandIndustriesEic(BaseModel):
|
|
93
|
+
industry: Literal[
|
|
94
|
+
"Aerospace & Defense",
|
|
95
|
+
"Technology",
|
|
96
|
+
"Finance",
|
|
97
|
+
"Healthcare",
|
|
98
|
+
"Retail & E-commerce",
|
|
99
|
+
"Entertainment",
|
|
100
|
+
"Education",
|
|
101
|
+
"Government & Nonprofit",
|
|
102
|
+
"Industrial & Energy",
|
|
103
|
+
"Automotive & Transportation",
|
|
104
|
+
"Lifestyle & Leisure",
|
|
105
|
+
"Luxury & Fashion",
|
|
106
|
+
"News & Media",
|
|
107
|
+
"Sports",
|
|
108
|
+
"Real Estate & PropTech",
|
|
109
|
+
"Legal & Compliance",
|
|
110
|
+
"Telecommunications",
|
|
111
|
+
"Agriculture & Food",
|
|
112
|
+
"Professional Services & Agencies",
|
|
113
|
+
"Chemicals & Materials",
|
|
114
|
+
"Logistics & Supply Chain",
|
|
115
|
+
"Hospitality & Tourism",
|
|
116
|
+
"Construction & Built Environment",
|
|
117
|
+
"Consumer Packaged Goods (CPG)",
|
|
118
|
+
]
|
|
119
|
+
"""Industry classification enum"""
|
|
120
|
+
|
|
121
|
+
subindustry: Literal[
|
|
122
|
+
"Defense Systems & Military Hardware",
|
|
123
|
+
"Aerospace Manufacturing",
|
|
124
|
+
"Avionics & Navigation Technology",
|
|
125
|
+
"Subsea & Naval Defense Systems",
|
|
126
|
+
"Space & Satellite Technology",
|
|
127
|
+
"Defense IT & Systems Integration",
|
|
128
|
+
"Software (B2B)",
|
|
129
|
+
"Software (B2C)",
|
|
130
|
+
"Cloud Infrastructure & DevOps",
|
|
131
|
+
"Cybersecurity",
|
|
132
|
+
"Artificial Intelligence & Machine Learning",
|
|
133
|
+
"Data Infrastructure & Analytics",
|
|
134
|
+
"Hardware & Semiconductors",
|
|
135
|
+
"Fintech Infrastructure",
|
|
136
|
+
"eCommerce & Marketplace Platforms",
|
|
137
|
+
"Developer Tools & APIs",
|
|
138
|
+
"Web3 & Blockchain",
|
|
139
|
+
"XR & Spatial Computing",
|
|
140
|
+
"Banking & Lending",
|
|
141
|
+
"Investment Management & WealthTech",
|
|
142
|
+
"Insurance & InsurTech",
|
|
143
|
+
"Payments & Money Movement",
|
|
144
|
+
"Accounting, Tax & Financial Planning Tools",
|
|
145
|
+
"Capital Markets & Trading Platforms",
|
|
146
|
+
"Financial Infrastructure & APIs",
|
|
147
|
+
"Credit Scoring & Risk Management",
|
|
148
|
+
"Cryptocurrency & Digital Assets",
|
|
149
|
+
"BNPL & Alternative Financing",
|
|
150
|
+
"Healthcare Providers & Services",
|
|
151
|
+
"Pharmaceuticals & Drug Development",
|
|
152
|
+
"Medical Devices & Diagnostics",
|
|
153
|
+
"Biotechnology & Genomics",
|
|
154
|
+
"Digital Health & Telemedicine",
|
|
155
|
+
"Health Insurance & Benefits Tech",
|
|
156
|
+
"Clinical Trials & Research Platforms",
|
|
157
|
+
"Mental Health & Wellness",
|
|
158
|
+
"Healthcare IT & EHR Systems",
|
|
159
|
+
"Consumer Health & Wellness Products",
|
|
160
|
+
"Online Marketplaces",
|
|
161
|
+
"Direct-to-Consumer (DTC) Brands",
|
|
162
|
+
"Retail Tech & Point-of-Sale Systems",
|
|
163
|
+
"Omnichannel & In-Store Retail",
|
|
164
|
+
"E-commerce Enablement & Infrastructure",
|
|
165
|
+
"Subscription & Membership Commerce",
|
|
166
|
+
"Social Commerce & Influencer Platforms",
|
|
167
|
+
"Fashion & Apparel Retail",
|
|
168
|
+
"Food, Beverage & Grocery E-commerce",
|
|
169
|
+
"Streaming Platforms (Video, Music, Audio)",
|
|
170
|
+
"Gaming & Interactive Entertainment",
|
|
171
|
+
"Creator Economy & Influencer Platforms",
|
|
172
|
+
"Advertising, Adtech & Media Buying",
|
|
173
|
+
"Film, TV & Production Studios",
|
|
174
|
+
"Events, Venues & Live Entertainment",
|
|
175
|
+
"Virtual Worlds & Metaverse Experiences",
|
|
176
|
+
"K-12 Education Platforms & Tools",
|
|
177
|
+
"Higher Education & University Tech",
|
|
178
|
+
"Online Learning & MOOCs",
|
|
179
|
+
"Test Prep & Certification",
|
|
180
|
+
"Corporate Training & Upskilling",
|
|
181
|
+
"Tutoring & Supplemental Learning",
|
|
182
|
+
"Education Management Systems (LMS/SIS)",
|
|
183
|
+
"Language Learning",
|
|
184
|
+
"Creator-Led & Cohort-Based Courses",
|
|
185
|
+
"Special Education & Accessibility Tools",
|
|
186
|
+
"Government Technology & Digital Services",
|
|
187
|
+
"Civic Engagement & Policy Platforms",
|
|
188
|
+
"International Development & Humanitarian Aid",
|
|
189
|
+
"Philanthropy & Grantmaking",
|
|
190
|
+
"Nonprofit Operations & Fundraising Tools",
|
|
191
|
+
"Public Health & Social Services",
|
|
192
|
+
"Education & Youth Development Programs",
|
|
193
|
+
"Environmental & Climate Action Organizations",
|
|
194
|
+
"Legal Aid & Social Justice Advocacy",
|
|
195
|
+
"Municipal & Infrastructure Services",
|
|
196
|
+
"Manufacturing & Industrial Automation",
|
|
197
|
+
"Energy Production (Oil, Gas, Nuclear)",
|
|
198
|
+
"Renewable Energy & Cleantech",
|
|
199
|
+
"Utilities & Grid Infrastructure",
|
|
200
|
+
"Industrial IoT & Monitoring Systems",
|
|
201
|
+
"Construction & Heavy Equipment",
|
|
202
|
+
"Mining & Natural Resources",
|
|
203
|
+
"Environmental Engineering & Sustainability",
|
|
204
|
+
"Energy Storage & Battery Technology",
|
|
205
|
+
"Automotive OEMs & Vehicle Manufacturing",
|
|
206
|
+
"Electric Vehicles (EVs) & Charging Infrastructure",
|
|
207
|
+
"Mobility-as-a-Service (MaaS)",
|
|
208
|
+
"Fleet Management",
|
|
209
|
+
"Public Transit & Urban Mobility",
|
|
210
|
+
"Autonomous Vehicles & ADAS",
|
|
211
|
+
"Aftermarket Parts & Services",
|
|
212
|
+
"Telematics & Vehicle Connectivity",
|
|
213
|
+
"Aviation & Aerospace Transport",
|
|
214
|
+
"Maritime Shipping",
|
|
215
|
+
"Fitness & Wellness",
|
|
216
|
+
"Beauty & Personal Care",
|
|
217
|
+
"Home & Living",
|
|
218
|
+
"Dating & Relationships",
|
|
219
|
+
"Hobbies, Crafts & DIY",
|
|
220
|
+
"Outdoor & Recreational Gear",
|
|
221
|
+
"Events, Experiences & Ticketing Platforms",
|
|
222
|
+
"Designer & Luxury Apparel",
|
|
223
|
+
"Accessories, Jewelry & Watches",
|
|
224
|
+
"Footwear & Leather Goods",
|
|
225
|
+
"Beauty, Fragrance & Skincare",
|
|
226
|
+
"Fashion Marketplaces & Retail Platforms",
|
|
227
|
+
"Sustainable & Ethical Fashion",
|
|
228
|
+
"Resale, Vintage & Circular Fashion",
|
|
229
|
+
"Fashion Tech & Virtual Try-Ons",
|
|
230
|
+
"Streetwear & Emerging Luxury",
|
|
231
|
+
"Couture & Made-to-Measure",
|
|
232
|
+
"News Publishing & Journalism",
|
|
233
|
+
"Digital Media & Content Platforms",
|
|
234
|
+
"Broadcasting (TV & Radio)",
|
|
235
|
+
"Podcasting & Audio Media",
|
|
236
|
+
"News Aggregators & Curation Tools",
|
|
237
|
+
"Independent & Creator-Led Media",
|
|
238
|
+
"Newsletters & Substack-Style Platforms",
|
|
239
|
+
"Political & Investigative Media",
|
|
240
|
+
"Trade & Niche Publications",
|
|
241
|
+
"Media Monitoring & Analytics",
|
|
242
|
+
"Professional Teams & Leagues",
|
|
243
|
+
"Sports Media & Broadcasting",
|
|
244
|
+
"Sports Betting & Fantasy Sports",
|
|
245
|
+
"Fitness & Athletic Training Platforms",
|
|
246
|
+
"Sportswear & Equipment",
|
|
247
|
+
"Esports & Competitive Gaming",
|
|
248
|
+
"Sports Venues & Event Management",
|
|
249
|
+
"Athlete Management & Talent Agencies",
|
|
250
|
+
"Sports Tech & Performance Analytics",
|
|
251
|
+
"Youth, Amateur & Collegiate Sports",
|
|
252
|
+
"Real Estate Marketplaces",
|
|
253
|
+
"Property Management Software",
|
|
254
|
+
"Rental Platforms",
|
|
255
|
+
"Mortgage & Lending Tech",
|
|
256
|
+
"Real Estate Investment Platforms",
|
|
257
|
+
"Law Firms & Legal Services",
|
|
258
|
+
"Legal Tech & Automation",
|
|
259
|
+
"Regulatory Compliance",
|
|
260
|
+
"E-Discovery & Litigation Tools",
|
|
261
|
+
"Contract Management",
|
|
262
|
+
"Governance, Risk & Compliance (GRC)",
|
|
263
|
+
"IP & Trademark Management",
|
|
264
|
+
"Legal Research & Intelligence",
|
|
265
|
+
"Compliance Training & Certification",
|
|
266
|
+
"Whistleblower & Ethics Reporting",
|
|
267
|
+
"Mobile & Wireless Networks (3G/4G/5G)",
|
|
268
|
+
"Broadband & Fiber Internet",
|
|
269
|
+
"Satellite & Space-Based Communications",
|
|
270
|
+
"Network Equipment & Infrastructure",
|
|
271
|
+
"Telecom Billing & OSS/BSS Systems",
|
|
272
|
+
"VoIP & Unified Communications",
|
|
273
|
+
"Internet Service Providers (ISPs)",
|
|
274
|
+
"Edge Computing & Network Virtualization",
|
|
275
|
+
"IoT Connectivity Platforms",
|
|
276
|
+
"Precision Agriculture & AgTech",
|
|
277
|
+
"Crop & Livestock Production",
|
|
278
|
+
"Food & Beverage Manufacturing & Processing",
|
|
279
|
+
"Food Distribution",
|
|
280
|
+
"Restaurants & Food Service",
|
|
281
|
+
"Agricultural Inputs & Equipment",
|
|
282
|
+
"Sustainable & Regenerative Agriculture",
|
|
283
|
+
"Seafood & Aquaculture",
|
|
284
|
+
"Management Consulting",
|
|
285
|
+
"Marketing & Advertising Agencies",
|
|
286
|
+
"Design, Branding & Creative Studios",
|
|
287
|
+
"IT Services & Managed Services",
|
|
288
|
+
"Staffing, Recruiting & Talent",
|
|
289
|
+
"Accounting & Tax Firms",
|
|
290
|
+
"Public Relations & Communications",
|
|
291
|
+
"Business Process Outsourcing (BPO)",
|
|
292
|
+
"Professional Training & Coaching",
|
|
293
|
+
"Specialty Chemicals",
|
|
294
|
+
"Commodity & Petrochemicals",
|
|
295
|
+
"Polymers, Plastics & Rubber",
|
|
296
|
+
"Coatings, Adhesives & Sealants",
|
|
297
|
+
"Industrial Gases",
|
|
298
|
+
"Advanced Materials & Composites",
|
|
299
|
+
"Battery Materials & Energy Storage",
|
|
300
|
+
"Electronic Materials & Semiconductor Chemicals",
|
|
301
|
+
"Agrochemicals & Fertilizers",
|
|
302
|
+
"Freight & Transportation Tech",
|
|
303
|
+
"Last-Mile Delivery",
|
|
304
|
+
"Warehouse Automation",
|
|
305
|
+
"Supply Chain Visibility Platforms",
|
|
306
|
+
"Logistics Marketplaces",
|
|
307
|
+
"Shipping & Freight Forwarding",
|
|
308
|
+
"Cold Chain Logistics",
|
|
309
|
+
"Reverse Logistics & Returns",
|
|
310
|
+
"Cross-Border Trade Tech",
|
|
311
|
+
"Transportation Management Systems (TMS)",
|
|
312
|
+
"Hotels & Accommodation",
|
|
313
|
+
"Vacation Rentals & Short-Term Stays",
|
|
314
|
+
"Restaurant Tech & Management",
|
|
315
|
+
"Travel Booking Platforms",
|
|
316
|
+
"Tourism Experiences & Activities",
|
|
317
|
+
"Cruise Lines & Marine Tourism",
|
|
318
|
+
"Hospitality Management Systems",
|
|
319
|
+
"Event & Venue Management",
|
|
320
|
+
"Corporate Travel Management",
|
|
321
|
+
"Travel Insurance & Protection",
|
|
322
|
+
"Construction Management Software",
|
|
323
|
+
"BIM/CAD & Design Tools",
|
|
324
|
+
"Construction Marketplaces",
|
|
325
|
+
"Equipment Rental & Management",
|
|
326
|
+
"Building Materials & Procurement",
|
|
327
|
+
"Construction Workforce Management",
|
|
328
|
+
"Project Estimation & Bidding",
|
|
329
|
+
"Modular & Prefab Construction",
|
|
330
|
+
"Construction Safety & Compliance",
|
|
331
|
+
"Smart Building Technology",
|
|
332
|
+
"Food & Beverage CPG",
|
|
333
|
+
"Home & Personal Care CPG",
|
|
334
|
+
"CPG Analytics & Insights",
|
|
335
|
+
"Direct-to-Consumer CPG Brands",
|
|
336
|
+
"CPG Supply Chain & Distribution",
|
|
337
|
+
"Private Label Manufacturing",
|
|
338
|
+
"CPG Retail Intelligence",
|
|
339
|
+
"Sustainable CPG & Packaging",
|
|
340
|
+
"Beauty & Cosmetics CPG",
|
|
341
|
+
"Health & Wellness CPG",
|
|
342
|
+
]
|
|
343
|
+
"""Subindustry classification enum"""
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
class BrandIndustries(BaseModel):
|
|
347
|
+
"""Industry classification information for the brand"""
|
|
348
|
+
|
|
349
|
+
eic: Optional[List[BrandIndustriesEic]] = None
|
|
350
|
+
"""Easy Industry Classification - array of industry and subindustry pairs"""
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
class BrandLinks(BaseModel):
|
|
354
|
+
"""Important website links for the brand"""
|
|
355
|
+
|
|
356
|
+
blog: Optional[str] = None
|
|
357
|
+
"""URL to the brand's blog or news page"""
|
|
358
|
+
|
|
359
|
+
careers: Optional[str] = None
|
|
360
|
+
"""URL to the brand's careers or job opportunities page"""
|
|
361
|
+
|
|
362
|
+
contact: Optional[str] = None
|
|
363
|
+
"""URL to the brand's contact or contact us page"""
|
|
364
|
+
|
|
365
|
+
pricing: Optional[str] = None
|
|
366
|
+
"""URL to the brand's pricing or plans page"""
|
|
367
|
+
|
|
368
|
+
privacy: Optional[str] = None
|
|
369
|
+
"""URL to the brand's privacy policy page"""
|
|
370
|
+
|
|
371
|
+
terms: Optional[str] = None
|
|
372
|
+
"""URL to the brand's terms of service or terms and conditions page"""
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
class BrandLogoColor(BaseModel):
|
|
376
|
+
hex: Optional[str] = None
|
|
377
|
+
"""Color in hexadecimal format"""
|
|
378
|
+
|
|
379
|
+
name: Optional[str] = None
|
|
380
|
+
"""Name of the color"""
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
class BrandLogoResolution(BaseModel):
|
|
384
|
+
"""Resolution of the logo image"""
|
|
385
|
+
|
|
386
|
+
aspect_ratio: Optional[float] = None
|
|
387
|
+
"""Aspect ratio of the image (width/height)"""
|
|
388
|
+
|
|
389
|
+
height: Optional[int] = None
|
|
390
|
+
"""Height of the image in pixels"""
|
|
391
|
+
|
|
392
|
+
width: Optional[int] = None
|
|
393
|
+
"""Width of the image in pixels"""
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
class BrandLogo(BaseModel):
|
|
397
|
+
colors: Optional[List[BrandLogoColor]] = None
|
|
398
|
+
"""Array of colors in the logo"""
|
|
399
|
+
|
|
400
|
+
mode: Optional[Literal["light", "dark", "has_opaque_background"]] = None
|
|
401
|
+
"""
|
|
402
|
+
Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
|
403
|
+
best for dark mode, 'has_opaque_background' = can be used for either as image
|
|
404
|
+
has its own background
|
|
405
|
+
"""
|
|
406
|
+
|
|
407
|
+
resolution: Optional[BrandLogoResolution] = None
|
|
408
|
+
"""Resolution of the logo image"""
|
|
409
|
+
|
|
410
|
+
type: Optional[Literal["icon", "logo"]] = None
|
|
411
|
+
"""Type of the logo based on resolution (e.g., 'icon', 'logo')"""
|
|
412
|
+
|
|
413
|
+
url: Optional[str] = None
|
|
414
|
+
"""CDN hosted url of the logo (ready for display)"""
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
class BrandSocial(BaseModel):
|
|
418
|
+
type: Optional[str] = None
|
|
419
|
+
"""Type of social media, e.g., 'facebook', 'twitter'"""
|
|
420
|
+
|
|
421
|
+
url: Optional[str] = None
|
|
422
|
+
"""URL of the social media page"""
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
class BrandStock(BaseModel):
|
|
426
|
+
"""
|
|
427
|
+
Stock market information for this brand (will be null if not a publicly traded company)
|
|
428
|
+
"""
|
|
429
|
+
|
|
430
|
+
exchange: Optional[str] = None
|
|
431
|
+
"""Stock exchange name"""
|
|
432
|
+
|
|
433
|
+
ticker: Optional[str] = None
|
|
434
|
+
"""Stock ticker symbol"""
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
class Brand(BaseModel):
|
|
438
|
+
"""Detailed brand information"""
|
|
439
|
+
|
|
440
|
+
address: Optional[BrandAddress] = None
|
|
441
|
+
"""Physical address of the brand"""
|
|
442
|
+
|
|
443
|
+
backdrops: Optional[List[BrandBackdrop]] = None
|
|
444
|
+
"""An array of backdrop images for the brand"""
|
|
445
|
+
|
|
446
|
+
colors: Optional[List[BrandColor]] = None
|
|
447
|
+
"""An array of brand colors"""
|
|
448
|
+
|
|
449
|
+
description: Optional[str] = None
|
|
450
|
+
"""A brief description of the brand"""
|
|
451
|
+
|
|
452
|
+
domain: Optional[str] = None
|
|
453
|
+
"""The domain name of the brand"""
|
|
454
|
+
|
|
455
|
+
email: Optional[str] = None
|
|
456
|
+
"""Company email address"""
|
|
457
|
+
|
|
458
|
+
industries: Optional[BrandIndustries] = None
|
|
459
|
+
"""Industry classification information for the brand"""
|
|
460
|
+
|
|
461
|
+
is_nsfw: Optional[bool] = None
|
|
462
|
+
"""Indicates whether the brand content is not safe for work (NSFW)"""
|
|
463
|
+
|
|
464
|
+
links: Optional[BrandLinks] = None
|
|
465
|
+
"""Important website links for the brand"""
|
|
466
|
+
|
|
467
|
+
logos: Optional[List[BrandLogo]] = None
|
|
468
|
+
"""An array of logos associated with the brand"""
|
|
469
|
+
|
|
470
|
+
phone: Optional[str] = None
|
|
471
|
+
"""Company phone number"""
|
|
472
|
+
|
|
473
|
+
slogan: Optional[str] = None
|
|
474
|
+
"""The brand's slogan"""
|
|
475
|
+
|
|
476
|
+
socials: Optional[List[BrandSocial]] = None
|
|
477
|
+
"""An array of social media links for the brand"""
|
|
478
|
+
|
|
479
|
+
stock: Optional[BrandStock] = None
|
|
480
|
+
"""
|
|
481
|
+
Stock market information for this brand (will be null if not a publicly traded
|
|
482
|
+
company)
|
|
483
|
+
"""
|
|
484
|
+
|
|
485
|
+
title: Optional[str] = None
|
|
486
|
+
"""The title or name of the brand"""
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
class BrandRetrieveResponse(BaseModel):
|
|
490
|
+
brand: Optional[Brand] = None
|
|
491
|
+
"""Detailed brand information"""
|
|
492
|
+
|
|
493
|
+
code: Optional[int] = None
|
|
494
|
+
"""HTTP status code"""
|
|
495
|
+
|
|
496
|
+
status: Optional[str] = None
|
|
497
|
+
"""Status of the response, e.g., 'ok'"""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from .._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["BrandRetrieveSimplifiedParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class BrandRetrieveSimplifiedParams(TypedDict, total=False):
|
|
13
|
+
domain: Required[str]
|
|
14
|
+
"""Domain name to retrieve simplified brand data for"""
|
|
15
|
+
|
|
16
|
+
timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")]
|
|
17
|
+
"""Optional timeout in milliseconds for the request.
|
|
18
|
+
|
|
19
|
+
If the request takes longer than this value, it will be aborted with a 408
|
|
20
|
+
status code. Maximum allowed value is 300000ms (5 minutes).
|
|
21
|
+
"""
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"BrandRetrieveSimplifiedResponse",
|
|
10
|
+
"Brand",
|
|
11
|
+
"BrandBackdrop",
|
|
12
|
+
"BrandBackdropColor",
|
|
13
|
+
"BrandBackdropResolution",
|
|
14
|
+
"BrandColor",
|
|
15
|
+
"BrandLogo",
|
|
16
|
+
"BrandLogoColor",
|
|
17
|
+
"BrandLogoResolution",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class BrandBackdropColor(BaseModel):
|
|
22
|
+
hex: Optional[str] = None
|
|
23
|
+
"""Color in hexadecimal format"""
|
|
24
|
+
|
|
25
|
+
name: Optional[str] = None
|
|
26
|
+
"""Name of the color"""
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class BrandBackdropResolution(BaseModel):
|
|
30
|
+
"""Resolution of the backdrop image"""
|
|
31
|
+
|
|
32
|
+
aspect_ratio: Optional[float] = None
|
|
33
|
+
"""Aspect ratio of the image (width/height)"""
|
|
34
|
+
|
|
35
|
+
height: Optional[int] = None
|
|
36
|
+
"""Height of the image in pixels"""
|
|
37
|
+
|
|
38
|
+
width: Optional[int] = None
|
|
39
|
+
"""Width of the image in pixels"""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class BrandBackdrop(BaseModel):
|
|
43
|
+
colors: Optional[List[BrandBackdropColor]] = None
|
|
44
|
+
"""Array of colors in the backdrop image"""
|
|
45
|
+
|
|
46
|
+
resolution: Optional[BrandBackdropResolution] = None
|
|
47
|
+
"""Resolution of the backdrop image"""
|
|
48
|
+
|
|
49
|
+
url: Optional[str] = None
|
|
50
|
+
"""URL of the backdrop image"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class BrandColor(BaseModel):
|
|
54
|
+
hex: Optional[str] = None
|
|
55
|
+
"""Color in hexadecimal format"""
|
|
56
|
+
|
|
57
|
+
name: Optional[str] = None
|
|
58
|
+
"""Name of the color"""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class BrandLogoColor(BaseModel):
|
|
62
|
+
hex: Optional[str] = None
|
|
63
|
+
"""Color in hexadecimal format"""
|
|
64
|
+
|
|
65
|
+
name: Optional[str] = None
|
|
66
|
+
"""Name of the color"""
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class BrandLogoResolution(BaseModel):
|
|
70
|
+
"""Resolution of the logo image"""
|
|
71
|
+
|
|
72
|
+
aspect_ratio: Optional[float] = None
|
|
73
|
+
"""Aspect ratio of the image (width/height)"""
|
|
74
|
+
|
|
75
|
+
height: Optional[int] = None
|
|
76
|
+
"""Height of the image in pixels"""
|
|
77
|
+
|
|
78
|
+
width: Optional[int] = None
|
|
79
|
+
"""Width of the image in pixels"""
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class BrandLogo(BaseModel):
|
|
83
|
+
colors: Optional[List[BrandLogoColor]] = None
|
|
84
|
+
"""Array of colors in the logo"""
|
|
85
|
+
|
|
86
|
+
mode: Optional[Literal["light", "dark", "has_opaque_background"]] = None
|
|
87
|
+
"""
|
|
88
|
+
Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
|
89
|
+
best for dark mode, 'has_opaque_background' = can be used for either as image
|
|
90
|
+
has its own background
|
|
91
|
+
"""
|
|
92
|
+
|
|
93
|
+
resolution: Optional[BrandLogoResolution] = None
|
|
94
|
+
"""Resolution of the logo image"""
|
|
95
|
+
|
|
96
|
+
type: Optional[Literal["icon", "logo"]] = None
|
|
97
|
+
"""Type of the logo based on resolution (e.g., 'icon', 'logo')"""
|
|
98
|
+
|
|
99
|
+
url: Optional[str] = None
|
|
100
|
+
"""CDN hosted url of the logo (ready for display)"""
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class Brand(BaseModel):
|
|
104
|
+
"""Simplified brand information"""
|
|
105
|
+
|
|
106
|
+
backdrops: Optional[List[BrandBackdrop]] = None
|
|
107
|
+
"""An array of backdrop images for the brand"""
|
|
108
|
+
|
|
109
|
+
colors: Optional[List[BrandColor]] = None
|
|
110
|
+
"""An array of brand colors"""
|
|
111
|
+
|
|
112
|
+
domain: Optional[str] = None
|
|
113
|
+
"""The domain name of the brand"""
|
|
114
|
+
|
|
115
|
+
logos: Optional[List[BrandLogo]] = None
|
|
116
|
+
"""An array of logos associated with the brand"""
|
|
117
|
+
|
|
118
|
+
title: Optional[str] = None
|
|
119
|
+
"""The title or name of the brand"""
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class BrandRetrieveSimplifiedResponse(BaseModel):
|
|
123
|
+
brand: Optional[Brand] = None
|
|
124
|
+
"""Simplified brand information"""
|
|
125
|
+
|
|
126
|
+
code: Optional[int] = None
|
|
127
|
+
"""HTTP status code of the response"""
|
|
128
|
+
|
|
129
|
+
status: Optional[str] = None
|
|
130
|
+
"""Status of the response, e.g., 'ok'"""
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
6
|
+
|
|
7
|
+
from .._utils import PropertyInfo
|
|
8
|
+
|
|
9
|
+
__all__ = ["BrandScreenshotParams"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class BrandScreenshotParams(TypedDict, total=False):
|
|
13
|
+
domain: Required[str]
|
|
14
|
+
"""Domain name to take screenshot of (e.g., 'example.com', 'google.com').
|
|
15
|
+
|
|
16
|
+
The domain will be automatically normalized and validated.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
full_screenshot: Annotated[Literal["true", "false"], PropertyInfo(alias="fullScreenshot")]
|
|
20
|
+
"""Optional parameter to determine screenshot type.
|
|
21
|
+
|
|
22
|
+
If 'true', takes a full page screenshot capturing all content. If 'false' or not
|
|
23
|
+
provided, takes a viewport screenshot (standard browser view).
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
page: Literal["login", "signup", "blog", "careers", "pricing", "terms", "privacy", "contact"]
|
|
27
|
+
"""Optional parameter to specify which page type to screenshot.
|
|
28
|
+
|
|
29
|
+
If provided, the system will scrape the domain's links and use heuristics to
|
|
30
|
+
find the most appropriate URL for the specified page type (30 supported
|
|
31
|
+
languages). If not provided, screenshots the main domain landing page.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
prioritize: Literal["speed", "quality"]
|
|
35
|
+
"""Optional parameter to prioritize screenshot capture.
|
|
36
|
+
|
|
37
|
+
If 'speed', optimizes for faster capture with basic quality. If 'quality',
|
|
38
|
+
optimizes for higher quality with longer wait times. Defaults to 'quality' if
|
|
39
|
+
not provided.
|
|
40
|
+
"""
|