updated types.h
SRV: Added <7.X srv:pm
AM: Added API
NS: Added API
PM: Added API
PS: Added API
SRV: misc fix