I don't want to rain on your parade, but even if you aren't medically retired, your sickness and absence will be asked about with any potential new job, and for many employers, depression is a sorry, you have not been successful this time, etc etc. I'm not saying it's right, but it happens. I'm not in a position to offer anyone work, but having been badly depresssed many years ago, I would not prejudice against this myself.
I was actually medically retired earlier this year. I was a postman who developed a bad foot condition which meant I cold barely walk. Luckily mine was a condition that was just made worse because of all the walking, and I am better now. That said, I'm not working, and for reasons am having to start over elsewhere. I was also lucky to have been in the job long enough to get a payout (but no pension as I'm too young) so things weren't that bad for me me.
The trick is to turn it all round to your advantage if you can, and look on it as a new beginning rather than an ending. I hated my job by the end, but that was largely due to the effect it was having on my health, and though it has cost me my house (I'm having to sell up and move well away cos I cannot afford to stay) I've tried to make sure that whatever changes I have made are for my benefit in the long run. This isn't what you need on top of your depression but on the other hand, it's a problem which one way or another will not be a problem much longer. Not really said that well, and will probably confuse you (and me) more if I try to clarify but the bottom line is if you can, try to look at some issues from a different angle. Good luck with everything.