The code on the web to interface with the search API exposed via WASM.
Depends on D12851
Tested later in the stack by @inka.
we can merge those two and name something like MessagesResponse but not sure if worth
Sounds quite cheap, we can have e.g. GetMessagesResponse.
merge types