Thank you this is a proper explanation. So would the (official GUI/CLI) interface be more correctly described as middleware?
No.
https://en.wikipedia.org/wiki/MiddlewareIn some sense the daemon might be considered middleware. The GUI/CLI wallet would be the end user application.
Thank you.