After a discussion with @rdicosmo about the volatility of a synthetic revision identifier and our part becoming the middle man, we decided that having the swh-id for dir with the origin url is sufficient and this should be the returned id to HAL when depositing a tarball (.zip or .tar.gz).
A revision can be appropriate when depositing a CVS, which is not possible at the moment.