Skip to content

Commit fe26ff8

Browse files
authored
fix: slack event type for rich text (#727)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent 01ea05d commit fe26ff8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/codegen/extensions/slack/types.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ class RichTextElement(BaseModel):
77
type: str
88
user_id: str | None = None
99
text: str | None = None
10+
style: dict | None = None
11+
url: str | None = None
12+
channel_id: str | None = None
1013

1114

1215
class RichTextSection(BaseModel):
13-
type: Literal["rich_text_section"]
16+
type: Literal["rich_text_section", "rich_text_list", "rich_text_quote", "rich_text_preformatted", "text", "channel", "user", "emoji", "link"]
1417
elements: list[RichTextElement]
18+
style: dict | None = None
1519

1620

1721
class Block(BaseModel):
18-
type: Literal["rich_text"]
22+
type: Literal["rich_text", "section", "divider", "header", "context", "actions", "image"]
1923
block_id: str
2024
elements: list[RichTextSection]
2125

0 commit comments

Comments
 (0)