In https://github.com/radicle-dev/radicle-registry/pull/550, before my commit was modified and force-pushed against, I had introduced a type to describe the state of an Id: Available, Taken, or UnclaimableRetired. The goal of this type and the function returning it was to offer a client call to check the availability of given id.
We want to call client.get_id_availability(an_id) and get one of those 3 possible variants and provide the appropriate validation messages in the upstream.
In https://github.com/radicle-dev/radicle-registry/pull/550, before my commit was modified and force-pushed against, I had introduced a type to describe the state of an Id:
Available
,Taken
, orUnclaimable
Retired
. The goal of this type and the function returning it was to offer a client call to check the availability of given id.We want to call
client.get_id_availability(an_id)
and get one of those 3 possible variants and provide the appropriate validation messages in the upstream.