88from ..types .metric_response import MetricResponse
99from ..types .notification_preferences import NotificationPreferences
1010from ..types .points_boost import PointsBoost
11+ from ..types .streak_preferences import StreakPreferences
1112from ..types .streak_response import StreakResponse
1213from ..types .user import User
1314from ..types .user_achievement_with_stats_response import UserAchievementWithStatsResponse
@@ -326,10 +327,11 @@ def update_preferences(
326327 id : str ,
327328 * ,
328329 notifications : typing .Optional [NotificationPreferences ] = OMIT ,
330+ streak : typing .Optional [StreakPreferences ] = OMIT ,
329331 request_options : typing .Optional [RequestOptions ] = None ,
330332 ) -> UserPreferencesResponse :
331333 """
332- Update a user's notification preferences.
334+ Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings .
333335
334336 Parameters
335337 ----------
@@ -338,6 +340,8 @@ def update_preferences(
338340
339341 notifications : typing.Optional[NotificationPreferences]
340342
343+ streak : typing.Optional[StreakPreferences]
344+
341345 request_options : typing.Optional[RequestOptions]
342346 Request-specific configuration.
343347
@@ -362,7 +366,7 @@ def update_preferences(
362366 )
363367 """
364368 _response = self ._raw_client .update_preferences (
365- id , notifications = notifications , request_options = request_options
369+ id , notifications = notifications , streak = streak , request_options = request_options
366370 )
367371 return _response .data
368372
@@ -1161,10 +1165,11 @@ async def update_preferences(
11611165 id : str ,
11621166 * ,
11631167 notifications : typing .Optional [NotificationPreferences ] = OMIT ,
1168+ streak : typing .Optional [StreakPreferences ] = OMIT ,
11641169 request_options : typing .Optional [RequestOptions ] = None ,
11651170 ) -> UserPreferencesResponse :
11661171 """
1167- Update a user's notification preferences.
1172+ Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings .
11681173
11691174 Parameters
11701175 ----------
@@ -1173,6 +1178,8 @@ async def update_preferences(
11731178
11741179 notifications : typing.Optional[NotificationPreferences]
11751180
1181+ streak : typing.Optional[StreakPreferences]
1182+
11761183 request_options : typing.Optional[RequestOptions]
11771184 Request-specific configuration.
11781185
@@ -1205,7 +1212,7 @@ async def main() -> None:
12051212 asyncio.run(main())
12061213 """
12071214 _response = await self ._raw_client .update_preferences (
1208- id , notifications = notifications , request_options = request_options
1215+ id , notifications = notifications , streak = streak , request_options = request_options
12091216 )
12101217 return _response .data
12111218
0 commit comments