2026-01-23 22:33:22 -03:00
|
|
|
from ....schemas.dto import BaseModelSdk
|
2026-01-20 22:26:39 -03:00
|
|
|
from pydantic import ConfigDict
|
|
|
|
|
from typing import Dict, Any, Optional
|
|
|
|
|
|
|
|
|
|
class RichText(BaseModelSdk):
|
2026-01-23 22:33:22 -03:00
|
|
|
model_config = ConfigDict(title="Notion_Responses_Properties_RichText")
|
2026-01-20 22:26:39 -03:00
|
|
|
type: str
|
|
|
|
|
text: 'Text'
|
|
|
|
|
annotations: 'Annotations'
|
|
|
|
|
plain_text: Optional[str]
|
|
|
|
|
href: Optional[str]
|
|
|
|
|
|
|
|
|
|
class Text(BaseModelSdk):
|
|
|
|
|
content: Optional[str]
|
|
|
|
|
link: Optional[str]
|
|
|
|
|
|
|
|
|
|
class Annotations(BaseModelSdk):
|
|
|
|
|
bold: bool
|
|
|
|
|
italic: bool
|
|
|
|
|
strikethrough: bool
|
|
|
|
|
underline: bool
|
|
|
|
|
code: bool
|
|
|
|
|
color: str
|