The Torah speaks of a couple of official public positions, that have extensive Halachic Nafka-Minahs, e.g. Kohen Gadol, Jewish king, a Judge, maybe Nessi Shevet.
IIRC Moses wasn't officially any of those.
According to the scriptures (not speculations or interpretations), did Torah give Moses (and thereafter Yehoshua) any officially defined position?
NB I"m aware that many compared Moses to be a King, but I ask