Skip to content

Commit 59f9ac6

Browse files
feat(api): manual updates
1 parent 5a700a4 commit 59f9ac6

6 files changed

Lines changed: 81 additions & 31 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 9
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-1ff30126e780960cb04d5855fb8e9227099f91e1a3293f656cfaad50e1d7eb1c.yml
3-
openapi_spec_hash: 42c1034ce32cbe5410b124e577998de8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-a41dc66f0aa3dbc9e8fe1da75f1101cbcb2fac79f728de42e4877cfe1bde3b6e.yml
3+
openapi_spec_hash: 63c1a53e0899fb63a514dad395fd48f9
44
config_hash: 4b10254ea5b8e26ce632222b94a918aa

src/brand/dev/types/brand_ai_query_response.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ class DataExtracted(BaseModel):
1616

1717

1818
class BrandAIQueryResponse(BaseModel):
19-
code: Optional[int] = None
20-
"""HTTP status code"""
21-
2219
data_extracted: Optional[List[DataExtracted]] = None
2320
"""Array of extracted data points"""
2421

src/brand/dev/types/brand_identify_from_transaction_response.py

Lines changed: 23 additions & 6 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 List, Optional
4+
from typing_extensions import Literal
45

56
from .._models import BaseModel
67

@@ -52,6 +53,9 @@ class BrandBackdropColor(BaseModel):
5253

5354

5455
class BrandBackdropResolution(BaseModel):
56+
aspect_ratio: Optional[float] = None
57+
"""Aspect ratio of the image (width/height)"""
58+
5559
height: Optional[int] = None
5660
"""Height of the image in pixels"""
5761

@@ -87,6 +91,9 @@ class BrandLogoColor(BaseModel):
8791

8892

8993
class BrandLogoResolution(BaseModel):
94+
aspect_ratio: Optional[float] = None
95+
"""Aspect ratio of the image (width/height)"""
96+
9097
height: Optional[int] = None
9198
"""Height of the image in pixels"""
9299

@@ -98,17 +105,21 @@ class BrandLogo(BaseModel):
98105
colors: Optional[List[BrandLogoColor]] = None
99106
"""Array of colors in the logo"""
100107

101-
group: Optional[int] = None
102-
"""Group identifier for logos"""
103-
104-
mode: Optional[str] = None
105-
"""Mode of the logo, e.g., 'dark', 'light'"""
108+
mode: Optional[Literal["light", "dark", "has_opaque_background"]] = None
109+
"""
110+
Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
111+
best for dark mode, 'has_opaque_background' = can be used for either as image
112+
has its own background
113+
"""
106114

107115
resolution: Optional[BrandLogoResolution] = None
108116
"""Resolution of the logo image"""
109117

118+
type: Optional[Literal["icon", "logo"]] = None
119+
"""Type of the logo based on resolution (e.g., 'icon', 'logo')"""
120+
110121
url: Optional[str] = None
111-
"""URL of the logo image"""
122+
"""CDN hosted url of the logo (ready for display)"""
112123

113124

114125
class BrandSocial(BaseModel):
@@ -143,12 +154,18 @@ class Brand(BaseModel):
143154
domain: Optional[str] = None
144155
"""The domain name of the brand"""
145156

157+
email: Optional[str] = None
158+
"""Company email address"""
159+
146160
is_nsfw: Optional[bool] = None
147161
"""Indicates whether the brand content is not safe for work (NSFW)"""
148162

149163
logos: Optional[List[BrandLogo]] = None
150164
"""An array of logos associated with the brand"""
151165

166+
phone: Optional[str] = None
167+
"""Company phone number"""
168+
152169
slogan: Optional[str] = None
153170
"""The brand's slogan"""
154171

src/brand/dev/types/brand_retrieve_by_ticker_response.py

Lines changed: 23 additions & 6 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 List, Optional
4+
from typing_extensions import Literal
45

56
from .._models import BaseModel
67

@@ -52,6 +53,9 @@ class BrandBackdropColor(BaseModel):
5253

5354

5455
class BrandBackdropResolution(BaseModel):
56+
aspect_ratio: Optional[float] = None
57+
"""Aspect ratio of the image (width/height)"""
58+
5559
height: Optional[int] = None
5660
"""Height of the image in pixels"""
5761

@@ -87,6 +91,9 @@ class BrandLogoColor(BaseModel):
8791

8892

8993
class BrandLogoResolution(BaseModel):
94+
aspect_ratio: Optional[float] = None
95+
"""Aspect ratio of the image (width/height)"""
96+
9097
height: Optional[int] = None
9198
"""Height of the image in pixels"""
9299

@@ -98,17 +105,21 @@ class BrandLogo(BaseModel):
98105
colors: Optional[List[BrandLogoColor]] = None
99106
"""Array of colors in the logo"""
100107

101-
group: Optional[int] = None
102-
"""Group identifier for logos"""
103-
104-
mode: Optional[str] = None
105-
"""Mode of the logo, e.g., 'dark', 'light'"""
108+
mode: Optional[Literal["light", "dark", "has_opaque_background"]] = None
109+
"""
110+
Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
111+
best for dark mode, 'has_opaque_background' = can be used for either as image
112+
has its own background
113+
"""
106114

