In theory (a wonderful place) a deep is a 9 5/8" box with a 9 1/4" frame which would leave a 3/8" beespace between boxes. They have a 5/8" rabbet and top bar ends that are 3/8" which leaves 1/4" of that at the top and 1/8" at the bottom. Seems like a lot of manufacturers have cheated that down as small as 9 1/4" boxes and 9" frames with only a 1/4" beespace.
The other boxes seem to be more consistent with a medium being 6 5/8" box with 6 1/4" frame. The same size rabbet and the same beespace top and bottom.
A shallow, on the other hand is usually between 5 11/16 and 5 3/4" with the frame 5 3/8". This leaves a 3/8" beespace (if it's the 5 3/4") and a 5/16" beespace (if it's the 5 11/16").
An extra shallow, is usually 4 3/4" with the frame 4 1/2" and a beespace of only 1/4".