immich 1.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- immich/.openapi-generator/FILES +372 -0
- immich/.openapi-generator/VERSION +1 -0
- immich/.openapi-generator-ignore +48 -0
- immich/__init__.py +3 -0
- immich/client/__init__.py +1162 -0
- immich/client/api/__init__.py +39 -0
- immich/client/api/activities_api.py +1092 -0
- immich/client/api/albums_api.py +3228 -0
- immich/client/api/api_keys_api.py +1484 -0
- immich/client/api/assets_api.py +5834 -0
- immich/client/api/authentication_admin_api.py +254 -0
- immich/client/api/authentication_api.py +3881 -0
- immich/client/api/deprecated_api.py +2199 -0
- immich/client/api/download_api.py +603 -0
- immich/client/api/duplicates_api.py +743 -0
- immich/client/api/faces_api.py +1053 -0
- immich/client/api/jobs_api.py +783 -0
- immich/client/api/libraries_api.py +2004 -0
- immich/client/api/maintenance_admin_api.py +533 -0
- immich/client/api/map_api.py +640 -0
- immich/client/api/memories_api.py +2250 -0
- immich/client/api/notifications_admin_api.py +808 -0
- immich/client/api/notifications_api.py +1564 -0
- immich/client/api/partners_api.py +1278 -0
- immich/client/api/people_api.py +2905 -0
- immich/client/api/plugins_api.py +730 -0
- immich/client/api/queues_api.py +1292 -0
- immich/client/api/search_api.py +3198 -0
- immich/client/api/server_api.py +3466 -0
- immich/client/api/sessions_api.py +1472 -0
- immich/client/api/shared_links_api.py +2177 -0
- immich/client/api/stacks_api.py +1769 -0
- immich/client/api/sync_api.py +1512 -0
- immich/client/api/system_config_api.py +967 -0
- immich/client/api/system_metadata_api.py +964 -0
- immich/client/api/tags_api.py +2296 -0
- immich/client/api/timeline_api.py +1193 -0
- immich/client/api/trash_api.py +739 -0
- immich/client/api/users_admin_api.py +2607 -0
- immich/client/api/users_api.py +3577 -0
- immich/client/api/views_api.py +503 -0
- immich/client/api/workflows_api.py +1257 -0
- immich/client/api_client.py +756 -0
- immich/client/api_response.py +20 -0
- immich/client/configuration.py +638 -0
- immich/client/exceptions.py +222 -0
- immich/client/models/__init__.py +424 -0
- immich/client/models/activity_create_dto.py +94 -0
- immich/client/models/activity_response_dto.py +121 -0
- immich/client/models/activity_statistics_response_dto.py +85 -0
- immich/client/models/add_users_dto.py +101 -0
- immich/client/models/admin_onboarding_update_dto.py +82 -0
- immich/client/models/album_response_dto.py +199 -0
- immich/client/models/album_statistics_response_dto.py +90 -0
- immich/client/models/album_user_add_dto.py +87 -0
- immich/client/models/album_user_create_dto.py +87 -0
- immich/client/models/album_user_response_dto.py +95 -0
- immich/client/models/album_user_role.py +34 -0
- immich/client/models/albums_add_assets_dto.py +86 -0
- immich/client/models/albums_add_assets_response_dto.py +86 -0
- immich/client/models/albums_response.py +83 -0
- immich/client/models/albums_update.py +85 -0
- immich/client/models/api_key_create_dto.py +87 -0
- immich/client/models/api_key_create_response_dto.py +94 -0
- immich/client/models/api_key_response_dto.py +102 -0
- immich/client/models/api_key_update_dto.py +87 -0
- immich/client/models/asset_bulk_delete_dto.py +84 -0
- immich/client/models/asset_bulk_update_dto.py +143 -0
- immich/client/models/asset_bulk_upload_check_dto.py +98 -0
- immich/client/models/asset_bulk_upload_check_item.py +85 -0
- immich/client/models/asset_bulk_upload_check_response_dto.py +101 -0
- immich/client/models/asset_bulk_upload_check_result.py +126 -0
- immich/client/models/asset_copy_dto.py +113 -0
- immich/client/models/asset_delta_sync_dto.py +87 -0
- immich/client/models/asset_delta_sync_response_dto.py +102 -0
- immich/client/models/asset_face_create_dto.py +110 -0
- immich/client/models/asset_face_delete_dto.py +82 -0
- immich/client/models/asset_face_response_dto.py +125 -0
- immich/client/models/asset_face_update_dto.py +96 -0
- immich/client/models/asset_face_update_item.py +86 -0
- immich/client/models/asset_face_without_person_response_dto.py +111 -0
- immich/client/models/asset_full_sync_dto.py +95 -0
- immich/client/models/asset_ids_dto.py +83 -0
- immich/client/models/asset_ids_response_dto.py +109 -0
- immich/client/models/asset_job_name.py +36 -0
- immich/client/models/asset_jobs_dto.py +87 -0
- immich/client/models/asset_media_response_dto.py +84 -0
- immich/client/models/asset_media_size.py +35 -0
- immich/client/models/asset_media_status.py +35 -0
- immich/client/models/asset_metadata_key.py +33 -0
- immich/client/models/asset_metadata_response_dto.py +92 -0
- immich/client/models/asset_metadata_upsert_dto.py +101 -0
- immich/client/models/asset_metadata_upsert_item_dto.py +84 -0
- immich/client/models/asset_ocr_response_dto.py +145 -0
- immich/client/models/asset_order.py +34 -0
- immich/client/models/asset_response_dto.py +291 -0
- immich/client/models/asset_stack_response_dto.py +90 -0
- immich/client/models/asset_stats_response_dto.py +90 -0
- immich/client/models/asset_type_enum.py +36 -0
- immich/client/models/asset_visibility.py +36 -0
- immich/client/models/audio_codec.py +36 -0
- immich/client/models/auth_status_response_dto.py +100 -0
- immich/client/models/avatar_update.py +83 -0
- immich/client/models/bulk_id_error_reason.py +36 -0
- immich/client/models/bulk_id_response_dto.py +102 -0
- immich/client/models/bulk_ids_dto.py +83 -0
- immich/client/models/cast_response.py +88 -0
- immich/client/models/cast_update.py +82 -0
- immich/client/models/change_password_dto.py +101 -0
- immich/client/models/check_existing_assets_dto.py +91 -0
- immich/client/models/check_existing_assets_response_dto.py +82 -0
- immich/client/models/clip_config.py +85 -0
- immich/client/models/colorspace.py +34 -0
- immich/client/models/contributor_count_response_dto.py +85 -0
- immich/client/models/cq_mode.py +35 -0
- immich/client/models/create_album_dto.py +112 -0
- immich/client/models/create_library_dto.py +103 -0
- immich/client/models/create_profile_image_response_dto.py +95 -0
- immich/client/models/database_backup_config.py +94 -0
- immich/client/models/download_archive_info.py +85 -0
- immich/client/models/download_info_dto.py +96 -0
- immich/client/models/download_response.py +90 -0
- immich/client/models/download_response_dto.py +100 -0
- immich/client/models/download_update.py +93 -0
- immich/client/models/duplicate_detection_config.py +89 -0
- immich/client/models/duplicate_response_dto.py +98 -0
- immich/client/models/email_notifications_response.py +90 -0
- immich/client/models/email_notifications_update.py +90 -0
- immich/client/models/exif_response_dto.py +284 -0
- immich/client/models/face_dto.py +83 -0
- immich/client/models/facial_recognition_config.py +107 -0
- immich/client/models/folders_response.py +92 -0
- immich/client/models/folders_update.py +85 -0
- immich/client/models/image_format.py +34 -0
- immich/client/models/job_create_dto.py +83 -0
- immich/client/models/job_name.py +87 -0
- immich/client/models/job_settings_dto.py +83 -0
- immich/client/models/library_response_dto.py +118 -0
- immich/client/models/library_stats_response_dto.py +92 -0
- immich/client/models/license_key_dto.py +98 -0
- immich/client/models/license_response_dto.py +101 -0
- immich/client/models/log_level.py +38 -0
- immich/client/models/login_credential_dto.py +85 -0
- immich/client/models/login_response_dto.py +109 -0
- immich/client/models/logout_response_dto.py +85 -0
- immich/client/models/machine_learning_availability_checks_dto.py +90 -0
- immich/client/models/maintenance_action.py +34 -0
- immich/client/models/maintenance_auth_dto.py +82 -0
- immich/client/models/maintenance_login_dto.py +82 -0
- immich/client/models/manual_job_name.py +38 -0
- immich/client/models/map_marker_response_dto.py +111 -0
- immich/client/models/map_reverse_geocode_response_dto.py +105 -0
- immich/client/models/memories_response.py +92 -0
- immich/client/models/memories_update.py +86 -0
- immich/client/models/memory_create_dto.py +112 -0
- immich/client/models/memory_response_dto.py +142 -0
- immich/client/models/memory_search_order.py +35 -0
- immich/client/models/memory_statistics_response_dto.py +82 -0
- immich/client/models/memory_type.py +33 -0
- immich/client/models/memory_update_dto.py +91 -0
- immich/client/models/merge_person_dto.py +83 -0
- immich/client/models/metadata_search_dto.py +277 -0
- immich/client/models/notification_create_dto.py +120 -0
- immich/client/models/notification_delete_all_dto.py +83 -0
- immich/client/models/notification_dto.py +112 -0
- immich/client/models/notification_level.py +36 -0
- immich/client/models/notification_type.py +38 -0
- immich/client/models/notification_update_all_dto.py +90 -0
- immich/client/models/notification_update_dto.py +88 -0
- immich/client/models/o_auth_authorize_response_dto.py +82 -0
- immich/client/models/o_auth_callback_dto.py +90 -0
- immich/client/models/o_auth_config_dto.py +90 -0
- immich/client/models/o_auth_token_endpoint_auth_method.py +34 -0
- immich/client/models/ocr_config.py +109 -0
- immich/client/models/on_this_day_dto.py +86 -0
- immich/client/models/onboarding_dto.py +82 -0
- immich/client/models/onboarding_response_dto.py +82 -0
- immich/client/models/partner_create_dto.py +83 -0
- immich/client/models/partner_direction.py +34 -0
- immich/client/models/partner_response_dto.py +108 -0
- immich/client/models/partner_update_dto.py +82 -0
- immich/client/models/people_response.py +92 -0
- immich/client/models/people_response_dto.py +104 -0
- immich/client/models/people_update.py +85 -0
- immich/client/models/people_update_dto.py +96 -0
- immich/client/models/people_update_item.py +128 -0
- immich/client/models/permission.py +177 -0
- immich/client/models/person_create_dto.py +117 -0
- immich/client/models/person_response_dto.py +115 -0
- immich/client/models/person_statistics_response_dto.py +82 -0
- immich/client/models/person_update_dto.py +125 -0
- immich/client/models/person_with_faces_response_dto.py +133 -0
- immich/client/models/pin_code_change_dto.py +90 -0
- immich/client/models/pin_code_reset_dto.py +85 -0
- immich/client/models/pin_code_setup_dto.py +82 -0
- immich/client/models/places_response_dto.py +100 -0
- immich/client/models/plugin_action_response_dto.py +112 -0
- immich/client/models/plugin_context_type.py +35 -0
- immich/client/models/plugin_filter_response_dto.py +112 -0
- immich/client/models/plugin_response_dto.py +139 -0
- immich/client/models/plugin_trigger_response_dto.py +87 -0
- immich/client/models/plugin_trigger_type.py +34 -0
- immich/client/models/purchase_response.py +88 -0
- immich/client/models/purchase_update.py +92 -0
- immich/client/models/queue_command.py +37 -0
- immich/client/models/queue_command_dto.py +86 -0
- immich/client/models/queue_delete_dto.py +85 -0
- immich/client/models/queue_job_response_dto.py +93 -0
- immich/client/models/queue_job_status.py +38 -0
- immich/client/models/queue_name.py +49 -0
- immich/client/models/queue_response_dto.py +97 -0
- immich/client/models/queue_response_legacy_dto.py +100 -0
- immich/client/models/queue_statistics_dto.py +103 -0
- immich/client/models/queue_status_legacy_dto.py +85 -0
- immich/client/models/queue_update_dto.py +82 -0
- immich/client/models/queues_response_legacy_dto.py +242 -0
- immich/client/models/random_search_dto.py +234 -0
- immich/client/models/ratings_response.py +84 -0
- immich/client/models/ratings_update.py +82 -0
- immich/client/models/reaction_level.py +34 -0
- immich/client/models/reaction_type.py +34 -0
- immich/client/models/reverse_geocoding_state_response_dto.py +101 -0
- immich/client/models/search_album_response_dto.py +114 -0
- immich/client/models/search_asset_response_dto.py +127 -0
- immich/client/models/search_explore_item.py +94 -0
- immich/client/models/search_explore_response_dto.py +98 -0
- immich/client/models/search_facet_count_response_dto.py +85 -0
- immich/client/models/search_facet_response_dto.py +103 -0
- immich/client/models/search_response_dto.py +100 -0
- immich/client/models/search_statistics_response_dto.py +82 -0
- immich/client/models/search_suggestion_type.py +38 -0
- immich/client/models/server_about_response_dto.py +156 -0
- immich/client/models/server_apk_links_dto.py +97 -0
- immich/client/models/server_config_dto.py +118 -0
- immich/client/models/server_features_dto.py +130 -0
- immich/client/models/server_media_types_response_dto.py +90 -0
- immich/client/models/server_ping_response.py +87 -0
- immich/client/models/server_stats_response_dto.py +119 -0
- immich/client/models/server_storage_response_dto.py +108 -0
- immich/client/models/server_theme_dto.py +82 -0
- immich/client/models/server_version_history_response_dto.py +91 -0
- immich/client/models/server_version_response_dto.py +90 -0
- immich/client/models/session_create_dto.py +96 -0
- immich/client/models/session_create_response_dto.py +120 -0
- immich/client/models/session_response_dto.py +117 -0
- immich/client/models/session_unlock_dto.py +85 -0
- immich/client/models/session_update_dto.py +84 -0
- immich/client/models/set_maintenance_mode_dto.py +83 -0
- immich/client/models/shared_link_create_dto.py +142 -0
- immich/client/models/shared_link_edit_dto.py +134 -0
- immich/client/models/shared_link_response_dto.py +173 -0
- immich/client/models/shared_link_type.py +34 -0
- immich/client/models/shared_links_response.py +92 -0
- immich/client/models/shared_links_update.py +85 -0
- immich/client/models/sign_up_dto.py +90 -0
- immich/client/models/smart_search_dto.py +245 -0
- immich/client/models/source_type.py +35 -0
- immich/client/models/stack_create_dto.py +86 -0
- immich/client/models/stack_response_dto.py +100 -0
- immich/client/models/stack_update_dto.py +83 -0
- immich/client/models/statistics_search_dto.py +217 -0
- immich/client/models/sync_ack_delete_dto.py +83 -0
- immich/client/models/sync_ack_dto.py +84 -0
- immich/client/models/sync_ack_set_dto.py +83 -0
- immich/client/models/sync_album_delete_v1.py +82 -0
- immich/client/models/sync_album_to_asset_delete_v1.py +85 -0
- immich/client/models/sync_album_to_asset_v1.py +85 -0
- immich/client/models/sync_album_user_delete_v1.py +85 -0
- immich/client/models/sync_album_user_v1.py +91 -0
- immich/client/models/sync_album_v1.py +122 -0
- immich/client/models/sync_asset_delete_v1.py +82 -0
- immich/client/models/sync_asset_exif_v1.py +296 -0
- immich/client/models/sync_asset_face_delete_v1.py +82 -0
- immich/client/models/sync_asset_face_v1.py +120 -0
- immich/client/models/sync_asset_metadata_delete_v1.py +86 -0
- immich/client/models/sync_asset_metadata_v1.py +91 -0
- immich/client/models/sync_asset_v1.py +187 -0
- immich/client/models/sync_auth_user_v1.py +154 -0
- immich/client/models/sync_entity_type.py +79 -0
- immich/client/models/sync_memory_asset_delete_v1.py +85 -0
- immich/client/models/sync_memory_asset_v1.py +85 -0
- immich/client/models/sync_memory_delete_v1.py +82 -0
- immich/client/models/sync_memory_v1.py +143 -0
- immich/client/models/sync_partner_delete_v1.py +88 -0
- immich/client/models/sync_partner_v1.py +90 -0
- immich/client/models/sync_person_delete_v1.py +82 -0
- immich/client/models/sync_person_v1.py +131 -0
- immich/client/models/sync_request_type.py +52 -0
- immich/client/models/sync_stack_delete_v1.py +82 -0
- immich/client/models/sync_stack_v1.py +101 -0
- immich/client/models/sync_stream_dto.py +86 -0
- immich/client/models/sync_user_delete_v1.py +82 -0
- immich/client/models/sync_user_metadata_delete_v1.py +84 -0
- immich/client/models/sync_user_metadata_v1.py +91 -0
- immich/client/models/sync_user_v1.py +118 -0
- immich/client/models/system_config_backups_dto.py +92 -0
- immich/client/models/system_config_dto.py +302 -0
- immich/client/models/system_config_f_fmpeg_dto.py +156 -0
- immich/client/models/system_config_faces_dto.py +82 -0
- immich/client/models/system_config_generated_fullsize_image_dto.py +92 -0
- immich/client/models/system_config_generated_image_dto.py +92 -0
- immich/client/models/system_config_image_dto.py +124 -0
- immich/client/models/system_config_job_dto.py +194 -0
- immich/client/models/system_config_library_dto.py +104 -0
- immich/client/models/system_config_library_scan_dto.py +85 -0
- immich/client/models/system_config_library_watch_dto.py +82 -0
- immich/client/models/system_config_logging_dto.py +86 -0
- immich/client/models/system_config_machine_learning_dto.py +147 -0
- immich/client/models/system_config_map_dto.py +90 -0
- immich/client/models/system_config_metadata_dto.py +92 -0
- immich/client/models/system_config_new_version_check_dto.py +82 -0
- immich/client/models/system_config_nightly_tasks_dto.py +103 -0
- immich/client/models/system_config_notifications_dto.py +92 -0
- immich/client/models/system_config_o_auth_dto.py +155 -0
- immich/client/models/system_config_password_login_dto.py +82 -0
- immich/client/models/system_config_reverse_geocoding_dto.py +82 -0
- immich/client/models/system_config_server_dto.py +94 -0
- immich/client/models/system_config_smtp_dto.py +100 -0
- immich/client/models/system_config_smtp_transport_dto.py +107 -0
- immich/client/models/system_config_storage_template_dto.py +94 -0
- immich/client/models/system_config_template_emails_dto.py +94 -0
- immich/client/models/system_config_template_storage_option_dto.py +109 -0
- immich/client/models/system_config_templates_dto.py +94 -0
- immich/client/models/system_config_theme_dto.py +82 -0
- immich/client/models/system_config_trash_dto.py +86 -0
- immich/client/models/system_config_user_dto.py +83 -0
- immich/client/models/tag_bulk_assets_dto.py +86 -0
- immich/client/models/tag_bulk_assets_response_dto.py +82 -0
- immich/client/models/tag_create_dto.py +111 -0
- immich/client/models/tag_response_dto.py +107 -0
- immich/client/models/tag_update_dto.py +87 -0
- immich/client/models/tag_upsert_dto.py +82 -0
- immich/client/models/tags_response.py +92 -0
- immich/client/models/tags_update.py +85 -0
- immich/client/models/template_dto.py +82 -0
- immich/client/models/template_response_dto.py +83 -0
- immich/client/models/test_email_response_dto.py +82 -0
- immich/client/models/time_bucket_asset_response_dto.py +195 -0
- immich/client/models/time_buckets_response_dto.py +88 -0
- immich/client/models/tone_mapping.py +36 -0
- immich/client/models/transcode_hw_accel.py +37 -0
- immich/client/models/transcode_policy.py +37 -0
- immich/client/models/trash_response_dto.py +82 -0
- immich/client/models/update_album_dto.py +106 -0
- immich/client/models/update_album_user_dto.py +83 -0
- immich/client/models/update_asset_dto.py +135 -0
- immich/client/models/update_library_dto.py +95 -0
- immich/client/models/usage_by_user_dto.py +117 -0
- immich/client/models/user_admin_create_dto.py +136 -0
- immich/client/models/user_admin_delete_dto.py +82 -0
- immich/client/models/user_admin_response_dto.py +176 -0
- immich/client/models/user_admin_update_dto.py +141 -0
- immich/client/models/user_avatar_color.py +42 -0
- immich/client/models/user_license.py +91 -0
- immich/client/models/user_metadata_key.py +35 -0
- immich/client/models/user_preferences_response_dto.py +186 -0
- immich/client/models/user_preferences_update_dto.py +197 -0
- immich/client/models/user_response_dto.py +105 -0
- immich/client/models/user_status.py +35 -0
- immich/client/models/user_update_me_dto.py +98 -0
- immich/client/models/validate_access_token_response_dto.py +82 -0
- immich/client/models/validate_library_dto.py +93 -0
- immich/client/models/validate_library_import_path_response_dto.py +92 -0
- immich/client/models/validate_library_response_dto.py +103 -0
- immich/client/models/version_check_state_response_dto.py +98 -0
- immich/client/models/video_codec.py +36 -0
- immich/client/models/video_container.py +36 -0
- immich/client/models/workflow_action_item_dto.py +89 -0
- immich/client/models/workflow_action_response_dto.py +105 -0
- immich/client/models/workflow_create_dto.py +128 -0
- immich/client/models/workflow_filter_item_dto.py +89 -0
- immich/client/models/workflow_filter_response_dto.py +105 -0
- immich/client/models/workflow_response_dto.py +144 -0
- immich/client/models/workflow_update_dto.py +128 -0
- immich/client/py.typed +0 -0
- immich/client/rest.py +199 -0
- immich/client_wrapper/__init__.py +15 -0
- immich/client_wrapper/assets_api_wrapped.py +87 -0
- immich/client_wrapper/download_api_wrapped.py +111 -0
- immich/client_wrapper/users_api_wrapped.py +41 -0
- immich/py.typed +0 -0
- immich/sdk.py +365 -0
- immich/utils.py +100 -0
- immich-1.2.1.dist-info/METADATA +166 -0
- immich-1.2.1.dist-info/RECORD +387 -0
- immich-1.2.1.dist-info/WHEEL +4 -0
- immich-1.2.1.dist-info/licenses/LICENSE +9 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Immich
|
|
5
|
+
|
|
6
|
+
Immich API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.4.1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from immich.client.models.asset_face_without_person_response_dto import (
|
|
23
|
+
AssetFaceWithoutPersonResponseDto,
|
|
24
|
+
)
|
|
25
|
+
from immich.client.models.asset_stack_response_dto import AssetStackResponseDto
|
|
26
|
+
from immich.client.models.asset_type_enum import AssetTypeEnum
|
|
27
|
+
from immich.client.models.asset_visibility import AssetVisibility
|
|
28
|
+
from immich.client.models.exif_response_dto import ExifResponseDto
|
|
29
|
+
from immich.client.models.person_with_faces_response_dto import (
|
|
30
|
+
PersonWithFacesResponseDto,
|
|
31
|
+
)
|
|
32
|
+
from immich.client.models.tag_response_dto import TagResponseDto
|
|
33
|
+
from immich.client.models.user_response_dto import UserResponseDto
|
|
34
|
+
from typing import Set
|
|
35
|
+
from typing_extensions import Self
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class AssetResponseDto(BaseModel):
|
|
39
|
+
"""
|
|
40
|
+
AssetResponseDto
|
|
41
|
+
""" # noqa: E501
|
|
42
|
+
|
|
43
|
+
checksum: StrictStr = Field(description="base64 encoded sha1 hash")
|
|
44
|
+
created_at: datetime = Field(
|
|
45
|
+
description="The UTC timestamp when the asset was originally uploaded to Immich.",
|
|
46
|
+
alias="createdAt",
|
|
47
|
+
)
|
|
48
|
+
device_asset_id: StrictStr = Field(alias="deviceAssetId")
|
|
49
|
+
device_id: StrictStr = Field(alias="deviceId")
|
|
50
|
+
duplicate_id: Optional[StrictStr] = Field(default=None, alias="duplicateId")
|
|
51
|
+
duration: StrictStr
|
|
52
|
+
exif_info: Optional[ExifResponseDto] = Field(default=None, alias="exifInfo")
|
|
53
|
+
file_created_at: datetime = Field(
|
|
54
|
+
description="The actual UTC timestamp when the file was created/captured, preserving timezone information. This is the authoritative timestamp for chronological sorting within timeline groups. Combined with timezone data, this can be used to determine the exact moment the photo was taken.",
|
|
55
|
+
alias="fileCreatedAt",
|
|
56
|
+
)
|
|
57
|
+
file_modified_at: datetime = Field(
|
|
58
|
+
description="The UTC timestamp when the file was last modified on the filesystem. This reflects the last time the physical file was changed, which may be different from when the photo was originally taken.",
|
|
59
|
+
alias="fileModifiedAt",
|
|
60
|
+
)
|
|
61
|
+
has_metadata: StrictBool = Field(alias="hasMetadata")
|
|
62
|
+
id: StrictStr
|
|
63
|
+
is_archived: StrictBool = Field(alias="isArchived")
|
|
64
|
+
is_favorite: StrictBool = Field(alias="isFavorite")
|
|
65
|
+
is_offline: StrictBool = Field(alias="isOffline")
|
|
66
|
+
is_trashed: StrictBool = Field(alias="isTrashed")
|
|
67
|
+
library_id: Optional[StrictStr] = Field(default=None, alias="libraryId")
|
|
68
|
+
live_photo_video_id: Optional[StrictStr] = Field(
|
|
69
|
+
default=None, alias="livePhotoVideoId"
|
|
70
|
+
)
|
|
71
|
+
local_date_time: datetime = Field(
|
|
72
|
+
description='The local date and time when the photo/video was taken, derived from EXIF metadata. This represents the photographer\'s local time regardless of timezone, stored as a timezone-agnostic timestamp. Used for timeline grouping by "local" days and months.',
|
|
73
|
+
alias="localDateTime",
|
|
74
|
+
)
|
|
75
|
+
original_file_name: StrictStr = Field(alias="originalFileName")
|
|
76
|
+
original_mime_type: Optional[StrictStr] = Field(
|
|
77
|
+
default=None, alias="originalMimeType"
|
|
78
|
+
)
|
|
79
|
+
original_path: StrictStr = Field(alias="originalPath")
|
|
80
|
+
owner: Optional[UserResponseDto] = None
|
|
81
|
+
owner_id: StrictStr = Field(alias="ownerId")
|
|
82
|
+
people: Optional[List[PersonWithFacesResponseDto]] = None
|
|
83
|
+
resized: Optional[StrictBool] = None
|
|
84
|
+
stack: Optional[AssetStackResponseDto] = None
|
|
85
|
+
tags: Optional[List[TagResponseDto]] = None
|
|
86
|
+
thumbhash: Optional[StrictStr]
|
|
87
|
+
type: AssetTypeEnum
|
|
88
|
+
unassigned_faces: Optional[List[AssetFaceWithoutPersonResponseDto]] = Field(
|
|
89
|
+
default=None, alias="unassignedFaces"
|
|
90
|
+
)
|
|
91
|
+
updated_at: datetime = Field(
|
|
92
|
+
description="The UTC timestamp when the asset record was last updated in the database. This is automatically maintained by the database and reflects when any field in the asset was last modified.",
|
|
93
|
+
alias="updatedAt",
|
|
94
|
+
)
|
|
95
|
+
visibility: AssetVisibility
|
|
96
|
+
__properties: ClassVar[List[str]] = [
|
|
97
|
+
"checksum",
|
|
98
|
+
"createdAt",
|
|
99
|
+
"deviceAssetId",
|
|
100
|
+
"deviceId",
|
|
101
|
+
"duplicateId",
|
|
102
|
+
"duration",
|
|
103
|
+
"exifInfo",
|
|
104
|
+
"fileCreatedAt",
|
|
105
|
+
"fileModifiedAt",
|
|
106
|
+
"hasMetadata",
|
|
107
|
+
"id",
|
|
108
|
+
"isArchived",
|
|
109
|
+
"isFavorite",
|
|
110
|
+
"isOffline",
|
|
111
|
+
"isTrashed",
|
|
112
|
+
"libraryId",
|
|
113
|
+
"livePhotoVideoId",
|
|
114
|
+
"localDateTime",
|
|
115
|
+
"originalFileName",
|
|
116
|
+
"originalMimeType",
|
|
117
|
+
"originalPath",
|
|
118
|
+
"owner",
|
|
119
|
+
"ownerId",
|
|
120
|
+
"people",
|
|
121
|
+
"resized",
|
|
122
|
+
"stack",
|
|
123
|
+
"tags",
|
|
124
|
+
"thumbhash",
|
|
125
|
+
"type",
|
|
126
|
+
"unassignedFaces",
|
|
127
|
+
"updatedAt",
|
|
128
|
+
"visibility",
|
|
129
|
+
]
|
|
130
|
+
|
|
131
|
+
model_config = ConfigDict(
|
|
132
|
+
populate_by_name=True,
|
|
133
|
+
validate_assignment=True,
|
|
134
|
+
protected_namespaces=(),
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
def to_str(self) -> str:
|
|
138
|
+
"""Returns the string representation of the model using alias"""
|
|
139
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
140
|
+
|
|
141
|
+
def to_json(self) -> str:
|
|
142
|
+
"""Returns the JSON representation of the model using alias"""
|
|
143
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
144
|
+
return json.dumps(self.to_dict())
|
|
145
|
+
|
|
146
|
+
@classmethod
|
|
147
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
148
|
+
"""Create an instance of AssetResponseDto from a JSON string"""
|
|
149
|
+
return cls.from_dict(json.loads(json_str))
|
|
150
|
+
|
|
151
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
152
|
+
"""Return the dictionary representation of the model using alias.
|
|
153
|
+
|
|
154
|
+
This has the following differences from calling pydantic's
|
|
155
|
+
`self.model_dump(by_alias=True)`:
|
|
156
|
+
|
|
157
|
+
* `None` is only added to the output dict for nullable fields that
|
|
158
|
+
were set at model initialization. Other fields with value `None`
|
|
159
|
+
are ignored.
|
|
160
|
+
"""
|
|
161
|
+
excluded_fields: Set[str] = set([])
|
|
162
|
+
|
|
163
|
+
_dict = self.model_dump(
|
|
164
|
+
by_alias=True,
|
|
165
|
+
exclude=excluded_fields,
|
|
166
|
+
exclude_none=True,
|
|
167
|
+
)
|
|
168
|
+
# override the default output from pydantic by calling `to_dict()` of exif_info
|
|
169
|
+
if self.exif_info:
|
|
170
|
+
_dict["exifInfo"] = self.exif_info.to_dict()
|
|
171
|
+
# override the default output from pydantic by calling `to_dict()` of owner
|
|
172
|
+
if self.owner:
|
|
173
|
+
_dict["owner"] = self.owner.to_dict()
|
|
174
|
+
# override the default output from pydantic by calling `to_dict()` of each item in people (list)
|
|
175
|
+
_items = []
|
|
176
|
+
if self.people:
|
|
177
|
+
for _item_people in self.people:
|
|
178
|
+
if _item_people:
|
|
179
|
+
_items.append(_item_people.to_dict())
|
|
180
|
+
_dict["people"] = _items
|
|
181
|
+
# override the default output from pydantic by calling `to_dict()` of stack
|
|
182
|
+
if self.stack:
|
|
183
|
+
_dict["stack"] = self.stack.to_dict()
|
|
184
|
+
# override the default output from pydantic by calling `to_dict()` of each item in tags (list)
|
|
185
|
+
_items = []
|
|
186
|
+
if self.tags:
|
|
187
|
+
for _item_tags in self.tags:
|
|
188
|
+
if _item_tags:
|
|
189
|
+
_items.append(_item_tags.to_dict())
|
|
190
|
+
_dict["tags"] = _items
|
|
191
|
+
# override the default output from pydantic by calling `to_dict()` of each item in unassigned_faces (list)
|
|
192
|
+
_items = []
|
|
193
|
+
if self.unassigned_faces:
|
|
194
|
+
for _item_unassigned_faces in self.unassigned_faces:
|
|
195
|
+
if _item_unassigned_faces:
|
|
196
|
+
_items.append(_item_unassigned_faces.to_dict())
|
|
197
|
+
_dict["unassignedFaces"] = _items
|
|
198
|
+
# set to None if duplicate_id (nullable) is None
|
|
199
|
+
# and model_fields_set contains the field
|
|
200
|
+
if self.duplicate_id is None and "duplicate_id" in self.model_fields_set:
|
|
201
|
+
_dict["duplicateId"] = None
|
|
202
|
+
|
|
203
|
+
# set to None if library_id (nullable) is None
|
|
204
|
+
# and model_fields_set contains the field
|
|
205
|
+
if self.library_id is None and "library_id" in self.model_fields_set:
|
|
206
|
+
_dict["libraryId"] = None
|
|
207
|
+
|
|
208
|
+
# set to None if live_photo_video_id (nullable) is None
|
|
209
|
+
# and model_fields_set contains the field
|
|
210
|
+
if (
|
|
211
|
+
self.live_photo_video_id is None
|
|
212
|
+
and "live_photo_video_id" in self.model_fields_set
|
|
213
|
+
):
|
|
214
|
+
_dict["livePhotoVideoId"] = None
|
|
215
|
+
|
|
216
|
+
# set to None if stack (nullable) is None
|
|
217
|
+
# and model_fields_set contains the field
|
|
218
|
+
if self.stack is None and "stack" in self.model_fields_set:
|
|
219
|
+
_dict["stack"] = None
|
|
220
|
+
|
|
221
|
+
# set to None if thumbhash (nullable) is None
|
|
222
|
+
# and model_fields_set contains the field
|
|
223
|
+
if self.thumbhash is None and "thumbhash" in self.model_fields_set:
|
|
224
|
+
_dict["thumbhash"] = None
|
|
225
|
+
|
|
226
|
+
return _dict
|
|
227
|
+
|
|
228
|
+
@classmethod
|
|
229
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
230
|
+
"""Create an instance of AssetResponseDto from a dict"""
|
|
231
|
+
if obj is None:
|
|
232
|
+
return None
|
|
233
|
+
|
|
234
|
+
if not isinstance(obj, dict):
|
|
235
|
+
return cls.model_validate(obj)
|
|
236
|
+
|
|
237
|
+
_obj = cls.model_validate(
|
|
238
|
+
{
|
|
239
|
+
"checksum": obj.get("checksum"),
|
|
240
|
+
"createdAt": obj.get("createdAt"),
|
|
241
|
+
"deviceAssetId": obj.get("deviceAssetId"),
|
|
242
|
+
"deviceId": obj.get("deviceId"),
|
|
243
|
+
"duplicateId": obj.get("duplicateId"),
|
|
244
|
+
"duration": obj.get("duration"),
|
|
245
|
+
"exifInfo": ExifResponseDto.from_dict(obj["exifInfo"])
|
|
246
|
+
if obj.get("exifInfo") is not None
|
|
247
|
+
else None,
|
|
248
|
+
"fileCreatedAt": obj.get("fileCreatedAt"),
|
|
249
|
+
"fileModifiedAt": obj.get("fileModifiedAt"),
|
|
250
|
+
"hasMetadata": obj.get("hasMetadata"),
|
|
251
|
+
"id": obj.get("id"),
|
|
252
|
+
"isArchived": obj.get("isArchived"),
|
|
253
|
+
"isFavorite": obj.get("isFavorite"),
|
|
254
|
+
"isOffline": obj.get("isOffline"),
|
|
255
|
+
"isTrashed": obj.get("isTrashed"),
|
|
256
|
+
"libraryId": obj.get("libraryId"),
|
|
257
|
+
"livePhotoVideoId": obj.get("livePhotoVideoId"),
|
|
258
|
+
"localDateTime": obj.get("localDateTime"),
|
|
259
|
+
"originalFileName": obj.get("originalFileName"),
|
|
260
|
+
"originalMimeType": obj.get("originalMimeType"),
|
|
261
|
+
"originalPath": obj.get("originalPath"),
|
|
262
|
+
"owner": UserResponseDto.from_dict(obj["owner"])
|
|
263
|
+
if obj.get("owner") is not None
|
|
264
|
+
else None,
|
|
265
|
+
"ownerId": obj.get("ownerId"),
|
|
266
|
+
"people": [
|
|
267
|
+
PersonWithFacesResponseDto.from_dict(_item)
|
|
268
|
+
for _item in obj["people"]
|
|
269
|
+
]
|
|
270
|
+
if obj.get("people") is not None
|
|
271
|
+
else None,
|
|
272
|
+
"resized": obj.get("resized"),
|
|
273
|
+
"stack": AssetStackResponseDto.from_dict(obj["stack"])
|
|
274
|
+
if obj.get("stack") is not None
|
|
275
|
+
else None,
|
|
276
|
+
"tags": [TagResponseDto.from_dict(_item) for _item in obj["tags"]]
|
|
277
|
+
if obj.get("tags") is not None
|
|
278
|
+
else None,
|
|
279
|
+
"thumbhash": obj.get("thumbhash"),
|
|
280
|
+
"type": obj.get("type"),
|
|
281
|
+
"unassignedFaces": [
|
|
282
|
+
AssetFaceWithoutPersonResponseDto.from_dict(_item)
|
|
283
|
+
for _item in obj["unassignedFaces"]
|
|
284
|
+
]
|
|
285
|
+
if obj.get("unassignedFaces") is not None
|
|
286
|
+
else None,
|
|
287
|
+
"updatedAt": obj.get("updatedAt"),
|
|
288
|
+
"visibility": obj.get("visibility"),
|
|
289
|
+
}
|
|
290
|
+
)
|
|
291
|
+
return _obj
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Immich
|
|
5
|
+
|
|
6
|
+
Immich API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.4.1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
20
|
+
from typing import Any, ClassVar, Dict, List
|
|
21
|
+
from typing import Optional, Set
|
|
22
|
+
from typing_extensions import Self
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AssetStackResponseDto(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AssetStackResponseDto
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
|
|
30
|
+
asset_count: StrictInt = Field(alias="assetCount")
|
|
31
|
+
id: StrictStr
|
|
32
|
+
primary_asset_id: StrictStr = Field(alias="primaryAssetId")
|
|
33
|
+
__properties: ClassVar[List[str]] = ["assetCount", "id", "primaryAssetId"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of AssetStackResponseDto from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of AssetStackResponseDto from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate(
|
|
84
|
+
{
|
|
85
|
+
"assetCount": obj.get("assetCount"),
|
|
86
|
+
"id": obj.get("id"),
|
|
87
|
+
"primaryAssetId": obj.get("primaryAssetId"),
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
return _obj
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Immich
|
|
5
|
+
|
|
6
|
+
Immich API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.4.1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
20
|
+
from typing import Any, ClassVar, Dict, List
|
|
21
|
+
from typing import Optional, Set
|
|
22
|
+
from typing_extensions import Self
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AssetStatsResponseDto(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AssetStatsResponseDto
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
|
|
30
|
+
images: StrictInt
|
|
31
|
+
total: StrictInt
|
|
32
|
+
videos: StrictInt
|
|
33
|
+
__properties: ClassVar[List[str]] = ["images", "total", "videos"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of AssetStatsResponseDto from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of AssetStatsResponseDto from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate(
|
|
84
|
+
{
|
|
85
|
+
"images": obj.get("images"),
|
|
86
|
+
"total": obj.get("total"),
|
|
87
|
+
"videos": obj.get("videos"),
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
return _obj
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Immich
|
|
5
|
+
|
|
6
|
+
Immich API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.4.1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import json
|
|
16
|
+
from enum import Enum
|
|
17
|
+
from typing_extensions import Self
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class AssetTypeEnum(str, Enum):
|
|
21
|
+
"""
|
|
22
|
+
AssetTypeEnum
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
"""
|
|
26
|
+
allowed enum values
|
|
27
|
+
"""
|
|
28
|
+
IMAGE = "IMAGE"
|
|
29
|
+
VIDEO = "VIDEO"
|
|
30
|
+
AUDIO = "AUDIO"
|
|
31
|
+
OTHER = "OTHER"
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_json(cls, json_str: str) -> Self:
|
|
35
|
+
"""Create an instance of AssetTypeEnum from a JSON string"""
|
|
36
|
+
return cls(json.loads(json_str))
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Immich
|
|
5
|
+
|
|
6
|
+
Immich API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.4.1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import json
|
|
16
|
+
from enum import Enum
|
|
17
|
+
from typing_extensions import Self
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class AssetVisibility(str, Enum):
|
|
21
|
+
"""
|
|
22
|
+
AssetVisibility
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
"""
|
|
26
|
+
allowed enum values
|
|
27
|
+
"""
|
|
28
|
+
ARCHIVE = "archive"
|
|
29
|
+
TIMELINE = "timeline"
|
|
30
|
+
HIDDEN = "hidden"
|
|
31
|
+
LOCKED = "locked"
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_json(cls, json_str: str) -> Self:
|
|
35
|
+
"""Create an instance of AssetVisibility from a JSON string"""
|
|
36
|
+
return cls(json.loads(json_str))
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Immich
|
|
5
|
+
|
|
6
|
+
Immich API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.4.1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import json
|
|
16
|
+
from enum import Enum
|
|
17
|
+
from typing_extensions import Self
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class AudioCodec(str, Enum):
|
|
21
|
+
"""
|
|
22
|
+
AudioCodec
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
"""
|
|
26
|
+
allowed enum values
|
|
27
|
+
"""
|
|
28
|
+
MP3 = "mp3"
|
|
29
|
+
AAC = "aac"
|
|
30
|
+
LIBOPUS = "libopus"
|
|
31
|
+
PCM_S16LE = "pcm_s16le"
|
|
32
|
+
|
|
33
|
+
@classmethod
|
|
34
|
+
def from_json(cls, json_str: str) -> Self:
|
|
35
|
+
"""Create an instance of AudioCodec from a JSON string"""
|
|
36
|
+
return cls(json.loads(json_str))
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Immich
|
|
5
|
+
|
|
6
|
+
Immich API
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.4.1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
import pprint
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
import json
|
|
18
|
+
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
20
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
21
|
+
from typing import Set
|
|
22
|
+
from typing_extensions import Self
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AuthStatusResponseDto(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AuthStatusResponseDto
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
|
|
30
|
+
expires_at: Optional[StrictStr] = Field(default=None, alias="expiresAt")
|
|
31
|
+
is_elevated: StrictBool = Field(alias="isElevated")
|
|
32
|
+
password: StrictBool
|
|
33
|
+
pin_code: StrictBool = Field(alias="pinCode")
|
|
34
|
+
pin_expires_at: Optional[StrictStr] = Field(default=None, alias="pinExpiresAt")
|
|
35
|
+
__properties: ClassVar[List[str]] = [
|
|
36
|
+
"expiresAt",
|
|
37
|
+
"isElevated",
|
|
38
|
+
"password",
|
|
39
|
+
"pinCode",
|
|
40
|
+
"pinExpiresAt",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
model_config = ConfigDict(
|
|
44
|
+
populate_by_name=True,
|
|
45
|
+
validate_assignment=True,
|
|
46
|
+
protected_namespaces=(),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
def to_str(self) -> str:
|
|
50
|
+
"""Returns the string representation of the model using alias"""
|
|
51
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
+
|
|
53
|
+
def to_json(self) -> str:
|
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
|
55
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
56
|
+
return json.dumps(self.to_dict())
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
+
"""Create an instance of AuthStatusResponseDto from a JSON string"""
|
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
|
62
|
+
|
|
63
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
64
|
+
"""Return the dictionary representation of the model using alias.
|
|
65
|
+
|
|
66
|
+
This has the following differences from calling pydantic's
|
|
67
|
+
`self.model_dump(by_alias=True)`:
|
|
68
|
+
|
|
69
|
+
* `None` is only added to the output dict for nullable fields that
|
|
70
|
+
were set at model initialization. Other fields with value `None`
|
|
71
|
+
are ignored.
|
|
72
|
+
"""
|
|
73
|
+
excluded_fields: Set[str] = set([])
|
|
74
|
+
|
|
75
|
+
_dict = self.model_dump(
|
|
76
|
+
by_alias=True,
|
|
77
|
+
exclude=excluded_fields,
|
|
78
|
+
exclude_none=True,
|
|
79
|
+
)
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of AuthStatusResponseDto from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate(
|
|
92
|
+
{
|
|
93
|
+
"expiresAt": obj.get("expiresAt"),
|
|
94
|
+
"isElevated": obj.get("isElevated"),
|
|
95
|
+
"password": obj.get("password"),
|
|
96
|
+
"pinCode": obj.get("pinCode"),
|
|
97
|
+
"pinExpiresAt": obj.get("pinExpiresAt"),
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
return _obj
|