@@ -1012,23 +1012,50 @@ class FbUserReadonlyType(TypesyncModel):
10121012 """Represents user fields that cannot be updated from backend"""
10131013
10141014 created : datetime .datetime
1015- userName : str
1016- userNameKey : typing .Annotated [str , pydantic .Field (deprecated = True )]
1015+ lastAppUse : datetime .datetime | TypesyncUndefined | None = UNDEFINED
1016+ userName : typing .Annotated [
1017+ str | TypesyncUndefined | None ,
1018+ pydantic .Field (deprecated = True ),
1019+ ] = UNDEFINED
1020+ userNameKey : typing .Annotated [
1021+ str | TypesyncUndefined | None ,
1022+ pydantic .Field (deprecated = True ),
1023+ ] = UNDEFINED
10171024 username : str
1018- usernameKey : typing . Annotated [ str , pydantic . Field ( deprecated = True )]
1025+ usernameKey : str | TypesyncUndefined | None = UNDEFINED
10191026 accessibility : bool | TypesyncUndefined | None = UNDEFINED
10201027 userGroups : dict [str , typing .Any ] | TypesyncUndefined | None = UNDEFINED
1028+ contributions : dict [str , typing .Any ] | TypesyncUndefined | None = UNDEFINED
1029+ taskContributionCount : int | TypesyncUndefined | None = UNDEFINED
1030+ groupContributionCount : int | TypesyncUndefined | None = UNDEFINED
1031+ projectContributionCount : int | TypesyncUndefined | None = UNDEFINED
10211032
10221033 class Config :
10231034 use_enum_values = False
10241035 extra = "forbid"
10251036
10261037 @typing .override
10271038 def __setattr__ (self , name : str , value : typing .Any ) -> None :
1039+ if name == "lastAppUse" and value is None :
1040+ raise ValueError ("'lastAppUse' field cannot be set to None" )
1041+ if name == "userName" and value is None :
1042+ raise ValueError ("'userName' field cannot be set to None" )
1043+ if name == "userNameKey" and value is None :
1044+ raise ValueError ("'userNameKey' field cannot be set to None" )
1045+ if name == "usernameKey" and value is None :
1046+ raise ValueError ("'usernameKey' field cannot be set to None" )
10281047 if name == "accessibility" and value is None :
10291048 raise ValueError ("'accessibility' field cannot be set to None" )
10301049 if name == "userGroups" and value is None :
10311050 raise ValueError ("'userGroups' field cannot be set to None" )
1051+ if name == "contributions" and value is None :
1052+ raise ValueError ("'contributions' field cannot be set to None" )
1053+ if name == "taskContributionCount" and value is None :
1054+ raise ValueError ("'taskContributionCount' field cannot be set to None" )
1055+ if name == "groupContributionCount" and value is None :
1056+ raise ValueError ("'groupContributionCount' field cannot be set to None" )
1057+ if name == "projectContributionCount" and value is None :
1058+ raise ValueError ("'projectContributionCount' field cannot be set to None" )
10321059 super ().__setattr__ (name , value )
10331060
10341061
0 commit comments