The doorlock barrel assy often just has a microswitch or a bespoke switch made by the lock manufacturer which connects back to the security ecu, and the interior lock button varies from manufacturers, I've seen one where the button connected through a rod to the door lock catch assy, and then the same rod extended to the lock servo motor which had a microswitch within it, the same switch that tells the ecu the latch is locked ot not, presumably if the ecu detects that the lock opened then it uses the signal to open all the othwer locks.
I hope you have honest intentions about gleaning this kind of knowledge.