Moved all structs exposed by API into apiv1 package