attachments: added field 'type'