type is addon.type (e.g. persona or app), app_type is hosted or packaged (and maybe later privileged). It's confusing and I should and could rename that later.