Merriam-Webster [augmented, especially with further examples, below] asserts that there are six, not just two, senses that should be distinguished.
The ones showing deontic modality (moral obligation; permission) are
be supposed to ...
[4] —used to say what someone should do ...
- I'm supposed to clean my room before I go outside. ...
[5] —used to refer to what someone is allowed to do [used in a negative, sometimes interrogative, context]
The other senses convey [1] expectation of a future event, [2] intent, [3] irritation (a pragmatic usage), and [6] modality in the sense of received wisdom.
[1]: to be expected to do something [ie occur]
- [It's supposed to rain tomorrow.]
[2]: to be intended ... to be something
- The party was supposed to be a surprise [but Tom let the cat out of the bag].
- [This soup is supposed to be hot.]
[3] —used [intensifyingly] to show that one is angry or offended[,
irritated], by something ...
- "Well, you've done it again." "What's
that supposed to mean?"
[6] —used to indicate what people say about someone or something ...
- That breed of dog is supposed to be good with kids. [alleged/reputed]
...............
In the above, care has been taken to (hopefully) distinguish the senses M-W considers independent. A problem to be avoided is using say 'expected' carelessly in a definition, as it itself has both deontic and epistemic senses.