Sync Gateway Sync Function properties

Is there just a list of all the properties on a doc available during a sync function?

Right now trying to figure out how to access the username of the agent uploading the doc.