Tag InputItem (#2304)

Instead of:
```
{ Text: { text: string } }
```

It is now:
```
{ type: "text", data: { text: string } }
```
which makes for cleaner discriminated unions
This commit is contained in:
Gabriel Peal
2025-08-14 10:58:04 -07:00
committed by GitHub
parent cf7a7e63a3
commit cdd33b2c04

View File

@@ -144,6 +144,7 @@ pub struct RemoveConversationListenerParams {
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
#[serde(tag = "type", content = "data")]
pub enum InputItem {
Text {
text: String,