@@ -55,7 +55,7 @@ class ResponseRules(BaseModel):
5555 rules : List [ResponseRule ]
5656
5757
58- class CustomRemarks (BaseModel ):
58+ class CustomRemarksDto (BaseModel ):
5959 """Custom remarks for different user states"""
6060 expired_users : List [str ] = Field (alias = "expiredUsers" , min_length = 1 )
6161 limited_users : List [str ] = Field (alias = "limitedUsers" , min_length = 1 )
@@ -64,7 +64,7 @@ class CustomRemarks(BaseModel):
6464 empty_internal_squads : List [str ] = Field (alias = "emptyInternalSquads" , min_length = 1 )
6565
6666
67- class HwidSettings (BaseModel ):
67+ class HwidSettingsDto (BaseModel ):
6868 """HWID (Hardware ID) settings"""
6969 enabled : bool
7070 fallback_device_limit : int = Field (alias = "fallbackDeviceLimit" )
@@ -82,15 +82,15 @@ class SubscriptionSettingsResponseDto(BaseModel):
8282 serve_json_at_base_subscription : bool = Field (alias = "serveJsonAtBaseSubscription" )
8383 show_custom_remarks : bool = Field (alias = "isShowCustomRemarks" )
8484
85- custom_remarks : CustomRemarks = Field (alias = "customRemarks" )
85+ custom_remarks : CustomRemarksDto = Field (alias = "customRemarks" )
8686
8787 happ_announce : Optional [str ] = Field (None , alias = "happAnnounce" )
8888 happ_routing : Optional [str ] = Field (None , alias = "happRouting" )
8989 custom_response_headers : Optional [Dict [str , str ]] = Field (None , alias = "customResponseHeaders" )
9090 randomize_hosts : bool = Field (alias = "randomizeHosts" )
9191 response_rules : Optional [ResponseRules ] = Field (None , alias = "responseRules" )
9292
93- hwid_settings : Optional [HwidSettings ] = Field (None , alias = "hwidSettings" )
93+ hwid_settings : Optional [HwidSettingsDto ] = Field (None , alias = "hwidSettings" )
9494
9595 created_at : datetime = Field (alias = "createdAt" )
9696 updated_at : datetime = Field (alias = "updatedAt" )
@@ -118,7 +118,7 @@ class UpdateSubscriptionSettingsRequestDto(BaseModel):
118118 )
119119 is_show_custom_remarks : Optional [bool ] = Field (None , serialization_alias = "isShowCustomRemarks" )
120120
121- custom_remarks : Optional [CustomRemarks ] = Field (None , serialization_alias = "customRemarks" )
121+ custom_remarks : Optional [CustomRemarksDto ] = Field (None , serialization_alias = "customRemarks" )
122122
123123 happ_announce : Optional [Annotated [str , StringConstraints (max_length = 200 )]] = Field (
124124 None , serialization_alias = "happAnnounce"
@@ -130,4 +130,9 @@ class UpdateSubscriptionSettingsRequestDto(BaseModel):
130130 randomize_hosts : Optional [bool ] = Field (None , serialization_alias = "randomizeHosts" )
131131 response_rules : Optional [ResponseRules ] = Field (None , serialization_alias = "responseRules" )
132132
133- hwid_settings : Optional [HwidSettings ] = Field (None , serialization_alias = "hwidSettings" )
133+ hwid_settings : Optional [HwidSettingsDto ] = Field (None , serialization_alias = "hwidSettings" )
134+
135+
136+ # Backward compatibility aliases
137+ CustomRemarks = CustomRemarksDto
138+ HwidSettings = HwidSettingsDto
0 commit comments