@@ -80,13 +80,15 @@ class UserNotificationSettingsRead(BaseModel):
80
80
weekly_report : bool = Field (description = "Whether to receive a weekly report" )
81
81
inactivity_reminder : bool = Field (description = "Whether to receive a reminder for open incidents" )
82
82
tutorial : bool = Field (description = "Whether to receive tutorial emails" )
83
+ marketing : bool = Field (description = "Whether to receive marketing emails" )
83
84
84
85
@staticmethod
85
86
def from_model (model : UserNotificationSettings ) -> "UserNotificationSettingsRead" :
86
87
return UserNotificationSettingsRead (
87
88
weekly_report = model .weekly_report ,
88
89
inactivity_reminder = model .inactivity_reminder ,
89
90
tutorial = model .tutorial ,
91
+ marketing = model .marketing ,
90
92
)
91
93
92
94
def to_model (self , user_id : UserId ) -> UserNotificationSettings :
@@ -95,6 +97,7 @@ def to_model(self, user_id: UserId) -> UserNotificationSettings:
95
97
weekly_report = self .weekly_report ,
96
98
inactivity_reminder = self .inactivity_reminder ,
97
99
tutorial = self .tutorial ,
100
+ marketing = self .marketing ,
98
101
)
99
102
100
103
@@ -104,6 +107,7 @@ class UserNotificationSettingsWrite(BaseModel):
104
107
default = None , description = "Whether to receive a reminder for open incidents"
105
108
)
106
109
tutorial : Optional [bool ] = Field (default = None , description = "Whether to receive tutorial emails" )
110
+ marketing : Optional [bool ] = Field (default = None , description = "Whether to receive marketing emails" )
107
111
108
112
109
113
class OTPConfig (BaseModel ):
0 commit comments