The crime of assault was the act of making physical contact with someone in order to injure or incapacitate them.
Striking a fellow officer is a court martial offense in the Federation Starfleet. Both Captain James Kirk and Mr. Spock were guilty of this offense in 2267, but, since they were the only two crewmembers still left aboard the USS Enterprise, Spock agreed with Kirk's logic that if they were both confined to the brig, no one would be available to build the subsonic transmitter needed to destroy the influence of the Omicron spores and return the crew to the ship. (TOS: "This Side of Paradise")
Hikaru Sulu and James Kirk each assaulted officers of Federation Security while removing Leonard McCoy from a prison. They were charged by the Federation Council with those acts shortly afterward, but those were summarily dismissed by the President of the Federation. (Star Trek III: The Search for Spock; Star Trek IV: The Voyage Home)
In some jurisdictions, such as Bajoran territory, assault can also include directing weapons fire at another individual. Lissepian Mother's Day Heist conspirators Hain, Nahsk, Krit, and Larell were all arrested for assault with intent to kill in 2374 after they all discharged weapons at each other in attempts to claim the proceeds of the Heist. Odo assured Quark, who was also put in danger, that they would go to prison for "long enough". (DS9: "Who Mourns for Morn?")