Return memory patch candidates from propose

This commit is contained in:
Meta Vens 2026-05-18 05:27:54 +01:00
commit 09238eb623
8 changed files with 125 additions and 8 deletions

View file

@ -2821,6 +2821,7 @@ mod tests {
}),
..Default::default()
},
memory_patch_candidates: Vec::new(),
},
};

View file

@ -5013,6 +5013,9 @@ pub struct ThreadEpiphanyProposeParams {
pub struct ThreadEpiphanyProposeResponse {
pub expected_revision: u64,
pub patch: ThreadEpiphanyUpdatePatch,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<CoreEpiphanyMemoryPatchCandidate>")]
pub memory_patch_candidates: Vec<CoreEpiphanyMemoryPatchCandidate>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]