Skip to content

Commit 87df1d4

Browse files
feat(api): api update
1 parent 1fe969e commit 87df1d4

4 files changed

Lines changed: 54 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 @@
11
configured_endpoints: 8
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-0758a435064bd016fe211989cb7f6a3441460664aead5870777f8a662aa69794.yml
3-
openapi_spec_hash: d646572eb126d1d18327240959fc96af
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-de37a4d4350c9cbde36a0e712baa6bf4f00c7ce9b70f5b24d18558740bbfa35b.yml
3+
openapi_spec_hash: 60eed6f8f984700475d589a871c73932
44
config_hash: a7a306a1c85eef178e7989e0ce5979c6

src/brand/dev/types/brand_identify_from_transaction_response.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"BrandColor",
1616
"BrandIndustries",
1717
"BrandIndustriesEic",
18+
"BrandLinks",
1819
"BrandLogo",
1920
"BrandLogoColor",
2021
"BrandLogoResolution",
@@ -343,6 +344,26 @@ class BrandIndustries(BaseModel):
343344
"""Easy Industry Classification - array of industry and subindustry pairs"""
344345

345346

347+
class BrandLinks(BaseModel):
348+
blog: Optional[str] = None
349+
"""URL to the brand's blog or news page"""
350+
351+
careers: Optional[str] = None
352+
"""URL to the brand's careers or job opportunities page"""
353+
354+
contact: Optional[str] = None
355+
"""URL to the brand's contact or contact us page"""
356+
357+
pricing: Optional[str] = None
358+
"""URL to the brand's pricing or plans page"""
359+
360+
privacy: Optional[str] = None
361+
"""URL to the brand's privacy policy page"""
362+
363+
terms: Optional[str] = None
364+
"""URL to the brand's terms of service or terms and conditions page"""
365+
366+
346367
class BrandLogoColor(BaseModel):
347368
hex: Optional[str] = None
348369
"""Color in hexadecimal format"""
@@ -424,6 +445,9 @@ class Brand(BaseModel):
424445
is_nsfw: Optional[bool] = None
425446
"""Indicates whether the brand content is not safe for work (NSFW)"""
426447

448+
links: Optional[BrandLinks] = None
449+
"""Important website links for the brand"""
450+
427451
logos: Optional[List[BrandLogo]] = None
428452
"""An array of logos associated with the brand"""
429453

src/brand/dev/types/brand_retrieve_response.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"BrandColor",
1616
"BrandIndustries",
1717
"BrandIndustriesEic",
18+
"BrandLinks",
1819
"BrandLogo",
1920
"BrandLogoColor",
2021
"BrandLogoResolution",
@@ -343,6 +344,26 @@ class BrandIndustries(BaseModel):
343344
"""Easy Industry Classification - array of industry and subindustry pairs"""
344345

345346

347+
class BrandLinks(BaseModel):
348+
blog: Optional[str] = None
349+
"""URL to the brand's blog or news page"""
350+
351+
careers: Optional[str] = None
352+
"""URL to the brand's careers or job opportunities page"""
353+
354+
contact: Optional[str] = None
355+
"""URL to the brand's contact or contact us page"""
356+
357+
pricing: Optional[str] = None
358+
"""URL to the brand's pricing or plans page"""
359+
360+
privacy: Optional[str] = None
361+
"""URL to the brand's privacy policy page"""
362+
363+
terms: Optional[str] = None
364+
"""URL to the brand's terms of service or terms and conditions page"""
365+
366+
346367
class BrandLogoColor(BaseModel):
347368
hex: Optional[str] = None
348369
"""Color in hexadecimal format"""
@@ -424,6 +445,9 @@ class Brand(BaseModel):
424445
is_nsfw: Optional[bool] = None
425446
"""Indicates whether the brand content is not safe for work (NSFW)"""
426447

448+
links: Optional[BrandLinks] = None
449+
"""Important website links for the brand"""
450+
427451
logos: Optional[List[BrandLogo]] = None
428452
"""An array of logos associated with the brand"""
429453

src/brand/dev/types/brand_styleguide_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4+
from typing_extensions import Literal
45

56
from pydantic import Field as FieldInfo
67

@@ -270,6 +271,9 @@ class Styleguide(BaseModel):
270271
element_spacing: Optional[StyleguideElementSpacing] = FieldInfo(alias="elementSpacing", default=None)
271272
"""Spacing system used on the website"""
272273

274+
mode: Optional[Literal["light", "dark"]] = None
275+
"""The primary color mode of the website design"""
276+
273277
shadows: Optional[StyleguideShadows] = None
274278
"""Shadow styles used on the website"""
275279

0 commit comments

Comments
 (0)