Index.ts comment states that getInfo returns searchIdentitiesByNameOutputRecord which does not exist in the file as type declaration
Possibly getInfo function returns retrieveInfoByAFMRecordOutput
or errorRecord instead of searchIdentitiesByNameOutputRecord