ASME Boundary ends at the first sealing surface in a threaded connection.... REF: ASME Section VIII Div 1 Paragraph U-1(e)(1)
U-1(e)(1) where external piping; other pressure vessels
including heat exchangers; or mechanical devices, such
as pumps, mixers, or compressors, are to be connected to...