@@ -837,6 +837,8 @@ def set_preferences(
837837 _persistence_strategy : Literal ["merge" , "replace" ] | Omit = omit ,
838838 categories : Optional [Dict [str , object_set_preferences_params .Categories ]] | Omit = omit ,
839839 channel_types : Optional [PreferenceSetChannelTypesParam ] | Omit = omit ,
840+ channels : Optional [Dict [str , object_set_preferences_params .Channels ]] | Omit = omit ,
841+ commercial_subscribed : Optional [bool ] | Omit = omit ,
840842 workflows : Optional [Dict [str , object_set_preferences_params .Workflows ]] | Omit = omit ,
841843 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
842844 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -866,6 +868,11 @@ def set_preferences(
866868
867869 channel_types: Channel type preferences.
868870
871+ channels: Channel preferences.
872+
873+ commercial_subscribed: Whether the recipient is subscribed to commercial communications. When false,
874+ the recipient will not receive commercial workflow notifications.
875+
869876 workflows: An object where the key is the workflow key and the values are the preference
870877 settings for that workflow.
871878
@@ -892,6 +899,8 @@ def set_preferences(
892899 "_persistence_strategy" : _persistence_strategy ,
893900 "categories" : categories ,
894901 "channel_types" : channel_types ,
902+ "channels" : channels ,
903+ "commercial_subscribed" : commercial_subscribed ,
895904 "workflows" : workflows ,
896905 },
897906 object_set_preferences_params .ObjectSetPreferencesParams ,
@@ -1735,6 +1744,8 @@ async def set_preferences(
17351744 _persistence_strategy : Literal ["merge" , "replace" ] | Omit = omit ,
17361745 categories : Optional [Dict [str , object_set_preferences_params .Categories ]] | Omit = omit ,
17371746 channel_types : Optional [PreferenceSetChannelTypesParam ] | Omit = omit ,
1747+ channels : Optional [Dict [str , object_set_preferences_params .Channels ]] | Omit = omit ,
1748+ commercial_subscribed : Optional [bool ] | Omit = omit ,
17381749 workflows : Optional [Dict [str , object_set_preferences_params .Workflows ]] | Omit = omit ,
17391750 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
17401751 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1764,6 +1775,11 @@ async def set_preferences(
17641775
17651776 channel_types: Channel type preferences.
17661777
1778+ channels: Channel preferences.
1779+
1780+ commercial_subscribed: Whether the recipient is subscribed to commercial communications. When false,
1781+ the recipient will not receive commercial workflow notifications.
1782+
17671783 workflows: An object where the key is the workflow key and the values are the preference
17681784 settings for that workflow.
17691785
@@ -1790,6 +1806,8 @@ async def set_preferences(
17901806 "_persistence_strategy" : _persistence_strategy ,
17911807 "categories" : categories ,
17921808 "channel_types" : channel_types ,
1809+ "channels" : channels ,
1810+ "commercial_subscribed" : commercial_subscribed ,
17931811 "workflows" : workflows ,
17941812 },
17951813 object_set_preferences_params .ObjectSetPreferencesParams ,
0 commit comments