|
1 | 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
2 | 2 |
|
3 | | -from typing import List, Optional |
| 3 | +from typing import Dict, List, Optional |
4 | 4 | from typing_extensions import Literal |
5 | 5 |
|
6 | 6 | from pydantic import Field as FieldInfo |
|
18 | 18 | "StyleguideComponentsButtonSecondary", |
19 | 19 | "StyleguideComponentsCard", |
20 | 20 | "StyleguideElementSpacing", |
| 21 | + "StyleguideFontLinks", |
21 | 22 | "StyleguideShadows", |
22 | 23 | "StyleguideTypography", |
23 | 24 | "StyleguideTypographyHeadings", |
@@ -244,6 +245,30 @@ class StyleguideElementSpacing(BaseModel): |
244 | 245 | xs: str |
245 | 246 |
|
246 | 247 |
|
| 248 | +class StyleguideFontLinks(BaseModel): |
| 249 | + files: Dict[str, str] |
| 250 | + """Upright font files keyed by weight string (e.g. |
| 251 | +
|
| 252 | + "400" for regular, "500", "700"). Values are absolute URLs. |
| 253 | + """ |
| 254 | + |
| 255 | + type: Literal["google", "custom"] |
| 256 | + |
| 257 | + category: Optional[str] = None |
| 258 | + """Google Fonts category when type is google (e.g. |
| 259 | +
|
| 260 | + sans-serif, serif, monospace, display, handwriting). Omitted for custom fonts |
| 261 | + when unknown. |
| 262 | + """ |
| 263 | + |
| 264 | + display_name: Optional[str] = FieldInfo(alias="displayName", default=None) |
| 265 | + """ |
| 266 | + Present when type is custom: human-readable name derived from the fontLinks key |
| 267 | + (strip build/hash suffixes, split camelCase / PascalCase, normalize separators). |
| 268 | + Google entries omit this. |
| 269 | + """ |
| 270 | + |
| 271 | + |
247 | 272 | class StyleguideShadows(BaseModel): |
248 | 273 | """Shadow styles used on the website""" |
249 | 274 |
|
@@ -371,6 +396,13 @@ class Styleguide(BaseModel): |
371 | 396 | element_spacing: StyleguideElementSpacing = FieldInfo(alias="elementSpacing") |
372 | 397 | """Spacing system used on the website""" |
373 | 398 |
|
| 399 | + font_links: Dict[str, StyleguideFontLinks] = FieldInfo(alias="fontLinks") |
| 400 | + """ |
| 401 | + Font assets keyed by family name as it appears in fontFamily/fontFallbacks |
| 402 | + (non-generic names only). Clients match typography.fontFamily / fontWeight or |
| 403 | + button styles to pick a file URL from files. |
| 404 | + """ |
| 405 | + |
374 | 406 | mode: Literal["light", "dark"] |
375 | 407 | """The primary color mode of the website design""" |
376 | 408 |
|
|
0 commit comments