Sedative-hypnotics include:
Ambien [zolpidem]
Lunesta [eszopiclone]
Sonata [zaleplon]
These medications are often prescribed by doctors for the short-term management of insomnia. These medications are not intended to be taken indefinitely. Short acting sedatives are best for sleep onset insomnia (e.g., zolpidem, zaleplon). Longer acting sedatives are best for sleep maintenance insomnia (e.g., eszopliclone, zolpidem controlled release).
Side effects can include: Residual daytime sedation, cognitive impairment, motor incoordination, headache, dizziness, nausea, abdominal pain, respiratory suppression, they may be habit forming with long-term use, and they can cause rebound insomnia on discontinuance. A less common side effect of zolpidem involves inappropriate behaviors while not fully awake (e.g., sleep walking, driving, making telephone calls, eating, or having sex).
https://www.drugs.com/drug-class/miscellaneous-anxiolytics-sedatives-and-hypnotics.html
https://www.fda.gov/drugs/drug-safety-and-availability/questions-and-answers-risk-next-morning-impairment-after-use-insomnia-drugs-fda-requires-lower
https://www.fda.gov/consumers/consumer-updates/taking-z-drugs-insomnia-know-risks
https://www.rxlist.com/benzodiazepines/drug-class.htm