Metadata Search Dto
immichpy.client.generated.models.metadata_search_dto.MetadataSearchDto
pydantic-model
Bases: BaseModel
MetadataSearchDto
Show JSON schema:
{
"$defs": {
"AssetOrder": {
"description": "Asset sort order",
"enum": [
"asc",
"desc"
],
"title": "AssetOrder",
"type": "string"
},
"AssetTypeEnum": {
"description": "Asset type",
"enum": [
"IMAGE",
"VIDEO",
"AUDIO",
"OTHER"
],
"title": "AssetTypeEnum",
"type": "string"
},
"AssetVisibility": {
"description": "Asset visibility",
"enum": [
"archive",
"timeline",
"hidden",
"locked"
],
"title": "AssetVisibility",
"type": "string"
}
},
"description": "MetadataSearchDto",
"properties": {
"albumIds": {
"anyOf": [
{
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by album IDs",
"title": "Albumids"
},
"checksum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by file checksum",
"title": "Checksum"
},
"city": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by city name",
"title": "City"
},
"country": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by country name",
"title": "Country"
},
"createdAfter": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by creation date (after)",
"title": "Createdafter"
},
"createdBefore": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by creation date (before)",
"title": "Createdbefore"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by description text",
"title": "Description"
},
"deviceAssetId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by device asset ID",
"title": "Deviceassetid"
},
"deviceId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Device ID to filter by",
"title": "Deviceid"
},
"encodedVideoPath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by encoded video file path",
"title": "Encodedvideopath"
},
"id": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by asset ID",
"title": "Id"
},
"isEncoded": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by encoded status",
"title": "Isencoded"
},
"isFavorite": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by favorite status",
"title": "Isfavorite"
},
"isMotion": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by motion photo status",
"title": "Ismotion"
},
"isNotInAlbum": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter assets not in any album",
"title": "Isnotinalbum"
},
"isOffline": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by offline status",
"title": "Isoffline"
},
"lensModel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by lens model",
"title": "Lensmodel"
},
"libraryId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Library ID to filter by",
"title": "Libraryid"
},
"make": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by camera make",
"title": "Make"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by camera model",
"title": "Model"
},
"ocr": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by OCR text content",
"title": "Ocr"
},
"order": {
"anyOf": [
{
"$ref": "#/$defs/AssetOrder"
},
{
"type": "null"
}
],
"default": null,
"description": "Sort order"
},
"originalFileName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by original file name",
"title": "Originalfilename"
},
"originalPath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by original file path",
"title": "Originalpath"
},
"page": {
"anyOf": [
{
"minimum": 1,
"type": "number"
},
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Page number",
"title": "Page"
},
"personIds": {
"anyOf": [
{
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by person IDs",
"title": "Personids"
},
"previewPath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by preview file path",
"title": "Previewpath"
},
"rating": {
"anyOf": [
{
"maximum": 5,
"minimum": -1,
"type": "number"
},
{
"maximum": 5,
"minimum": -1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by rating [1-5], or null for unrated",
"title": "Rating"
},
"size": {
"anyOf": [
{
"maximum": 1000,
"minimum": 1,
"type": "number"
},
{
"maximum": 1000,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Number of results to return",
"title": "Size"
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by state/province name",
"title": "State"
},
"tagIds": {
"anyOf": [
{
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by tag IDs",
"title": "Tagids"
},
"takenAfter": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by taken date (after)",
"title": "Takenafter"
},
"takenBefore": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by taken date (before)",
"title": "Takenbefore"
},
"thumbnailPath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by thumbnail file path",
"title": "Thumbnailpath"
},
"trashedAfter": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by trash date (after)",
"title": "Trashedafter"
},
"trashedBefore": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by trash date (before)",
"title": "Trashedbefore"
},
"type": {
"anyOf": [
{
"$ref": "#/$defs/AssetTypeEnum"
},
{
"type": "null"
}
],
"default": null,
"description": "Asset type filter"
},
"updatedAfter": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by update date (after)",
"title": "Updatedafter"
},
"updatedBefore": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by update date (before)",
"title": "Updatedbefore"
},
"visibility": {
"anyOf": [
{
"$ref": "#/$defs/AssetVisibility"
},
{
"type": "null"
}
],
"default": null,
"description": "Filter by visibility"
},
"withDeleted": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Include deleted assets",
"title": "Withdeleted"
},
"withExif": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Include EXIF data in response",
"title": "Withexif"
},
"withPeople": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Include people data in response",
"title": "Withpeople"
},
"withStacked": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Include stacked assets",
"title": "Withstacked"
}
},
"title": "MetadataSearchDto",
"type": "object"
}
Config:
populate_by_name:Truevalidate_assignment:Trueprotected_namespaces:()
Fields:
-
album_ids(Optional[List[UUID]]) -
checksum(Optional[StrictStr]) -
city(Optional[StrictStr]) -
country(Optional[StrictStr]) -
created_after(Optional[datetime]) -
created_before(Optional[datetime]) -
description(Optional[StrictStr]) -
device_asset_id(Optional[StrictStr]) -
device_id(Optional[StrictStr]) -
encoded_video_path(Optional[StrictStr]) -
id(Optional[UUID]) -
is_encoded(Optional[StrictBool]) -
is_favorite(Optional[StrictBool]) -
is_motion(Optional[StrictBool]) -
is_not_in_album(Optional[StrictBool]) -
is_offline(Optional[StrictBool]) -
lens_model(Optional[StrictStr]) -
library_id(Optional[UUID]) -
make(Optional[StrictStr]) -
model(Optional[StrictStr]) -
ocr(Optional[StrictStr]) -
order(Optional[AssetOrder]) -
original_file_name(Optional[StrictStr]) -
original_path(Optional[StrictStr]) -
page(Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]]) -
person_ids(Optional[List[UUID]]) -
preview_path(Optional[StrictStr]) -
rating(Optional[Union[Annotated[float, Field(le=5, strict=True, ge=-1)], Annotated[int, Field(le=5, strict=True, ge=-1)]]]) -
size(Optional[Union[Annotated[float, Field(le=1000, strict=True, ge=1)], Annotated[int, Field(le=1000, strict=True, ge=1)]]]) -
state(Optional[StrictStr]) -
tag_ids(Optional[List[UUID]]) -
taken_after(Optional[datetime]) -
taken_before(Optional[datetime]) -
thumbnail_path(Optional[StrictStr]) -
trashed_after(Optional[datetime]) -
trashed_before(Optional[datetime]) -
type(Optional[AssetTypeEnum]) -
updated_after(Optional[datetime]) -
updated_before(Optional[datetime]) -
visibility(Optional[AssetVisibility]) -
with_deleted(Optional[StrictBool]) -
with_exif(Optional[StrictBool]) -
with_people(Optional[StrictBool]) -
with_stacked(Optional[StrictBool])
album_ids
pydantic-field
album_ids: Optional[List[UUID]] = None
Filter by album IDs
checksum
pydantic-field
checksum: Optional[StrictStr] = None
Filter by file checksum
city
pydantic-field
city: Optional[StrictStr] = None
Filter by city name
country
pydantic-field
country: Optional[StrictStr] = None
Filter by country name
created_after
pydantic-field
created_after: Optional[datetime] = None
Filter by creation date (after)
created_before
pydantic-field
created_before: Optional[datetime] = None
Filter by creation date (before)
description
pydantic-field
description: Optional[StrictStr] = None
Filter by description text
device_asset_id
pydantic-field
device_asset_id: Optional[StrictStr] = None
Filter by device asset ID
device_id
pydantic-field
device_id: Optional[StrictStr] = None
Device ID to filter by
encoded_video_path
pydantic-field
encoded_video_path: Optional[StrictStr] = None
Filter by encoded video file path
id
pydantic-field
id: Optional[UUID] = None
Filter by asset ID
is_encoded
pydantic-field
is_encoded: Optional[StrictBool] = None
Filter by encoded status
is_favorite
pydantic-field
is_favorite: Optional[StrictBool] = None
Filter by favorite status
is_motion
pydantic-field
is_motion: Optional[StrictBool] = None
Filter by motion photo status
is_not_in_album
pydantic-field
is_not_in_album: Optional[StrictBool] = None
Filter assets not in any album
is_offline
pydantic-field
is_offline: Optional[StrictBool] = None
Filter by offline status
lens_model
pydantic-field
lens_model: Optional[StrictStr] = None
Filter by lens model
library_id
pydantic-field
library_id: Optional[UUID] = None
Library ID to filter by
make
pydantic-field
make: Optional[StrictStr] = None
Filter by camera make
model
pydantic-field
model: Optional[StrictStr] = None
Filter by camera model
ocr
pydantic-field
ocr: Optional[StrictStr] = None
Filter by OCR text content
order
pydantic-field
order: Optional[AssetOrder] = None
Sort order
original_file_name
pydantic-field
original_file_name: Optional[StrictStr] = None
Filter by original file name
original_path
pydantic-field
original_path: Optional[StrictStr] = None
Filter by original file path
page
pydantic-field
page: Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]] = None
Page number
person_ids
pydantic-field
person_ids: Optional[List[UUID]] = None
Filter by person IDs
preview_path
pydantic-field
preview_path: Optional[StrictStr] = None
Filter by preview file path
rating
pydantic-field
rating: Optional[Union[Annotated[float, Field(le=5, strict=True, ge=-1)], Annotated[int, Field(le=5, strict=True, ge=-1)]]] = None
Filter by rating [1-5], or null for unrated
size
pydantic-field
size: Optional[Union[Annotated[float, Field(le=1000, strict=True, ge=1)], Annotated[int, Field(le=1000, strict=True, ge=1)]]] = None
Number of results to return
state
pydantic-field
state: Optional[StrictStr] = None
Filter by state/province name
tag_ids
pydantic-field
tag_ids: Optional[List[UUID]] = None
Filter by tag IDs
taken_after
pydantic-field
taken_after: Optional[datetime] = None
Filter by taken date (after)
taken_before
pydantic-field
taken_before: Optional[datetime] = None
Filter by taken date (before)
thumbnail_path
pydantic-field
thumbnail_path: Optional[StrictStr] = None
Filter by thumbnail file path
trashed_after
pydantic-field
trashed_after: Optional[datetime] = None
Filter by trash date (after)
trashed_before
pydantic-field
trashed_before: Optional[datetime] = None
Filter by trash date (before)
type
pydantic-field
type: Optional[AssetTypeEnum] = None
Asset type filter
updated_after
pydantic-field
updated_after: Optional[datetime] = None
Filter by update date (after)
updated_before
pydantic-field
updated_before: Optional[datetime] = None
Filter by update date (before)
visibility
pydantic-field
visibility: Optional[AssetVisibility] = None
Filter by visibility
with_deleted
pydantic-field
with_deleted: Optional[StrictBool] = None
Include deleted assets
with_exif
pydantic-field
with_exif: Optional[StrictBool] = None
Include EXIF data in response
with_people
pydantic-field
with_people: Optional[StrictBool] = None
Include people data in response
with_stacked
pydantic-field
with_stacked: Optional[StrictBool] = None
Include stacked assets
from_dict
classmethod
from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]
Create an instance of MetadataSearchDto from a dict
Source code in immichpy/client/generated/models/metadata_search_dto.py
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 | |
from_json
classmethod
from_json(json_str: str) -> Optional[Self]
Create an instance of MetadataSearchDto from a JSON string
Source code in immichpy/client/generated/models/metadata_search_dto.py
239 240 241 242 | |
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/metadata_search_dto.py
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | |
to_json
to_json() -> str
Returns the JSON representation of the model using alias
Source code in immichpy/client/generated/models/metadata_search_dto.py
234 235 236 237 | |
to_str
to_str() -> str
Returns the string representation of the model using alias
Source code in immichpy/client/generated/models/metadata_search_dto.py
230 231 232 | |