107115
resolution: Optional[BrandLogoResolution] = None
108116
"""Resolution of the logo image"""
109117

118+
type: Optional[Literal["icon", "logo"]] = None
119+
"""Type of the logo based on resolution (e.g., 'icon', 'logo')"""
120+
110121
url: Optional[str] = None
111-
"""URL of the logo image"""
122+
"""CDN hosted url of the logo (ready for display)"""
112123

113124

114125
class BrandSocial(BaseModel):
@@ -143,12 +154,18 @@ class Brand(BaseModel):
143154
domain: Optional[str] = None
144155
"""The domain name of the brand"""
145156

157+
email: Optional[str] = None
158+
"""Company email address"""
159+
146160
is_nsfw: Optional[bool] = None
147161
"""Indicates whether the brand content is not safe for work (NSFW)"""
148162

149163
logos: Optional[List[BrandLogo]] = None
150164
"""An array of logos associated with the brand"""
151165

166+
phone: Optional[str] = None
167+
"""Company phone number"""
168+
152169
slogan: Optional[str] = None
153170
"""The brand's slogan"""
154171

src/brand/dev/types/brand_retrieve_response.py

Lines changed: 23 additions & 6 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 List, Optional
4+
from typing_extensions import Literal
45

56
from .._models import BaseModel
67

@@ -52,6 +53,9 @@ class BrandBackdropColor(BaseModel):
5253

5354

5455
class BrandBackdropResolution(BaseModel):
56+
aspect_ratio: Optional[float] = None
57+
"""Aspect ratio of the image (width/height)"""
58+
5559
height: Optional[int] = None
5660
"""Height of the image in pixels"""
5761

@@ -87,6 +91,9 @@ class BrandLogoColor(BaseModel):
8791

8892

8993
class BrandLogoResolution(BaseModel):
94+
aspect_ratio: Optional[float] = None
95+
"""Aspect ratio of the image (width/height)"""
96+
9097
height: Optional[int] = None
9198
"""Height of the image in pixels"""
9299

@@ -98,17 +105,21 @@ class BrandLogo(BaseModel):
98105
colors: Optional[List[BrandLogoColor]] = None
99106
"""Array of colors in the logo"""
100107

101-
group: Optional[int] = None
102-
"""Group identifier for logos"""
103-
104-
mode: Optional[str] = None
105-
"""Mode of the logo, e.g., 'dark', 'light'"""
108+
mode: Optional[Literal["light", "dark", "has_opaque_background"]] = None
109+
"""
110+
Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
111+
best for dark mode, 'has_opaque_background' = can be used for either as image
112+
has its own background
113+
"""
106114

107115
resolution: Optional[BrandLogoResolution] = None
108116
"""Resolution of the logo image"""
109117

118+
type: Optional[Literal["icon", "logo"]] = None
119+
"""Type of the logo based on resolution (e.g., 'icon', 'logo')"""
120+
110121
url: Optional[str] = None
111-
"""URL of the logo image"""
122+
"""CDN hosted url of the logo (ready for display)"""
112123

113124

114125
class BrandSocial(BaseModel):
@@ -143,12 +154,18 @@ class Brand(BaseModel):
143154
domain: Optional[str] = None
144155
"""The domain name of the brand"""
145156

157+
email: Optional[str] = None
158+
"""Company email address"""
159+
146160
is_nsfw: Optional[bool] = None
147161
"""Indicates whether the brand content is not safe for work (NSFW)"""
148162

149163
logos: Optional[List[BrandLogo]] = None
150164
"""An array of logos associated with the brand"""
151165

166+
phone: Optional[str] = None
167+
"""Company phone number"""
168+
152169
slogan: Optional[str] = None
153170
"""The brand's slogan"""
154171

src/brand/dev/types/brand_retrieve_simplified_response.py

Lines changed: 10 additions & 8 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 List, Optional
4+
from typing_extensions import Literal
45

56
from .._models import BaseModel
67

@@ -78,20 +79,21 @@ class BrandLogo(BaseModel):
7879
colors: Optional[List[BrandLogoColor]] = None
7980
"""Array of colors in the logo"""
8081

81-
group: Optional[int] = None
82-
"""Group identifier for logos"""
83-
84-
mode: Optional[str] = None
85-
"""Mode of the logo, e.g., 'dark', 'light'"""
82+
mode: Optional[Literal["light", "dark", "has_opaque_background"]] = None
83+
"""
84+
Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
85+
best for dark mode, 'has_opaque_background' = can be used for either as image
86+
has its own background
87+
"""
8688

8789
resolution: Optional[BrandLogoResolution] = None
8890
"""Resolution of the logo image"""
8991

90-
type: Optional[str] = None
91-
"""Type of the logo based on resolution (e.g., 'icon', 'logo', 'banner')"""
92+
type: Optional[Literal["icon", "logo"]] = None
93+
"""Type of the logo based on resolution (e.g., 'icon', 'logo')"""
9294

9395
url: Optional[str] = None
94-
"""URL of the logo image"""
96+
"""CDN hosted url of the logo (ready for display)"""
9597

9698

9799
class Brand(BaseModel):

0 commit comments

Comments
 (0)