Zymeworks has signed an agreement to acquire Theravance Biopharma in a cash transaction valued at approximately $929m.