indirect discourse

noun

1.
a report of a discourse in which deictic terms are modified appropriately (e.g., ‘he said "I am a fool"’ would be modified to ‘he said he is a fool’)