2022-07-13 14:23:48 +02:00
|
|
|
//
|
|
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
|
|
//
|
|
|
|
// @dart=2.12
|
|
|
|
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
|
|
// ignore_for_file: constant_identifier_names
|
|
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
|
|
|
|
library openapi.api;
|
|
|
|
|
|
|
|
import 'dart:async';
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:io';
|
|
|
|
|
2024-01-26 18:40:28 +02:00
|
|
|
import 'package:collection/collection.dart';
|
2023-02-12 05:37:48 +02:00
|
|
|
import 'package:flutter/foundation.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
import 'package:http/http.dart';
|
|
|
|
import 'package:intl/intl.dart';
|
|
|
|
import 'package:meta/meta.dart';
|
|
|
|
|
|
|
|
part 'api_client.dart';
|
|
|
|
part 'api_helper.dart';
|
|
|
|
part 'api_exception.dart';
|
|
|
|
part 'auth/authentication.dart';
|
|
|
|
part 'auth/api_key_auth.dart';
|
|
|
|
part 'auth/oauth.dart';
|
|
|
|
part 'auth/http_basic_auth.dart';
|
|
|
|
part 'auth/http_bearer_auth.dart';
|
|
|
|
|
2023-01-02 22:22:33 +02:00
|
|
|
part 'api/api_key_api.dart';
|
2023-11-01 05:13:34 +02:00
|
|
|
part 'api/activity_api.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'api/album_api.dart';
|
|
|
|
part 'api/asset_api.dart';
|
2023-08-24 21:28:50 +02:00
|
|
|
part 'api/audit_api.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'api/authentication_api.dart';
|
2024-01-26 16:19:13 +02:00
|
|
|
part 'api/download_api.dart';
|
2023-12-05 17:43:15 +02:00
|
|
|
part 'api/face_api.dart';
|
2022-10-06 18:25:54 +02:00
|
|
|
part 'api/job_api.dart';
|
2023-09-20 13:16:33 +02:00
|
|
|
part 'api/library_api.dart';
|
2022-11-15 04:24:25 +02:00
|
|
|
part 'api/o_auth_api.dart';
|
2023-05-15 19:30:53 +02:00
|
|
|
part 'api/partner_api.dart';
|
2023-05-17 19:07:17 +02:00
|
|
|
part 'api/person_api.dart';
|
2023-03-03 04:47:08 +02:00
|
|
|
part 'api/search_api.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'api/server_info_api.dart';
|
2023-06-21 03:08:43 +02:00
|
|
|
part 'api/shared_link_api.dart';
|
2022-11-15 06:39:32 +02:00
|
|
|
part 'api/system_config_api.dart';
|
2022-12-05 19:56:44 +02:00
|
|
|
part 'api/tag_api.dart';
|
2024-01-26 18:48:37 +02:00
|
|
|
part 'api/trash_api.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'api/user_api.dart';
|
|
|
|
|
2023-01-02 22:22:33 +02:00
|
|
|
part 'model/api_key_create_dto.dart';
|
|
|
|
part 'model/api_key_create_response_dto.dart';
|
|
|
|
part 'model/api_key_response_dto.dart';
|
|
|
|
part 'model/api_key_update_dto.dart';
|
2023-11-01 05:13:34 +02:00
|
|
|
part 'model/activity_create_dto.dart';
|
|
|
|
part 'model/activity_response_dto.dart';
|
|
|
|
part 'model/activity_statistics_response_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/add_users_dto.dart';
|
2022-09-07 22:16:18 +02:00
|
|
|
part 'model/album_count_response_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/album_response_dto.dart';
|
2022-10-06 18:25:54 +02:00
|
|
|
part 'model/all_job_status_response_dto.dart';
|
2023-10-06 09:01:14 +02:00
|
|
|
part 'model/asset_bulk_delete_dto.dart';
|
2023-08-16 22:04:55 +02:00
|
|
|
part 'model/asset_bulk_update_dto.dart';
|
2023-05-24 23:08:21 +02:00
|
|
|
part 'model/asset_bulk_upload_check_dto.dart';
|
|
|
|
part 'model/asset_bulk_upload_check_item.dart';
|
|
|
|
part 'model/asset_bulk_upload_check_response_dto.dart';
|
|
|
|
part 'model/asset_bulk_upload_check_result.dart';
|
2023-12-05 17:43:15 +02:00
|
|
|
part 'model/asset_face_response_dto.dart';
|
|
|
|
part 'model/asset_face_update_dto.dart';
|
|
|
|
part 'model/asset_face_update_item.dart';
|
|
|
|
part 'model/asset_face_without_person_response_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/asset_file_upload_response_dto.dart';
|
2023-06-01 03:51:28 +02:00
|
|
|
part 'model/asset_ids_dto.dart';
|
|
|
|
part 'model/asset_ids_response_dto.dart';
|
2023-08-18 16:31:48 +02:00
|
|
|
part 'model/asset_job_name.dart';
|
|
|
|
part 'model/asset_jobs_dto.dart';
|
2023-11-15 00:47:15 +02:00
|
|
|
part 'model/asset_order.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/asset_response_dto.dart';
|
2023-07-14 15:30:17 +02:00
|
|
|
part 'model/asset_stats_response_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/asset_type_enum.dart';
|
2023-07-09 04:43:11 +02:00
|
|
|
part 'model/audio_codec.dart';
|
2023-08-24 21:28:50 +02:00
|
|
|
part 'model/audit_deletes_response_dto.dart';
|
2023-04-26 04:19:23 +02:00
|
|
|
part 'model/auth_device_response_dto.dart';
|
2023-07-11 23:52:41 +02:00
|
|
|
part 'model/bulk_id_response_dto.dart';
|
2023-08-02 03:29:14 +02:00
|
|
|
part 'model/bulk_ids_dto.dart';
|
2023-08-29 15:58:00 +02:00
|
|
|
part 'model/clip_config.dart';
|
|
|
|
part 'model/clip_mode.dart';
|
2023-09-03 03:22:42 +02:00
|
|
|
part 'model/cq_mode.dart';
|
2022-12-21 16:43:35 +02:00
|
|
|
part 'model/change_password_dto.dart';
|
2022-10-25 16:51:03 +02:00
|
|
|
part 'model/check_existing_assets_dto.dart';
|
|
|
|
part 'model/check_existing_assets_response_dto.dart';
|
2023-09-03 08:21:51 +02:00
|
|
|
part 'model/colorspace.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/create_album_dto.dart';
|
2023-09-20 13:16:33 +02:00
|
|
|
part 'model/create_library_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/create_profile_image_response_dto.dart';
|
2022-12-05 19:56:44 +02:00
|
|
|
part 'model/create_tag_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/create_user_dto.dart';
|
|
|
|
part 'model/curated_locations_response_dto.dart';
|
|
|
|
part 'model/curated_objects_response_dto.dart';
|
2024-03-09 00:49:39 +02:00
|
|
|
part 'model/delete_user_dto.dart';
|
2023-06-30 18:24:28 +02:00
|
|
|
part 'model/download_archive_info.dart';
|
2023-08-15 17:49:32 +02:00
|
|
|
part 'model/download_info_dto.dart';
|
2023-06-30 18:24:28 +02:00
|
|
|
part 'model/download_response_dto.dart';
|
2023-08-24 21:28:50 +02:00
|
|
|
part 'model/entity_type.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/exif_response_dto.dart';
|
2023-12-05 17:43:15 +02:00
|
|
|
part 'model/face_dto.dart';
|
2023-10-14 19:12:59 +02:00
|
|
|
part 'model/file_checksum_dto.dart';
|
|
|
|
part 'model/file_checksum_response_dto.dart';
|
|
|
|
part 'model/file_report_dto.dart';
|
|
|
|
part 'model/file_report_fix_dto.dart';
|
|
|
|
part 'model/file_report_item_dto.dart';
|
2022-10-06 18:25:54 +02:00
|
|
|
part 'model/job_command.dart';
|
|
|
|
part 'model/job_command_dto.dart';
|
2023-03-20 17:55:28 +02:00
|
|
|
part 'model/job_counts_dto.dart';
|
|
|
|
part 'model/job_name.dart';
|
2023-06-01 12:32:51 +02:00
|
|
|
part 'model/job_settings_dto.dart';
|
2023-04-01 22:46:07 +02:00
|
|
|
part 'model/job_status_dto.dart';
|
2023-09-20 13:16:33 +02:00
|
|
|
part 'model/library_response_dto.dart';
|
|
|
|
part 'model/library_stats_response_dto.dart';
|
|
|
|
part 'model/library_type.dart';
|
2023-12-14 18:55:40 +02:00
|
|
|
part 'model/log_level.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/login_credential_dto.dart';
|
|
|
|
part 'model/login_response_dto.dart';
|
2022-07-19 20:49:58 +02:00
|
|
|
part 'model/logout_response_dto.dart';
|
2023-05-06 03:33:30 +02:00
|
|
|
part 'model/map_marker_response_dto.dart';
|
2023-11-09 18:10:56 +02:00
|
|
|
part 'model/map_theme.dart';
|
2023-06-15 03:47:18 +02:00
|
|
|
part 'model/memory_lane_response_dto.dart';
|
2023-07-11 23:52:41 +02:00
|
|
|
part 'model/merge_person_dto.dart';
|
2024-02-17 19:00:55 +02:00
|
|
|
part 'model/metadata_search_dto.dart';
|
2023-08-29 15:58:00 +02:00
|
|
|
part 'model/model_type.dart';
|
2023-09-01 13:08:42 +02:00
|
|
|
part 'model/o_auth_authorize_response_dto.dart';
|
2022-11-15 04:24:25 +02:00
|
|
|
part 'model/o_auth_callback_dto.dart';
|
|
|
|
part 'model/o_auth_config_dto.dart';
|
2023-11-11 23:06:19 +02:00
|
|
|
part 'model/partner_response_dto.dart';
|
2023-10-14 19:12:59 +02:00
|
|
|
part 'model/path_entity_type.dart';
|
|
|
|
part 'model/path_type.dart';
|
2023-07-18 20:09:43 +02:00
|
|
|
part 'model/people_response_dto.dart';
|
2023-07-23 05:00:43 +02:00
|
|
|
part 'model/people_update_dto.dart';
|
|
|
|
part 'model/people_update_item.dart';
|
2024-03-07 22:34:57 +02:00
|
|
|
part 'model/person_create_dto.dart';
|
2023-05-17 19:07:17 +02:00
|
|
|
part 'model/person_response_dto.dart';
|
2023-10-24 17:53:49 +02:00
|
|
|
part 'model/person_statistics_response_dto.dart';
|
2023-05-17 19:07:17 +02:00
|
|
|
part 'model/person_update_dto.dart';
|
2023-12-05 17:43:15 +02:00
|
|
|
part 'model/person_with_faces_response_dto.dart';
|
2024-02-24 02:42:37 +02:00
|
|
|
part 'model/places_response_dto.dart';
|
2023-04-01 22:46:07 +02:00
|
|
|
part 'model/queue_status_dto.dart';
|
2023-11-10 04:32:31 +02:00
|
|
|
part 'model/reaction_level.dart';
|
2023-11-01 05:13:34 +02:00
|
|
|
part 'model/reaction_type.dart';
|
2023-08-29 15:58:00 +02:00
|
|
|
part 'model/recognition_config.dart';
|
2023-09-20 13:16:33 +02:00
|
|
|
part 'model/scan_library_dto.dart';
|
2023-03-03 04:47:08 +02:00
|
|
|
part 'model/search_album_response_dto.dart';
|
|
|
|
part 'model/search_asset_response_dto.dart';
|
2023-03-05 22:44:31 +02:00
|
|
|
part 'model/search_explore_item.dart';
|
|
|
|
part 'model/search_explore_response_dto.dart';
|
2023-03-03 04:47:08 +02:00
|
|
|
part 'model/search_facet_count_response_dto.dart';
|
|
|
|
part 'model/search_facet_response_dto.dart';
|
|
|
|
part 'model/search_response_dto.dart';
|
2024-02-13 21:54:58 +02:00
|
|
|
part 'model/search_suggestion_type.dart';
|
2023-09-09 04:51:46 +02:00
|
|
|
part 'model/server_config_dto.dart';
|
2023-08-18 06:55:26 +02:00
|
|
|
part 'model/server_features_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/server_info_response_dto.dart';
|
2023-07-16 03:24:46 +02:00
|
|
|
part 'model/server_media_types_response_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/server_ping_response.dart';
|
2022-10-23 23:54:54 +02:00
|
|
|
part 'model/server_stats_response_dto.dart';
|
2023-10-26 00:13:05 +02:00
|
|
|
part 'model/server_theme_dto.dart';
|
2023-08-18 06:55:26 +02:00
|
|
|
part 'model/server_version_response_dto.dart';
|
2023-06-21 03:08:43 +02:00
|
|
|
part 'model/shared_link_create_dto.dart';
|
|
|
|
part 'model/shared_link_edit_dto.dart';
|
2023-01-09 22:16:08 +02:00
|
|
|
part 'model/shared_link_response_dto.dart';
|
|
|
|
part 'model/shared_link_type.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/sign_up_dto.dart';
|
|
|
|
part 'model/smart_info_response_dto.dart';
|
2024-02-17 19:00:55 +02:00
|
|
|
part 'model/smart_search_dto.dart';
|
2022-12-09 22:51:42 +02:00
|
|
|
part 'model/system_config_dto.dart';
|
|
|
|
part 'model/system_config_f_fmpeg_dto.dart';
|
2023-06-01 12:32:51 +02:00
|
|
|
part 'model/system_config_job_dto.dart';
|
2023-10-31 22:19:12 +02:00
|
|
|
part 'model/system_config_library_dto.dart';
|
|
|
|
part 'model/system_config_library_scan_dto.dart';
|
2024-01-31 10:15:54 +02:00
|
|
|
part 'model/system_config_library_watch_dto.dart';
|
2023-12-14 18:55:40 +02:00
|
|
|
part 'model/system_config_logging_dto.dart';
|
2023-08-25 06:15:03 +02:00
|
|
|
part 'model/system_config_machine_learning_dto.dart';
|
2023-09-09 04:51:46 +02:00
|
|
|
part 'model/system_config_map_dto.dart';
|
2023-10-24 17:05:42 +02:00
|
|
|
part 'model/system_config_new_version_check_dto.dart';
|
2022-12-09 22:51:42 +02:00
|
|
|
part 'model/system_config_o_auth_dto.dart';
|
2023-01-09 23:32:58 +02:00
|
|
|
part 'model/system_config_password_login_dto.dart';
|
2023-09-26 09:03:57 +02:00
|
|
|
part 'model/system_config_reverse_geocoding_dto.dart';
|
2024-01-04 04:54:48 +02:00
|
|
|
part 'model/system_config_server_dto.dart';
|
2022-12-16 22:26:12 +02:00
|
|
|
part 'model/system_config_storage_template_dto.dart';
|
|
|
|
part 'model/system_config_template_storage_option_dto.dart';
|
2023-10-23 20:38:41 +02:00
|
|
|
part 'model/system_config_theme_dto.dart';
|
2023-08-08 16:39:51 +02:00
|
|
|
part 'model/system_config_thumbnail_dto.dart';
|
2023-10-06 09:01:14 +02:00
|
|
|
part 'model/system_config_trash_dto.dart';
|
2024-03-06 07:45:40 +02:00
|
|
|
part 'model/system_config_user_dto.dart';
|
2022-12-05 19:56:44 +02:00
|
|
|
part 'model/tag_response_dto.dart';
|
|
|
|
part 'model/tag_type_enum.dart';
|
2022-07-16 06:18:17 +02:00
|
|
|
part 'model/thumbnail_format.dart';
|
2023-08-04 23:07:15 +02:00
|
|
|
part 'model/time_bucket_response_dto.dart';
|
|
|
|
part 'model/time_bucket_size.dart';
|
2023-08-07 22:35:25 +02:00
|
|
|
part 'model/tone_mapping.dart';
|
2023-08-02 03:56:10 +02:00
|
|
|
part 'model/transcode_hw_accel.dart';
|
2023-07-09 04:43:11 +02:00
|
|
|
part 'model/transcode_policy.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/update_album_dto.dart';
|
2022-11-08 18:20:36 +02:00
|
|
|
part 'model/update_asset_dto.dart';
|
2023-09-20 13:16:33 +02:00
|
|
|
part 'model/update_library_dto.dart';
|
2023-11-11 23:06:19 +02:00
|
|
|
part 'model/update_partner_dto.dart';
|
2023-10-22 04:38:07 +02:00
|
|
|
part 'model/update_stack_parent_dto.dart';
|
2022-12-05 19:56:44 +02:00
|
|
|
part 'model/update_tag_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/update_user_dto.dart';
|
2022-10-23 23:54:54 +02:00
|
|
|
part 'model/usage_by_user_dto.dart';
|
2023-11-14 05:10:35 +02:00
|
|
|
part 'model/user_avatar_color.dart';
|
2023-11-01 05:13:34 +02:00
|
|
|
part 'model/user_dto.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/user_response_dto.dart';
|
2024-03-09 00:49:39 +02:00
|
|
|
part 'model/user_status.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
part 'model/validate_access_token_response_dto.dart';
|
2024-02-20 17:53:12 +02:00
|
|
|
part 'model/validate_library_dto.dart';
|
|
|
|
part 'model/validate_library_import_path_response_dto.dart';
|
|
|
|
part 'model/validate_library_response_dto.dart';
|
2023-07-09 04:43:11 +02:00
|
|
|
part 'model/video_codec.dart';
|
2022-07-13 14:23:48 +02:00
|
|
|
|
|
|
|
|
2024-01-26 18:40:28 +02:00
|
|
|
/// An [ApiClient] instance that uses the default values obtained from
|
|
|
|
/// the OpenAPI specification file.
|
|
|
|
var defaultApiClient = ApiClient();
|
|
|
|
|
2022-07-13 14:23:48 +02:00
|
|
|
const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'};
|
|
|
|
const _dateEpochMarker = 'epoch';
|
2024-01-26 18:40:28 +02:00
|
|
|
const _deepEquality = DeepCollectionEquality();
|
2022-07-13 14:23:48 +02:00
|
|
|
final _dateFormatter = DateFormat('yyyy-MM-dd');
|
|
|
|
final _regList = RegExp(r'^List<(.*)>$');
|
|
|
|
final _regSet = RegExp(r'^Set<(.*)>$');
|
|
|
|
final _regMap = RegExp(r'^Map<String,(.*)>$');
|
|
|
|
|
2024-01-26 18:40:28 +02:00
|
|
|
bool _isEpochMarker(String? pattern) => pattern == _dateEpochMarker || pattern == '/$_dateEpochMarker/';
|