What would be the cleanest way to wire a wyze security camera from a light switch in a staircase?
It looks like the white wire may be a neutral. This is good.
However, it looks like the switch is a 4 way switch (though I always though 3 way switches were used at the top of the stairs).  This is less good -- there's no consistent hot leg on it.
You can verify both of these with a multimeter.
So I don't think this box is going to help you much, as you need to have constant power and neutral to power an outlet.