migrate OTEC APIs to use primitive ints for versions and ids