Moved text document apis to OTTypes.