SMS consent via liquid form

Hi I see in customer profiles there is consent options now for email and for sms, however the liquid docs only show accepts_marketing. Is there a way to set these individual through a liquid customer form or perhaps via js through the storefront api?