Skip to content

Commit 9918b37

Browse files
committed
AnnotationUI
1 parent 5a946a4 commit 9918b37

File tree

1 file changed

+12
-1
lines changed
  • packages/models-library/src/models_library/api_schemas_webserver

1 file changed

+12
-1
lines changed

packages/models-library/src/models_library/api_schemas_webserver/projects_ui.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class SlideshowUI(TypedDict):
4040

4141

4242
class AnnotationUI(BaseModel):
43-
type: Literal["note", "rect", "text"]
43+
type: Literal["note", "rect", "text", "conversation"]
4444
color: Annotated[Color, PlainSerializer(Color.as_hex)]
4545
attributes: Annotated[dict, Field(description="svg attributes")]
4646

@@ -71,6 +71,10 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
7171
"color": "#0000FF",
7272
"attributes": {"x": 415, "y": 100, "text": "Hey!"},
7373
},
74+
{
75+
"type": "conversation",
76+
"attributes": {"x": 415, "y": 100},
77+
},
7478
]
7579
},
7680
)
@@ -169,6 +173,13 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
169173
"fontSize": 12,
170174
},
171175
},
176+
"cf94f068-259c-4192-89f9-b2a56d51249d": {
177+
"type": "conversation",
178+
"attributes": {
179+
"x": 119,
180+
"y": 223,
181+
},
182+
},
172183
},
173184
"current_node_id": "4b3345e5-861f-47b0-8b52-a4508449be79",
174185
"template_type": "hypertool",

0 commit comments

Comments
 (0)