User Config Dto
immichpy.client.generated.models.user_config_dto.UserConfigDto
pydantic-model
Bases: BaseModel
Configuration properties that are visible to a logged user
Show JSON schema:
{
"$defs": {
"HlsVideoResolution": {
"description": "HLS video resolution",
"enum": [
480,
720,
1080,
1440,
2160
],
"title": "HlsVideoResolution",
"type": "integer"
},
"UserConfigClipDto": {
"description": "UserConfigClipDto",
"properties": {
"enabled": {
"description": "Whether the task is enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "UserConfigClipDto",
"type": "object"
},
"UserConfigDuplicateDetectionDto": {
"description": "UserConfigDuplicateDetectionDto",
"properties": {
"enabled": {
"description": "Whether the task is enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "UserConfigDuplicateDetectionDto",
"type": "object"
},
"UserConfigFFmpegDto": {
"description": "UserConfigFFmpegDto",
"properties": {
"realtime": {
"$ref": "#/$defs/UserConfigFFmpegRealtimeDto"
}
},
"required": [
"realtime"
],
"title": "UserConfigFFmpegDto",
"type": "object"
},
"UserConfigFFmpegRealtimeDto": {
"description": "UserConfigFFmpegRealtimeDto",
"properties": {
"enabled": {
"description": "Enable real-time HLS transcoding (alpha)",
"title": "Enabled",
"type": "boolean"
},
"resolutions": {
"description": "Resolutions to use for real-time HLS transcoding",
"items": {
"$ref": "#/$defs/HlsVideoResolution"
},
"title": "Resolutions",
"type": "array"
},
"videoCodecs": {
"description": "Video codecs to use for real-time HLS transcoding",
"items": {
"$ref": "#/$defs/VideoCodec"
},
"title": "Videocodecs",
"type": "array"
}
},
"required": [
"enabled",
"resolutions",
"videoCodecs"
],
"title": "UserConfigFFmpegRealtimeDto",
"type": "object"
},
"UserConfigFacialRecognitionDto": {
"description": "UserConfigFacialRecognitionDto",
"properties": {
"enabled": {
"description": "Whether the task is enabled",
"title": "Enabled",
"type": "boolean"
},
"minFaces": {
"description": "Minimum number of faces required for recognition",
"maximum": 9007199254740991,
"minimum": 1,
"title": "Minfaces",
"type": "integer"
}
},
"required": [
"enabled",
"minFaces"
],
"title": "UserConfigFacialRecognitionDto",
"type": "object"
},
"UserConfigGeneratedFullsizeImageDto": {
"description": "UserConfigGeneratedFullsizeImageDto",
"properties": {
"enabled": {
"description": "Enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "UserConfigGeneratedFullsizeImageDto",
"type": "object"
},
"UserConfigGeneratedImageDto": {
"description": "UserConfigGeneratedImageDto",
"properties": {
"size": {
"description": "Size",
"maximum": 9007199254740991,
"minimum": 1,
"title": "Size",
"type": "integer"
}
},
"required": [
"size"
],
"title": "UserConfigGeneratedImageDto",
"type": "object"
},
"UserConfigImageDto": {
"description": "UserConfigImageDto",
"properties": {
"fullsize": {
"$ref": "#/$defs/UserConfigGeneratedFullsizeImageDto"
},
"preview": {
"$ref": "#/$defs/UserConfigGeneratedImageDto"
},
"thumbnail": {
"$ref": "#/$defs/UserConfigGeneratedImageDto"
}
},
"required": [
"fullsize",
"preview",
"thumbnail"
],
"title": "UserConfigImageDto",
"type": "object"
},
"UserConfigMachineLearningDto": {
"description": "UserConfigMachineLearningDto",
"properties": {
"clip": {
"$ref": "#/$defs/UserConfigClipDto"
},
"duplicateDetection": {
"$ref": "#/$defs/UserConfigDuplicateDetectionDto"
},
"enabled": {
"description": "Enabled",
"title": "Enabled",
"type": "boolean"
},
"facialRecognition": {
"$ref": "#/$defs/UserConfigFacialRecognitionDto"
},
"ocr": {
"$ref": "#/$defs/UserConfigOcrDto"
}
},
"required": [
"clip",
"duplicateDetection",
"enabled",
"facialRecognition",
"ocr"
],
"title": "UserConfigMachineLearningDto",
"type": "object"
},
"UserConfigMapDto": {
"description": "UserConfigMapDto",
"properties": {
"darkStyle": {
"description": "Dark map style URL",
"title": "Darkstyle",
"type": "string"
},
"enabled": {
"description": "Enabled",
"title": "Enabled",
"type": "boolean"
},
"lightStyle": {
"description": "Light map style URL",
"title": "Lightstyle",
"type": "string"
}
},
"required": [
"darkStyle",
"enabled",
"lightStyle"
],
"title": "UserConfigMapDto",
"type": "object"
},
"UserConfigOAuthDto": {
"description": "UserConfigOAuthDto",
"properties": {
"autoLaunch": {
"description": "Auto launch",
"title": "Autolaunch",
"type": "boolean"
},
"buttonText": {
"description": "Button text",
"title": "Buttontext",
"type": "string"
},
"enabled": {
"description": "Enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"autoLaunch",
"buttonText",
"enabled"
],
"title": "UserConfigOAuthDto",
"type": "object"
},
"UserConfigOcrDto": {
"description": "UserConfigOcrDto",
"properties": {
"enabled": {
"description": "Whether the task is enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "UserConfigOcrDto",
"type": "object"
},
"UserConfigPasswordLoginDto": {
"description": "UserConfigPasswordLoginDto",
"properties": {
"enabled": {
"description": "Enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "UserConfigPasswordLoginDto",
"type": "object"
},
"UserConfigReverseGeocodingDto": {
"description": "UserConfigReverseGeocodingDto",
"properties": {
"enabled": {
"description": "Enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "UserConfigReverseGeocodingDto",
"type": "object"
},
"UserConfigServerDto": {
"description": "UserConfigServerDto",
"properties": {
"externalDomain": {
"description": "External domain",
"title": "Externaldomain",
"type": "string"
},
"loginPageMessage": {
"description": "Login page message",
"title": "Loginpagemessage",
"type": "string"
},
"publicUsers": {
"description": "Public users",
"title": "Publicusers",
"type": "boolean"
}
},
"required": [
"externalDomain",
"loginPageMessage",
"publicUsers"
],
"title": "UserConfigServerDto",
"type": "object"
},
"UserConfigThemeDto": {
"description": "UserConfigThemeDto",
"properties": {
"customCss": {
"description": "Custom CSS for theming",
"title": "Customcss",
"type": "string"
}
},
"required": [
"customCss"
],
"title": "UserConfigThemeDto",
"type": "object"
},
"UserConfigTrashDto": {
"description": "UserConfigTrashDto",
"properties": {
"days": {
"description": "Days",
"maximum": 9007199254740991,
"minimum": 0,
"title": "Days",
"type": "integer"
},
"enabled": {
"description": "Enabled",
"title": "Enabled",
"type": "boolean"
}
},
"required": [
"days",
"enabled"
],
"title": "UserConfigTrashDto",
"type": "object"
},
"UserConfigUserDto": {
"description": "UserConfigUserDto",
"properties": {
"deleteDelay": {
"description": "Delete delay",
"maximum": 9007199254740991,
"minimum": 1,
"title": "Deletedelay",
"type": "integer"
}
},
"required": [
"deleteDelay"
],
"title": "UserConfigUserDto",
"type": "object"
},
"VideoCodec": {
"description": "Target video codec",
"enum": [
"h264",
"hevc",
"vp9",
"av1"
],
"title": "VideoCodec",
"type": "string"
}
},
"description": "Configuration properties that are visible to a logged user",
"properties": {
"ffmpeg": {
"$ref": "#/$defs/UserConfigFFmpegDto"
},
"image": {
"$ref": "#/$defs/UserConfigImageDto"
},
"machineLearning": {
"$ref": "#/$defs/UserConfigMachineLearningDto"
},
"map": {
"$ref": "#/$defs/UserConfigMapDto"
},
"oauth": {
"$ref": "#/$defs/UserConfigOAuthDto"
},
"passwordLogin": {
"$ref": "#/$defs/UserConfigPasswordLoginDto"
},
"reverseGeocoding": {
"$ref": "#/$defs/UserConfigReverseGeocodingDto"
},
"server": {
"$ref": "#/$defs/UserConfigServerDto"
},
"theme": {
"$ref": "#/$defs/UserConfigThemeDto"
},
"trash": {
"$ref": "#/$defs/UserConfigTrashDto"
},
"user": {
"$ref": "#/$defs/UserConfigUserDto"
}
},
"required": [
"ffmpeg",
"image",
"machineLearning",
"map",
"oauth",
"passwordLogin",
"reverseGeocoding",
"server",
"theme",
"trash",
"user"
],
"title": "UserConfigDto",
"type": "object"
}
Config:
validate_by_name:Truevalidate_by_alias:Truevalidate_assignment:Trueprotected_namespaces:()
Fields:
-
ffmpeg(UserConfigFFmpegDto) -
image(UserConfigImageDto) -
machine_learning(UserConfigMachineLearningDto) -
map(UserConfigMapDto) -
oauth(UserConfigOAuthDto) -
password_login(UserConfigPasswordLoginDto) -
reverse_geocoding(UserConfigReverseGeocodingDto) -
server(UserConfigServerDto) -
theme(UserConfigThemeDto) -
trash(UserConfigTrashDto) -
user(UserConfigUserDto)
from_dict
classmethod
from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]
Create an instance of UserConfigDto from a dict
Source code in immichpy/client/generated/models/user_config_dto.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | |
from_json
classmethod
from_json(json_str: str) -> Optional[Self]
Create an instance of UserConfigDto from a JSON string
Source code in immichpy/client/generated/models/user_config_dto.py
88 89 90 91 | |
to_dict
to_dict() -> Dict[str, Any]
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
self.model_dump(by_alias=True):
Noneis only added to the output dict for nullable fields that were set at model initialization. Other fields with valueNoneare ignored.
Source code in immichpy/client/generated/models/user_config_dto.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |
to_json
to_json() -> str
Returns the JSON representation of the model using alias
Source code in immichpy/client/generated/models/user_config_dto.py
84 85 86 | |
to_str
to_str() -> str
Returns the string representation of the model using alias
Source code in immichpy/client/generated/models/user_config_dto.py
80 81 82 | |