Make explicit type of activityId
Make explicit type of agent
Merge pull request #526 from garemoko/issue-507

Clarify types for activityId and agent properties in document APIs