mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-30 18:22:37 -04:00 
			
		
		
		
	* feat: show per-user contribution counts on shared albums Add API support and UI display for per-user asset contribution counts on shared albums: - server: add ContributorCountResponseDto and repository method to aggregate counts per user (excluding deleted assets), expose via album response only when shared and counts > 0 - web: display contributor counts in Album Users modal next to each member’s role This helps users understand participation levels in shared albums. * Add ContributorCountResponseDto and expose contributorCounts on AlbumResponseDto in OpenAPI spec. Regenerate TypeScript SDK and mobile OpenAPI clients to include new types. No breaking changes; fields are additive. * fix: shrink age view to fit and not overflow (#22405) Co-authored-by: Alex <alex.tran1502@gmail.com> * chore: post release tasks (#22587) * chore: clean auth-user entity on reset (#22583) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> * fix: mitigate database lock scenario when running full sync in splash screen page (#22608) * fix: improve sync backup error indicator (#22527) * fix: improve sync indicator error * prefer backup disabled icon before error --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * fix: bottom navigation bar overlay sheet info (#22610) * fix: respect storage indicator setting (#22596) * fix: respect storage indicator size setting * remove black bar on the bottom of the setting scaffold page --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * fix: do not run multiple engines on cold startup (#22518) fix: do not run multiple engines on app startup Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * fix: album selector in favorite view (#22612) * chore(web): update translations (#22486) Translate-URL: https://hosted.weblate.org/projects/immich/immich/ar/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/az/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/bg/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ca/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/cs/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/da/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/de/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/el/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/es/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/fr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/he/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/hu/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/it/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/kn/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ko/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/lv/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ml/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/nl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pt/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pt_BR/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ro/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ru/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sk/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sv/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ta/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/tr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/zh_Hant/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/zh_SIMPLIFIED/ Translation: Immich/immich Co-authored-by: Arthur Bols <arthur@bols.dev> Co-authored-by: Ben Kim <benkim1129@gmail.com> Co-authored-by: César Gómez <cegomez@gmail.com> Co-authored-by: DR <weblate-kavita.snowflake668@slmail.me> Co-authored-by: DevServs <bonov@mail.ru> Co-authored-by: Emil Friis Osmann <Emilfriisosmann@gmail.com> Co-authored-by: Fjuro <fjuro@alius.cz> Co-authored-by: Godwin T <godwintgn@protonmail.com> Co-authored-by: Hristo T <hristotarnev@gmail.com> Co-authored-by: Hurricane-32 <rodrigorimo@hotmail.com> Co-authored-by: Jozef Gaal <preklady@mayday.sk> Co-authored-by: KecskeTech <teonyitas@gmail.com> Co-authored-by: Kiril Panayotov <eccyboo@protonmail.com> Co-authored-by: Liviu Roman <contact@liviuroman.com> Co-authored-by: Lorenzo <artale.lorenzo@outlook.it> Co-authored-by: Marcelo Popper Costa <marcelo_popper@hotmail.com> Co-authored-by: Matjaž T <matjaz@moj-svet.si> Co-authored-by: Miryusif Rahimov <miryusifrahimov@gmail.com> Co-authored-by: Msaood <msaood@msaood.com> Co-authored-by: Mārtiņš Bruņenieks <martinsb@gmail.com> Co-authored-by: Pedro Vendeira <vendeira.pedro@gmail.com> Co-authored-by: PontusÖsterlindh <pontus@osterlindh.com> Co-authored-by: Rahees <ahdrahees.dev@gmail.com> Co-authored-by: Sandeep R <sandeep1891995@gmail.com> Co-authored-by: Sylvain Pichon <service@spichon.fr> Co-authored-by: TV Box <realceday.tvbox@gmail.com> Co-authored-by: Tino Altmann <usinggrant@hotmail.de> Co-authored-by: User 123456789 <user123456789@users.noreply.hosted.weblate.org> Co-authored-by: Vegard Fladby <vegard@fladby.org> Co-authored-by: anton garcias <isaga.percompartir@gmail.com> Co-authored-by: chamdim <chamdim@protonmail.com> Co-authored-by: longlarry <weblate.gm@tuta.io> Co-authored-by: pyccl <changcongliang@163.com> Co-authored-by: swever <swever@users.noreply.hosted.weblate.org> Co-authored-by: தமிழ்நேரம் <tamilneram247@gmail.com> Co-authored-by: 안세훈 <on9686@gmail.com> * chore: version v2.0.1 * fix(docs): link to immich docs does not lead correctly to docs (#22687) * fix(server): fix chunking Postgres query parameters (#22684) * feat(server): improve checkAlbumAccess query performance (#22467) * Fix slow SQL query in checkAlbumAccess caused by the array overlap operator && * Update access.repository.sql * Rewrite the query to pass assetIds once as a single array parameter * chore: mark VSCode tasks as background tasks (#22631) VSCode expect tasks that aren't marked as background tasks to finish eventually. That's not how a dev-server is supposed to work, we expect it to run for basically infinite time. By marking those tasks as background tasks, VSCode stops showing the infinite loading spinner on those processes. * fix(ml): Resolve IPv6 startup crash and healthcheck failure (#22387) * fix(ml): Resolve IPv6 startup crash and healthcheck failure Fixes #13782 * fix(ml): updated the fix to use the std lib * Apply code formatting to __main__.py * fix(server): override reserved color metadata for video thumbnails (#22348) override reserved metadata * fix(mobile): trash description cut off (#22662) * fix(mobile): empty album description does not save (#22649) * fix(mobile): video player using ref after disposal (#21843) check if disposed * docs: add job order diagram (#22673) * docs: add job order diagram * wording --------- Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com> * fix: missing responsive calculation in UserPageLayout (#22455) * fix: use full-size image for non-web-compatible panoramas (#20359) * fix(web): use full-size image for non-web-compatible panoramas * always generate full-size image for panoramas * add unit test * fix formatting --------- Co-authored-by: gergo= <gergo@pitty.hu> * chore: update cli docs to pnpm (#22702) update cli docs to pnpm * chore(web): upgrade ESLint and plugins (#22495) * chore(web): upgrade ESLint and plugins, simplify linting configuration - Update eslint from ^9.18.0 to ^9.36.0 - Update eslint plugins: - eslint-plugin-svelte: ^3.9.0 → ^3.12.4 - eslint-plugin-unicorn: ^60.0.0 → ^61.0.2 - svelte-eslint-parser: ^1.2.0 → ^1.3.3 - typescript-eslint: ^8.28.0 → ^8.45.0 - Remove eslint-p dependency in favor of native eslint concurrency - Add unicorn/no-array-sort rule exception - Update linting scripts to use eslint's native --concurrency flag - Update Makefile and mise.toml to reflect simplified lint commands - Update GitHub Actions workflow to use standard pnpm lint command * pnpm dedupe --------- Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> * fix(web): do not notify on patch releases (#22591) * chore: post release tasks (#22616) * fix: hide view in timeline button on local timeline (#22713) * chore(server): support vectorchord 0.5.x (#21602) Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com> * fix: Fix issue fail to download iOS live photos (#22708) Co-authored-by: bwees <brandonwees@gmail.com> * fix(docs): Remove immich_remove_offline_files as no longer functional (#21774) Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com> Co-authored-by: Brandon Wees <brandonwees@gmail.com> * fix(mobile): closing editor goes back to main page (#22647) Co-authored-by: bwees <brandonwees@gmail.com> * docs: update TrueNAS migration instructions (#22463) Co-authored-by: bo0tzz <git@bo0tzz.me> Co-authored-by: Nicholas Flamy <30300649+NicholasFlamy@users.noreply.github.com> * docs: update Synology install guide (#21996) Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com> * fix: improve the selected sidebar item text color in dark mode (#22640) * chore(deps): update redis:6.2-alpine docker digest to 2185e74 (#22718) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore: update devcontainers for trixie, devenv changes (#22194) * fix(deps): update dependency device_info_plus to v12 (#22724) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency flutter to v3.35.5 (#22720) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update github-actions (#22721) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: --no-git-checks on pnpm publish (#22715) * fix: --no-git-checks on sdk publish * fix: --no-git-checks on cli publish * refactor(web): Clarify property names in Timeline and Scrubber (#22265) refactor(web): Clarify property names in Timeline and Scrubber Renamed properties across Timeline/Scrubber components for clarity: - scrubOverallPercent → timelineScrollPercent - scrubberMonthPercent → viewportTopMonthScrollPercent - scrubberMonth → viewportTopMonth - leadout → isInLeadOutSection Additional changes: - Updated ScrubberListener signature to accept object parameter - Added detailed JSDoc comments for all Scrubber props - Fixed callback invocations to use new object syntax - Aligned Timeline's local state variables with Scrubber prop names * fix: promote to foreground service before starting engine (#22517) fix: show notification from native Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * refactor(web): extract timeline keyboard actions into separate component (#22266) refactor(web): extract timeline keyboard actions into separate component Extracts keyboard shortcuts and related functionality from Timeline component into a dedicated TimelineKeyboardActions component for better separation of concerns and maintainability. * feat: make skeleton title optional (#22396) feat: skeleton title is optional feat: skeleton title optional * refactor(web): extract asset viewer logic from Timeline into TimelineAssetViewer component (#22268) refactor(web): extract asset viewer logic from Timeline into TimelineAssetViewer component - Extracted asset viewer navigation and action handling logic from Timeline.svelte into a dedicated TimelineAssetViewer component - Reduces Timeline.svelte complexity by ~150 lines and improves separation of concerns - No functional changes - purely a refactoring to improve code organization ## Changes - Created new TimelineAssetViewer.svelte component containing all asset viewer-related logic - Moved handlePrevious, handleNext, handleRandom, handleClose, handlePreAction, and handleAction methods - Timeline.svelte now only passes required props to the new component - Maintained all existing functionality including navigation, asset actions, and stack management * chore: track full actions/cache version in comment (#22359) * fix(ml): ipv6 check (#22735) * chore(deps): cache pnpm dependencies in prod build (#22555) * cache pnpm dependencies use different ids to be safe unnecessary lines * use buildcache folder * chore: use isar immich fork (#22738) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> * fix: bottom sheet blank with local assets that have remote counterparts (#22743) * chore(deps): update dependency @types/node to ^22.18.8 (#22719) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency nodemailer to v7.0.7 [security] (#22740) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update dependency connectivity_plus to v7 (#22723) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * chore: use hosted isar flutter libs (#22757) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> * fix: skip local only assets in move to lock action (#22728) * fix:prefer trashing to deletions * skip local only assets in move to lock action --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * fix: brief flashing when swiping from video (#22187) * fix(web): Uniform random distribution during shuffle (#19902) feat: better random distribution * fix: persist search page scroll offset between rebuilds (#22733) fix: persist search scroll between rebuilds Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * docs: add some external library notes (#22776) * feat(web): seconds and milliseconds in timestamps (#20337) * fix(web): seconds in timestamps * changed date-input step to provide millisecond precision * feat(cli): add debug development config (#22712) * add debug and change ts-node with tsx * update pr changes * update pnpm-lock * remove ts-node from readme * typo * resolve conflicts * remove tsx * launch from dist * add preLaunchTask * update readme * undo main in package.json * remove typo * Apply suggestion from @bwees Co-authored-by: Brandon Wees <brandonwees@gmail.com> * revert pnpm-lock changes * @jrasm91 suggestions * chore: run node with source maps --------- Co-authored-by: Jason Rasmussen <jason@rasm.me> Co-authored-by: Brandon Wees <brandonwees@gmail.com> * docs: add Immich-Stack to community-projects (#21563) docs: add Immich Stack community project Co-authored-by: Jason Rasmussen <jason@rasm.me> * feat(web): Add upload to stack action (#19842) * feat(web): Add upload to stack action * Event handling and translation * Update asset viewer instead * lint, improve upload return type * Add suggestions from code review * Resolve merge conflicts * Apply suggestions from code review * feat(server): add `immich.users.total` metric (#21780) * Add immich.users.total metric * Fix tests & one lint error * Lint * Fix SQL Schema checks * Fix nit * Use workers argument in OnEvent hook and remove condition from method body * feat(docs): add zh_TW Traditional Chinese version README (#22703) docs: add zh_TW Traditional Chinese version README * chore: ignore renovate major updates for postgres image (#22764) * fix: remove postgres exclude datasource match (#22811) * chore(deps): update github-actions (major) (#22810) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: revert terragrunt-action bump (#22812) * chore: don't enforce runes (#22813) * chore(deps): update base-image to v202510092146 (major) (#22818) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update typescript-projects (#22809) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Dietzler <mail@ddietzler.dev> * fix: only cast to device if the asset is a RemoteAsset (#22805) * feat: (perf) remove scroll compensation (#22837) * fix(deps): update dependency happy-dom to v20 [security] (#22846) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update github-actions (#22793) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: various typos (#22867) Found via `codespell -q 3 -S "*.svg,./i18n,./docs/package-lock.json,./readme_i18n,./mobile/assets/i18n" -L afterall,devlop,finaly,inout,nd,optin,renderd,sade` * fix: ios skip posting hash response after detached from engine (#22695) * skip posting message after detached from engine * review changes * cancel plugin before destroying engine --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * chore(deps): update ghcr.io/immich-app/postgres:14-vectorchord0.3.0 docker digest to 6f3e9d2 (#22912) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 docker digest to bcf6335 (#22913) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: re-add scroll compensation (efficiently) (#22848) * fix: re-add scroll compensation (efficient) * Rename showSkeleton to invisible. Adjust skeleton margins, invisible support. * Fix faulty logic, simplify * Calculate ratios and determine compensation strategy: height comp for above/partiality visible, month-scroll comp within a fully visible month. --------- Co-authored-by: Alex <alex.tran1502@gmail.com> * fix: shared album control permissions (#22435) * fix: shared album control permissions * fix: properly display "add photos" * fix: dont allow modification of album order * fix: album title/description edit from app bar * chore: code review changes * chore: format translations * chore: lintings * fix: show dialog before delete local action (#22280) * fix: show dialog on delete local action # Conflicts: # mobile/lib/repositories/asset_media.repository.dart * button style --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com> * fix(deps): update dependency kysely-postgres-js to v3 (#22924) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update redis:6.2-alpine docker digest to 77697a7 (#22915) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update typescript-projects (#22918) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Dietzler <mail@ddietzler.dev> * feat: local album events notification (#22817) * feat: local album events notification * pr feedback * show number of unread notification * chore: refactor show view in timeline button (#22894) * chore: refactor show view in timeline button This refactor includes changes to notify asset viewer about where an asset was shown from. * chore: realized I could just pull from the timelineProvider instead of storing it in the asset viewer state * chore: rename enum to TimelineOrigin and update members * fix: update isOwner condition --------- Co-authored-by: Alex <alex.tran1502@gmail.com> * chore(web): update translations (#22623) Translate-URL: https://hosted.weblate.org/projects/immich/immich/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ar/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/be/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/bn/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ca/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/cs/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/da/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/de/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/el/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/es/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/et/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/fi/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/fr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/gl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/he/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/hi/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/hr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/id/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/it/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ja/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ka/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/lv/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/mr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/nl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pa/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pt/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/pt_BR/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ro/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ru/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sk/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sl/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sr_Latn/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/sv/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/ta/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/tr/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/uk/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/zh_Hant/ Translate-URL: https://hosted.weblate.org/projects/immich/immich/zh_SIMPLIFIED/ Translation: Immich/immich Co-authored-by: Abhijeet Bonde <abhijeetbonde19@gmail.com> Co-authored-by: Adam Uchmanowicz <auchmanowicz@gmail.com> Co-authored-by: Adrian Hermida <adrian.hermida.baloira@gmail.com> Co-authored-by: Aleksa Milošević <akimaki15@gmail.com> Co-authored-by: Amin <amnsharif@gmail.com> Co-authored-by: AndreiP28 <andreiprica28@gmail.com> Co-authored-by: António Santos <antoniomsantos99@gmail.com> Co-authored-by: Asger Mogensen <asgermog@gmail.com> Co-authored-by: Christoph Auer <Christoph.Auer@pilsheim.de> Co-authored-by: Denis Pacquier <denis.pacquier@gmail.com> Co-authored-by: DevServs <bonov@mail.ru> Co-authored-by: Eetu Mäenpää <me@eetumaenpaa.fi> Co-authored-by: Felipe Garcia <garcia.o.felipe@gmail.com> Co-authored-by: Filip Joković <filip@jokovic.dev> Co-authored-by: Hurricane-32 <rodrigorimo@hotmail.com> Co-authored-by: Indrek Haav <indrek.haav@hotmail.com> Co-authored-by: Jason Song <songpeiheng@gmail.com> Co-authored-by: Javier Villanueva García <jvg2203@gmail.com> Co-authored-by: Jordy H <jordy@hoebergen.net> Co-authored-by: Jorge Montejo <jorgemon.lopez@gmail.com> Co-authored-by: Jozef Gaal <preklady@mayday.sk> Co-authored-by: Konstantinos D <kdemer@yahoo.com> Co-authored-by: Leo Bottaro <github@leobottaro.com> Co-authored-by: Linerly <linerly@proton.me> Co-authored-by: Liviu Roman <contact@liviuroman.com> Co-authored-by: Lorenz Baum <LorenzBaum@gmx.de> Co-authored-by: Lukas Konsin <lukaskonsin@proton.me> Co-authored-by: Mandeep <mandeeps708@gmail.com> Co-authored-by: Marc Casillas <mcasillassu@gmail.com> Co-authored-by: Marcelo Popper Costa <marcelo_popper@hotmail.com> Co-authored-by: MatijaThe245th <matija245matakovic@gmail.com> Co-authored-by: Matjaž T <matjaz@moj-svet.si> Co-authored-by: Mees Frensel <meesfrensel@gmail.com> Co-authored-by: Mirko <itzmirko@itzmirko.it> Co-authored-by: Mārtiņš Bruņenieks <martinsb@gmail.com> Co-authored-by: Oleksandr Yurov <oyurov@icloud.com> Co-authored-by: Orkun Sürel <orkunsurel@gmail.com> Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org> Co-authored-by: Philipp Burndorfer <phi.bur@gmx.at> Co-authored-by: Prasanth Baskar <bupdprasanth@gmail.com> Co-authored-by: Roman Zhukov <Softver161@gmail.com> Co-authored-by: Sayan Goswami <goswami.sayan47@gmail.com> Co-authored-by: Sergey Katsubo <skatsubo@gmail.com> Co-authored-by: Simon Bierwald <simon.bierwald@gmail.com> Co-authored-by: Sylvain Pichon <service@spichon.fr> Co-authored-by: TV Box <realceday.tvbox@gmail.com> Co-authored-by: Taiki M <vexingly-many-mace@duck.com> Co-authored-by: Theodore Zhvania <zhvania@ted.ge> Co-authored-by: Tim De Meyer <demeyer.tim@gmail.com> Co-authored-by: User 123456789 <user123456789@users.noreply.hosted.weblate.org> Co-authored-by: Valentino Harpa <valen.ginga@gmail.com> Co-authored-by: Vegard Fladby <vegard@fladby.org> Co-authored-by: Willem Schipper <git@willem.page> Co-authored-by: Yago Raña Gayoso <yago.rana.gayoso@gmail.com> Co-authored-by: Zurab Sajaia <vavalomi@hotmail.com> Co-authored-by: albanobattistella <albanobattistella@gmail.com> Co-authored-by: bittin1ddc447d824349b2 <bittin@reimu.nl> Co-authored-by: dark&white <darkwhite@users.noreply.hosted.weblate.org> Co-authored-by: eav5jhl0 <eav5jhl0@users.noreply.hosted.weblate.org> Co-authored-by: findussoft <sella_violett_8i@icloud.com> Co-authored-by: kiwinho <kiwicaja@gmail.com> Co-authored-by: millallo <millallo@tiscali.it> Co-authored-by: pyccl <changcongliang@163.com> Co-authored-by: rokon001 <rnacc3579@gmail.com> Co-authored-by: vaibhav kumar <catvaku@gmail.com> Co-authored-by: waclaw66 <waclaw66@seznam.cz> Co-authored-by: Максим Горпиніч <gorpinicmaksim0@gmail.com> Co-authored-by: தமிழ்நேரம் <tamilneram247@gmail.com> * chore: version v2.1.0 * refactor * question marks are the enemy * refactor count map * update readme * e2e * count of 0 is impossible * useless async --------- Co-authored-by: Chaoscontrol <6642238+Chaoscontrol@users.noreply.github.com> Co-authored-by: Brandon Wees <brandonwees@gmail.com> Co-authored-by: Alex <alex.tran1502@gmail.com> Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Weblate (bot) <hosted@weblate.org> Co-authored-by: Arthur Bols <arthur@bols.dev> Co-authored-by: Ben Kim <benkim1129@gmail.com> Co-authored-by: César Gómez <cegomez@gmail.com> Co-authored-by: DR <weblate-kavita.snowflake668@slmail.me> Co-authored-by: DevServs <bonov@mail.ru> Co-authored-by: Emil Friis Osmann <Emilfriisosmann@gmail.com> Co-authored-by: Fjuro <fjuro@alius.cz> Co-authored-by: Godwin T <godwintgn@protonmail.com> Co-authored-by: Hristo T <hristotarnev@gmail.com> Co-authored-by: Hurricane-32 <rodrigorimo@hotmail.com> Co-authored-by: Jozef Gaal <preklady@mayday.sk> Co-authored-by: KecskeTech <teonyitas@gmail.com> Co-authored-by: Kiril Panayotov <eccyboo@protonmail.com> Co-authored-by: Liviu Roman <contact@liviuroman.com> Co-authored-by: Lorenzo <artale.lorenzo@outlook.it> Co-authored-by: Marcelo Popper Costa <marcelo_popper@hotmail.com> Co-authored-by: Matjaž T <matjaz@moj-svet.si> Co-authored-by: Miryusif Rahimov <miryusifrahimov@gmail.com> Co-authored-by: Msaood <msaood@msaood.com> Co-authored-by: Mārtiņš Bruņenieks <martinsb@gmail.com> Co-authored-by: Pedro Vendeira <vendeira.pedro@gmail.com> Co-authored-by: PontusÖsterlindh <pontus@osterlindh.com> Co-authored-by: Rahees <ahdrahees.dev@gmail.com> Co-authored-by: Sandeep R <sandeep1891995@gmail.com> Co-authored-by: Sylvain Pichon <service@spichon.fr> Co-authored-by: TV Box <realceday.tvbox@gmail.com> Co-authored-by: Tino Altmann <usinggrant@hotmail.de> Co-authored-by: User 123456789 <user123456789@users.noreply.hosted.weblate.org> Co-authored-by: Vegard Fladby <vegard@fladby.org> Co-authored-by: anton garcias <isaga.percompartir@gmail.com> Co-authored-by: chamdim <chamdim@protonmail.com> Co-authored-by: longlarry <weblate.gm@tuta.io> Co-authored-by: pyccl <changcongliang@163.com> Co-authored-by: swever <swever@users.noreply.hosted.weblate.org> Co-authored-by: தமிழ்நேரம் <tamilneram247@gmail.com> Co-authored-by: 안세훈 <on9686@gmail.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Xavier Dupuis <xavier0978@hotmail.fr> Co-authored-by: Sergey Katsubo <skatsubo@gmail.com> Co-authored-by: Adrian Jost <22987140+adrianjost@users.noreply.github.com> Co-authored-by: Cokodayo <78474654+CaptainJack2491@users.noreply.github.com> Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com> Co-authored-by: Yaros <thedj.launchpadder.dmx512@gmail.com> Co-authored-by: USBAkimbo <71508071+USBAkimbo@users.noreply.github.com> Co-authored-by: Min Idzelis <min123@gmail.com> Co-authored-by: grgergo <gergo_g@proton.me> Co-authored-by: gergo= <gergo@pitty.hu> Co-authored-by: Jorge Montejo <jorgemon.lopez@gmail.com> Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> Co-authored-by: Jason Rasmussen <jason@rasm.me> Co-authored-by: Diogo Correia <me@diogotc.com> Co-authored-by: CuberL <liaoziyue10@gmail.com> Co-authored-by: Xantin <56741168+Xiticks@users.noreply.github.com> Co-authored-by: bo0tzz <git@bo0tzz.me> Co-authored-by: Nicholas Flamy <30300649+NicholasFlamy@users.noreply.github.com> Co-authored-by: TDR001 <redp50@outlook.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Saschl <19493808+Saschl@users.noreply.github.com> Co-authored-by: Pascal Sommer <Pascal-So@users.noreply.github.com> Co-authored-by: kaziu687 <kaziu687@gmail.com> Co-authored-by: Qhilm <3350433+Qhilm@users.noreply.github.com> Co-authored-by: Sebastian Schneider <sese.tailor@gmx.net> Co-authored-by: Tushar Harsora <tusharharsora95@gmail.com> Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org> Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Co-authored-by: Daniel Dietzler <mail@ddietzler.dev> Co-authored-by: luzpaz <luzpaz@users.noreply.github.com> Co-authored-by: Abhijeet Bonde <abhijeetbonde19@gmail.com> Co-authored-by: Adam Uchmanowicz <auchmanowicz@gmail.com> Co-authored-by: Adrian Hermida <adrian.hermida.baloira@gmail.com> Co-authored-by: Aleksa Milošević <akimaki15@gmail.com> Co-authored-by: Amin <amnsharif@gmail.com> Co-authored-by: AndreiP28 <andreiprica28@gmail.com> Co-authored-by: António Santos <antoniomsantos99@gmail.com> Co-authored-by: Asger Mogensen <asgermog@gmail.com> Co-authored-by: Christoph Auer <Christoph.Auer@pilsheim.de> Co-authored-by: Denis Pacquier <denis.pacquier@gmail.com> Co-authored-by: Eetu Mäenpää <me@eetumaenpaa.fi> Co-authored-by: Felipe Garcia <garcia.o.felipe@gmail.com> Co-authored-by: Filip Joković <filip@jokovic.dev> Co-authored-by: Indrek Haav <indrek.haav@hotmail.com> Co-authored-by: Jason Song <songpeiheng@gmail.com> Co-authored-by: Javier Villanueva García <jvg2203@gmail.com> Co-authored-by: Jordy H <jordy@hoebergen.net> Co-authored-by: Konstantinos D <kdemer@yahoo.com> Co-authored-by: Leo Bottaro <github@leobottaro.com> Co-authored-by: Linerly <linerly@proton.me> Co-authored-by: Lorenz Baum <LorenzBaum@gmx.de> Co-authored-by: Lukas Konsin <lukaskonsin@proton.me> Co-authored-by: Mandeep <mandeeps708@gmail.com> Co-authored-by: Marc Casillas <mcasillassu@gmail.com> Co-authored-by: MatijaThe245th <matija245matakovic@gmail.com> Co-authored-by: Mees Frensel <meesfrensel@gmail.com> Co-authored-by: Mirko <itzmirko@itzmirko.it> Co-authored-by: Oleksandr Yurov <oyurov@icloud.com> Co-authored-by: Orkun Sürel <orkunsurel@gmail.com> Co-authored-by: Philipp Burndorfer <phi.bur@gmx.at> Co-authored-by: Prasanth Baskar <bupdprasanth@gmail.com> Co-authored-by: Roman Zhukov <Softver161@gmail.com> Co-authored-by: Sayan Goswami <goswami.sayan47@gmail.com> Co-authored-by: Simon Bierwald <simon.bierwald@gmail.com> Co-authored-by: Taiki M <vexingly-many-mace@duck.com> Co-authored-by: Theodore Zhvania <zhvania@ted.ge> Co-authored-by: Tim De Meyer <demeyer.tim@gmail.com> Co-authored-by: Valentino Harpa <valen.ginga@gmail.com> Co-authored-by: Willem Schipper <git@willem.page> Co-authored-by: Yago Raña Gayoso <yago.rana.gayoso@gmail.com> Co-authored-by: Zurab Sajaia <vavalomi@hotmail.com> Co-authored-by: albanobattistella <albanobattistella@gmail.com> Co-authored-by: bittin1ddc447d824349b2 <bittin@reimu.nl> Co-authored-by: dark&white <darkwhite@users.noreply.hosted.weblate.org> Co-authored-by: eav5jhl0 <eav5jhl0@users.noreply.hosted.weblate.org> Co-authored-by: findussoft <sella_violett_8i@icloud.com> Co-authored-by: kiwinho <kiwicaja@gmail.com> Co-authored-by: millallo <millallo@tiscali.it> Co-authored-by: rokon001 <rnacc3579@gmail.com> Co-authored-by: vaibhav kumar <catvaku@gmail.com> Co-authored-by: waclaw66 <waclaw66@seznam.cz> Co-authored-by: Максим Горпиніч <gorpinicmaksim0@gmail.com>
		
			
				
	
	
		
			857 lines
		
	
	
		
			36 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
		
			Generated
		
	
	
			
		
		
	
	
			857 lines
		
	
	
		
			36 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
		
			Generated
		
	
	
| //
 | |
| // AUTO-GENERATED FILE, DO NOT MODIFY!
 | |
| //
 | |
| // @dart=2.18
 | |
| 
 | |
| // 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
 | |
| 
 | |
| part of openapi.api;
 | |
| 
 | |
| class ApiClient {
 | |
|   ApiClient({this.basePath = '/api', this.authentication,});
 | |
| 
 | |
|   final String basePath;
 | |
|   final Authentication? authentication;
 | |
| 
 | |
|   var _client = Client();
 | |
|   final _defaultHeaderMap = <String, String>{};
 | |
| 
 | |
|   /// Returns the current HTTP [Client] instance to use in this class.
 | |
|   ///
 | |
|   /// The return value is guaranteed to never be null.
 | |
|   Client get client => _client;
 | |
| 
 | |
|   /// Requests to use a new HTTP [Client] in this class.
 | |
|   set client(Client newClient) {
 | |
|     _client = newClient;
 | |
|   }
 | |
| 
 | |
|   Map<String, String> get defaultHeaderMap => _defaultHeaderMap;
 | |
| 
 | |
|   void addDefaultHeader(String key, String value) {
 | |
|      _defaultHeaderMap[key] = value;
 | |
|   }
 | |
| 
 | |
|   // We don't use a Map<String, String> for queryParams.
 | |
|   // If collectionFormat is 'multi', a key might appear multiple times.
 | |
|   Future<Response> invokeAPI(
 | |
|     String path,
 | |
|     String method,
 | |
|     List<QueryParam> queryParams,
 | |
|     Object? body,
 | |
|     Map<String, String> headerParams,
 | |
|     Map<String, String> formParams,
 | |
|     String? contentType,
 | |
|   ) async {
 | |
|     await authentication?.applyToParams(queryParams, headerParams);
 | |
| 
 | |
|     headerParams.addAll(_defaultHeaderMap);
 | |
|     if (contentType != null) {
 | |
|       headerParams['Content-Type'] = contentType;
 | |
|     }
 | |
| 
 | |
|     final urlEncodedQueryParams = queryParams.map((param) => '$param');
 | |
|     final queryString = urlEncodedQueryParams.isNotEmpty ? '?${urlEncodedQueryParams.join('&')}' : '';
 | |
|     final uri = Uri.parse('$basePath$path$queryString');
 | |
| 
 | |
|     try {
 | |
|       // Special case for uploading a single file which isn't a 'multipart/form-data'.
 | |
|       if (
 | |
|         body is MultipartFile && (contentType == null ||
 | |
|         !contentType.toLowerCase().startsWith('multipart/form-data'))
 | |
|       ) {
 | |
|         final request = StreamedRequest(method, uri);
 | |
|         request.headers.addAll(headerParams);
 | |
|         request.contentLength = body.length;
 | |
|         body.finalize().listen(
 | |
|           request.sink.add,
 | |
|           onDone: request.sink.close,
 | |
|           // ignore: avoid_types_on_closure_parameters
 | |
|           onError: (Object error, StackTrace trace) => request.sink.close(),
 | |
|           cancelOnError: true,
 | |
|         );
 | |
|         final response = await _client.send(request);
 | |
|         return Response.fromStream(response);
 | |
|       }
 | |
| 
 | |
|       if (body is MultipartRequest) {
 | |
|         final request = MultipartRequest(method, uri);
 | |
|         request.fields.addAll(body.fields);
 | |
|         request.files.addAll(body.files);
 | |
|         request.headers.addAll(body.headers);
 | |
|         request.headers.addAll(headerParams);
 | |
|         final response = await _client.send(request);
 | |
|         return Response.fromStream(response);
 | |
|       }
 | |
| 
 | |
|       final msgBody = contentType == 'application/x-www-form-urlencoded'
 | |
|         ? formParams
 | |
|         : await serializeAsync(body);
 | |
|       final nullableHeaderParams = headerParams.isEmpty ? null : headerParams;
 | |
| 
 | |
|       switch(method) {
 | |
|         case 'POST': return await _client.post(uri, headers: nullableHeaderParams, body: msgBody,);
 | |
|         case 'PUT': return await _client.put(uri, headers: nullableHeaderParams, body: msgBody,);
 | |
|         case 'DELETE': return await _client.delete(uri, headers: nullableHeaderParams, body: msgBody,);
 | |
|         case 'PATCH': return await _client.patch(uri, headers: nullableHeaderParams, body: msgBody,);
 | |
|         case 'HEAD': return await _client.head(uri, headers: nullableHeaderParams,);
 | |
|         case 'GET': return await _client.get(uri, headers: nullableHeaderParams,);
 | |
|       }
 | |
|     } on SocketException catch (error, trace) {
 | |
|       throw ApiException.withInner(
 | |
|         HttpStatus.badRequest,
 | |
|         'Socket operation failed: $method $path',
 | |
|         error,
 | |
|         trace,
 | |
|       );
 | |
|     } on TlsException catch (error, trace) {
 | |
|       throw ApiException.withInner(
 | |
|         HttpStatus.badRequest,
 | |
|         'TLS/SSL communication failed: $method $path',
 | |
|         error,
 | |
|         trace,
 | |
|       );
 | |
|     } on IOException catch (error, trace) {
 | |
|       throw ApiException.withInner(
 | |
|         HttpStatus.badRequest,
 | |
|         'I/O operation failed: $method $path',
 | |
|         error,
 | |
|         trace,
 | |
|       );
 | |
|     } on ClientException catch (error, trace) {
 | |
|       throw ApiException.withInner(
 | |
|         HttpStatus.badRequest,
 | |
|         'HTTP connection failed: $method $path',
 | |
|         error,
 | |
|         trace,
 | |
|       );
 | |
|     } on Exception catch (error, trace) {
 | |
|       throw ApiException.withInner(
 | |
|         HttpStatus.badRequest,
 | |
|         'Exception occurred: $method $path',
 | |
|         error,
 | |
|         trace,
 | |
|       );
 | |
|     }
 | |
| 
 | |
|     throw ApiException(
 | |
|       HttpStatus.badRequest,
 | |
|       'Invalid HTTP operation: $method $path',
 | |
|     );
 | |
|   }
 | |
| 
 | |
|   Future<dynamic> deserializeAsync(String value, String targetType, {bool growable = false,}) =>
 | |
|     // ignore: deprecated_member_use_from_same_package
 | |
|     deserialize(value, targetType, growable: growable);
 | |
| 
 | |
|   @Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.')
 | |
|   Future<dynamic> deserialize(String value, String targetType, {bool growable = false,}) async {
 | |
|     // Remove all spaces. Necessary for regular expressions as well.
 | |
|     targetType = targetType.replaceAll(' ', ''); // ignore: parameter_assignments
 | |
| 
 | |
|     // If the expected target type is String, nothing to do...
 | |
|     return targetType == 'String'
 | |
|       ? value
 | |
|       : fromJson(await compute((String j) => json.decode(j), value), targetType, growable: growable);
 | |
|   }
 | |
| 
 | |
|   // ignore: deprecated_member_use_from_same_package
 | |
|   Future<String> serializeAsync(Object? value) async => serialize(value);
 | |
| 
 | |
|   @Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use serializeAsync() instead.')
 | |
|   String serialize(Object? value) => value == null ? '' : json.encode(value);
 | |
| 
 | |
|   /// Returns a native instance of an OpenAPI class matching the [specified type][targetType].
 | |
|   static dynamic fromJson(dynamic value, String targetType, {bool growable = false,}) {
 | |
|     try {
 | |
|       switch (targetType) {
 | |
|         case 'String':
 | |
|           return value is String ? value : value.toString();
 | |
|         case 'int':
 | |
|           return value is int ? value : int.parse('$value');
 | |
|         case 'double':
 | |
|           return value is double ? value : double.parse('$value');
 | |
|         case 'bool':
 | |
|           if (value is bool) {
 | |
|             return value;
 | |
|           }
 | |
|           final valueString = '$value'.toLowerCase();
 | |
|           return valueString == 'true' || valueString == '1';
 | |
|         case 'DateTime':
 | |
|           return value is DateTime ? value : DateTime.tryParse(value);
 | |
|         case 'APIKeyCreateDto':
 | |
|           return APIKeyCreateDto.fromJson(value);
 | |
|         case 'APIKeyCreateResponseDto':
 | |
|           return APIKeyCreateResponseDto.fromJson(value);
 | |
|         case 'APIKeyResponseDto':
 | |
|           return APIKeyResponseDto.fromJson(value);
 | |
|         case 'APIKeyUpdateDto':
 | |
|           return APIKeyUpdateDto.fromJson(value);
 | |
|         case 'ActivityCreateDto':
 | |
|           return ActivityCreateDto.fromJson(value);
 | |
|         case 'ActivityResponseDto':
 | |
|           return ActivityResponseDto.fromJson(value);
 | |
|         case 'ActivityStatisticsResponseDto':
 | |
|           return ActivityStatisticsResponseDto.fromJson(value);
 | |
|         case 'AddUsersDto':
 | |
|           return AddUsersDto.fromJson(value);
 | |
|         case 'AdminOnboardingUpdateDto':
 | |
|           return AdminOnboardingUpdateDto.fromJson(value);
 | |
|         case 'AlbumResponseDto':
 | |
|           return AlbumResponseDto.fromJson(value);
 | |
|         case 'AlbumStatisticsResponseDto':
 | |
|           return AlbumStatisticsResponseDto.fromJson(value);
 | |
|         case 'AlbumUserAddDto':
 | |
|           return AlbumUserAddDto.fromJson(value);
 | |
|         case 'AlbumUserCreateDto':
 | |
|           return AlbumUserCreateDto.fromJson(value);
 | |
|         case 'AlbumUserResponseDto':
 | |
|           return AlbumUserResponseDto.fromJson(value);
 | |
|         case 'AlbumUserRole':
 | |
|           return AlbumUserRoleTypeTransformer().decode(value);
 | |
|         case 'AlbumsAddAssetsDto':
 | |
|           return AlbumsAddAssetsDto.fromJson(value);
 | |
|         case 'AlbumsAddAssetsResponseDto':
 | |
|           return AlbumsAddAssetsResponseDto.fromJson(value);
 | |
|         case 'AlbumsResponse':
 | |
|           return AlbumsResponse.fromJson(value);
 | |
|         case 'AlbumsUpdate':
 | |
|           return AlbumsUpdate.fromJson(value);
 | |
|         case 'AllJobStatusResponseDto':
 | |
|           return AllJobStatusResponseDto.fromJson(value);
 | |
|         case 'AssetBulkDeleteDto':
 | |
|           return AssetBulkDeleteDto.fromJson(value);
 | |
|         case 'AssetBulkUpdateDto':
 | |
|           return AssetBulkUpdateDto.fromJson(value);
 | |
|         case 'AssetBulkUploadCheckDto':
 | |
|           return AssetBulkUploadCheckDto.fromJson(value);
 | |
|         case 'AssetBulkUploadCheckItem':
 | |
|           return AssetBulkUploadCheckItem.fromJson(value);
 | |
|         case 'AssetBulkUploadCheckResponseDto':
 | |
|           return AssetBulkUploadCheckResponseDto.fromJson(value);
 | |
|         case 'AssetBulkUploadCheckResult':
 | |
|           return AssetBulkUploadCheckResult.fromJson(value);
 | |
|         case 'AssetDeltaSyncDto':
 | |
|           return AssetDeltaSyncDto.fromJson(value);
 | |
|         case 'AssetDeltaSyncResponseDto':
 | |
|           return AssetDeltaSyncResponseDto.fromJson(value);
 | |
|         case 'AssetFaceCreateDto':
 | |
|           return AssetFaceCreateDto.fromJson(value);
 | |
|         case 'AssetFaceDeleteDto':
 | |
|           return AssetFaceDeleteDto.fromJson(value);
 | |
|         case 'AssetFaceResponseDto':
 | |
|           return AssetFaceResponseDto.fromJson(value);
 | |
|         case 'AssetFaceUpdateDto':
 | |
|           return AssetFaceUpdateDto.fromJson(value);
 | |
|         case 'AssetFaceUpdateItem':
 | |
|           return AssetFaceUpdateItem.fromJson(value);
 | |
|         case 'AssetFaceWithoutPersonResponseDto':
 | |
|           return AssetFaceWithoutPersonResponseDto.fromJson(value);
 | |
|         case 'AssetFullSyncDto':
 | |
|           return AssetFullSyncDto.fromJson(value);
 | |
|         case 'AssetIdsDto':
 | |
|           return AssetIdsDto.fromJson(value);
 | |
|         case 'AssetIdsResponseDto':
 | |
|           return AssetIdsResponseDto.fromJson(value);
 | |
|         case 'AssetJobName':
 | |
|           return AssetJobNameTypeTransformer().decode(value);
 | |
|         case 'AssetJobsDto':
 | |
|           return AssetJobsDto.fromJson(value);
 | |
|         case 'AssetMediaResponseDto':
 | |
|           return AssetMediaResponseDto.fromJson(value);
 | |
|         case 'AssetMediaSize':
 | |
|           return AssetMediaSizeTypeTransformer().decode(value);
 | |
|         case 'AssetMediaStatus':
 | |
|           return AssetMediaStatusTypeTransformer().decode(value);
 | |
|         case 'AssetMetadataKey':
 | |
|           return AssetMetadataKeyTypeTransformer().decode(value);
 | |
|         case 'AssetMetadataResponseDto':
 | |
|           return AssetMetadataResponseDto.fromJson(value);
 | |
|         case 'AssetMetadataUpsertDto':
 | |
|           return AssetMetadataUpsertDto.fromJson(value);
 | |
|         case 'AssetMetadataUpsertItemDto':
 | |
|           return AssetMetadataUpsertItemDto.fromJson(value);
 | |
|         case 'AssetOrder':
 | |
|           return AssetOrderTypeTransformer().decode(value);
 | |
|         case 'AssetResponseDto':
 | |
|           return AssetResponseDto.fromJson(value);
 | |
|         case 'AssetStackResponseDto':
 | |
|           return AssetStackResponseDto.fromJson(value);
 | |
|         case 'AssetStatsResponseDto':
 | |
|           return AssetStatsResponseDto.fromJson(value);
 | |
|         case 'AssetTypeEnum':
 | |
|           return AssetTypeEnumTypeTransformer().decode(value);
 | |
|         case 'AssetVisibility':
 | |
|           return AssetVisibilityTypeTransformer().decode(value);
 | |
|         case 'AudioCodec':
 | |
|           return AudioCodecTypeTransformer().decode(value);
 | |
|         case 'AuthStatusResponseDto':
 | |
|           return AuthStatusResponseDto.fromJson(value);
 | |
|         case 'AvatarUpdate':
 | |
|           return AvatarUpdate.fromJson(value);
 | |
|         case 'BulkIdErrorReason':
 | |
|           return BulkIdErrorReasonTypeTransformer().decode(value);
 | |
|         case 'BulkIdResponseDto':
 | |
|           return BulkIdResponseDto.fromJson(value);
 | |
|         case 'BulkIdsDto':
 | |
|           return BulkIdsDto.fromJson(value);
 | |
|         case 'CLIPConfig':
 | |
|           return CLIPConfig.fromJson(value);
 | |
|         case 'CQMode':
 | |
|           return CQModeTypeTransformer().decode(value);
 | |
|         case 'CastResponse':
 | |
|           return CastResponse.fromJson(value);
 | |
|         case 'CastUpdate':
 | |
|           return CastUpdate.fromJson(value);
 | |
|         case 'ChangePasswordDto':
 | |
|           return ChangePasswordDto.fromJson(value);
 | |
|         case 'CheckExistingAssetsDto':
 | |
|           return CheckExistingAssetsDto.fromJson(value);
 | |
|         case 'CheckExistingAssetsResponseDto':
 | |
|           return CheckExistingAssetsResponseDto.fromJson(value);
 | |
|         case 'Colorspace':
 | |
|           return ColorspaceTypeTransformer().decode(value);
 | |
|         case 'ContributorCountResponseDto':
 | |
|           return ContributorCountResponseDto.fromJson(value);
 | |
|         case 'CreateAlbumDto':
 | |
|           return CreateAlbumDto.fromJson(value);
 | |
|         case 'CreateLibraryDto':
 | |
|           return CreateLibraryDto.fromJson(value);
 | |
|         case 'CreateProfileImageResponseDto':
 | |
|           return CreateProfileImageResponseDto.fromJson(value);
 | |
|         case 'DatabaseBackupConfig':
 | |
|           return DatabaseBackupConfig.fromJson(value);
 | |
|         case 'DownloadArchiveInfo':
 | |
|           return DownloadArchiveInfo.fromJson(value);
 | |
|         case 'DownloadInfoDto':
 | |
|           return DownloadInfoDto.fromJson(value);
 | |
|         case 'DownloadResponse':
 | |
|           return DownloadResponse.fromJson(value);
 | |
|         case 'DownloadResponseDto':
 | |
|           return DownloadResponseDto.fromJson(value);
 | |
|         case 'DownloadUpdate':
 | |
|           return DownloadUpdate.fromJson(value);
 | |
|         case 'DuplicateDetectionConfig':
 | |
|           return DuplicateDetectionConfig.fromJson(value);
 | |
|         case 'DuplicateResponseDto':
 | |
|           return DuplicateResponseDto.fromJson(value);
 | |
|         case 'EmailNotificationsResponse':
 | |
|           return EmailNotificationsResponse.fromJson(value);
 | |
|         case 'EmailNotificationsUpdate':
 | |
|           return EmailNotificationsUpdate.fromJson(value);
 | |
|         case 'ExifResponseDto':
 | |
|           return ExifResponseDto.fromJson(value);
 | |
|         case 'FaceDto':
 | |
|           return FaceDto.fromJson(value);
 | |
|         case 'FacialRecognitionConfig':
 | |
|           return FacialRecognitionConfig.fromJson(value);
 | |
|         case 'FoldersResponse':
 | |
|           return FoldersResponse.fromJson(value);
 | |
|         case 'FoldersUpdate':
 | |
|           return FoldersUpdate.fromJson(value);
 | |
|         case 'ImageFormat':
 | |
|           return ImageFormatTypeTransformer().decode(value);
 | |
|         case 'JobCommand':
 | |
|           return JobCommandTypeTransformer().decode(value);
 | |
|         case 'JobCommandDto':
 | |
|           return JobCommandDto.fromJson(value);
 | |
|         case 'JobCountsDto':
 | |
|           return JobCountsDto.fromJson(value);
 | |
|         case 'JobCreateDto':
 | |
|           return JobCreateDto.fromJson(value);
 | |
|         case 'JobName':
 | |
|           return JobNameTypeTransformer().decode(value);
 | |
|         case 'JobSettingsDto':
 | |
|           return JobSettingsDto.fromJson(value);
 | |
|         case 'JobStatusDto':
 | |
|           return JobStatusDto.fromJson(value);
 | |
|         case 'LibraryResponseDto':
 | |
|           return LibraryResponseDto.fromJson(value);
 | |
|         case 'LibraryStatsResponseDto':
 | |
|           return LibraryStatsResponseDto.fromJson(value);
 | |
|         case 'LicenseKeyDto':
 | |
|           return LicenseKeyDto.fromJson(value);
 | |
|         case 'LicenseResponseDto':
 | |
|           return LicenseResponseDto.fromJson(value);
 | |
|         case 'LogLevel':
 | |
|           return LogLevelTypeTransformer().decode(value);
 | |
|         case 'LoginCredentialDto':
 | |
|           return LoginCredentialDto.fromJson(value);
 | |
|         case 'LoginResponseDto':
 | |
|           return LoginResponseDto.fromJson(value);
 | |
|         case 'LogoutResponseDto':
 | |
|           return LogoutResponseDto.fromJson(value);
 | |
|         case 'MachineLearningAvailabilityChecksDto':
 | |
|           return MachineLearningAvailabilityChecksDto.fromJson(value);
 | |
|         case 'ManualJobName':
 | |
|           return ManualJobNameTypeTransformer().decode(value);
 | |
|         case 'MapMarkerResponseDto':
 | |
|           return MapMarkerResponseDto.fromJson(value);
 | |
|         case 'MapReverseGeocodeResponseDto':
 | |
|           return MapReverseGeocodeResponseDto.fromJson(value);
 | |
|         case 'MemoriesResponse':
 | |
|           return MemoriesResponse.fromJson(value);
 | |
|         case 'MemoriesUpdate':
 | |
|           return MemoriesUpdate.fromJson(value);
 | |
|         case 'MemoryCreateDto':
 | |
|           return MemoryCreateDto.fromJson(value);
 | |
|         case 'MemoryResponseDto':
 | |
|           return MemoryResponseDto.fromJson(value);
 | |
|         case 'MemoryStatisticsResponseDto':
 | |
|           return MemoryStatisticsResponseDto.fromJson(value);
 | |
|         case 'MemoryType':
 | |
|           return MemoryTypeTypeTransformer().decode(value);
 | |
|         case 'MemoryUpdateDto':
 | |
|           return MemoryUpdateDto.fromJson(value);
 | |
|         case 'MergePersonDto':
 | |
|           return MergePersonDto.fromJson(value);
 | |
|         case 'MetadataSearchDto':
 | |
|           return MetadataSearchDto.fromJson(value);
 | |
|         case 'NotificationCreateDto':
 | |
|           return NotificationCreateDto.fromJson(value);
 | |
|         case 'NotificationDeleteAllDto':
 | |
|           return NotificationDeleteAllDto.fromJson(value);
 | |
|         case 'NotificationDto':
 | |
|           return NotificationDto.fromJson(value);
 | |
|         case 'NotificationLevel':
 | |
|           return NotificationLevelTypeTransformer().decode(value);
 | |
|         case 'NotificationType':
 | |
|           return NotificationTypeTypeTransformer().decode(value);
 | |
|         case 'NotificationUpdateAllDto':
 | |
|           return NotificationUpdateAllDto.fromJson(value);
 | |
|         case 'NotificationUpdateDto':
 | |
|           return NotificationUpdateDto.fromJson(value);
 | |
|         case 'OAuthAuthorizeResponseDto':
 | |
|           return OAuthAuthorizeResponseDto.fromJson(value);
 | |
|         case 'OAuthCallbackDto':
 | |
|           return OAuthCallbackDto.fromJson(value);
 | |
|         case 'OAuthConfigDto':
 | |
|           return OAuthConfigDto.fromJson(value);
 | |
|         case 'OAuthTokenEndpointAuthMethod':
 | |
|           return OAuthTokenEndpointAuthMethodTypeTransformer().decode(value);
 | |
|         case 'OnThisDayDto':
 | |
|           return OnThisDayDto.fromJson(value);
 | |
|         case 'OnboardingDto':
 | |
|           return OnboardingDto.fromJson(value);
 | |
|         case 'OnboardingResponseDto':
 | |
|           return OnboardingResponseDto.fromJson(value);
 | |
|         case 'PartnerCreateDto':
 | |
|           return PartnerCreateDto.fromJson(value);
 | |
|         case 'PartnerDirection':
 | |
|           return PartnerDirectionTypeTransformer().decode(value);
 | |
|         case 'PartnerResponseDto':
 | |
|           return PartnerResponseDto.fromJson(value);
 | |
|         case 'PartnerUpdateDto':
 | |
|           return PartnerUpdateDto.fromJson(value);
 | |
|         case 'PeopleResponse':
 | |
|           return PeopleResponse.fromJson(value);
 | |
|         case 'PeopleResponseDto':
 | |
|           return PeopleResponseDto.fromJson(value);
 | |
|         case 'PeopleUpdate':
 | |
|           return PeopleUpdate.fromJson(value);
 | |
|         case 'PeopleUpdateDto':
 | |
|           return PeopleUpdateDto.fromJson(value);
 | |
|         case 'PeopleUpdateItem':
 | |
|           return PeopleUpdateItem.fromJson(value);
 | |
|         case 'Permission':
 | |
|           return PermissionTypeTransformer().decode(value);
 | |
|         case 'PersonCreateDto':
 | |
|           return PersonCreateDto.fromJson(value);
 | |
|         case 'PersonResponseDto':
 | |
|           return PersonResponseDto.fromJson(value);
 | |
|         case 'PersonStatisticsResponseDto':
 | |
|           return PersonStatisticsResponseDto.fromJson(value);
 | |
|         case 'PersonUpdateDto':
 | |
|           return PersonUpdateDto.fromJson(value);
 | |
|         case 'PersonWithFacesResponseDto':
 | |
|           return PersonWithFacesResponseDto.fromJson(value);
 | |
|         case 'PinCodeChangeDto':
 | |
|           return PinCodeChangeDto.fromJson(value);
 | |
|         case 'PinCodeResetDto':
 | |
|           return PinCodeResetDto.fromJson(value);
 | |
|         case 'PinCodeSetupDto':
 | |
|           return PinCodeSetupDto.fromJson(value);
 | |
|         case 'PlacesResponseDto':
 | |
|           return PlacesResponseDto.fromJson(value);
 | |
|         case 'PurchaseResponse':
 | |
|           return PurchaseResponse.fromJson(value);
 | |
|         case 'PurchaseUpdate':
 | |
|           return PurchaseUpdate.fromJson(value);
 | |
|         case 'QueueStatusDto':
 | |
|           return QueueStatusDto.fromJson(value);
 | |
|         case 'RandomSearchDto':
 | |
|           return RandomSearchDto.fromJson(value);
 | |
|         case 'RatingsResponse':
 | |
|           return RatingsResponse.fromJson(value);
 | |
|         case 'RatingsUpdate':
 | |
|           return RatingsUpdate.fromJson(value);
 | |
|         case 'ReactionLevel':
 | |
|           return ReactionLevelTypeTransformer().decode(value);
 | |
|         case 'ReactionType':
 | |
|           return ReactionTypeTypeTransformer().decode(value);
 | |
|         case 'ReverseGeocodingStateResponseDto':
 | |
|           return ReverseGeocodingStateResponseDto.fromJson(value);
 | |
|         case 'SearchAlbumResponseDto':
 | |
|           return SearchAlbumResponseDto.fromJson(value);
 | |
|         case 'SearchAssetResponseDto':
 | |
|           return SearchAssetResponseDto.fromJson(value);
 | |
|         case 'SearchExploreItem':
 | |
|           return SearchExploreItem.fromJson(value);
 | |
|         case 'SearchExploreResponseDto':
 | |
|           return SearchExploreResponseDto.fromJson(value);
 | |
|         case 'SearchFacetCountResponseDto':
 | |
|           return SearchFacetCountResponseDto.fromJson(value);
 | |
|         case 'SearchFacetResponseDto':
 | |
|           return SearchFacetResponseDto.fromJson(value);
 | |
|         case 'SearchResponseDto':
 | |
|           return SearchResponseDto.fromJson(value);
 | |
|         case 'SearchStatisticsResponseDto':
 | |
|           return SearchStatisticsResponseDto.fromJson(value);
 | |
|         case 'SearchSuggestionType':
 | |
|           return SearchSuggestionTypeTypeTransformer().decode(value);
 | |
|         case 'ServerAboutResponseDto':
 | |
|           return ServerAboutResponseDto.fromJson(value);
 | |
|         case 'ServerApkLinksDto':
 | |
|           return ServerApkLinksDto.fromJson(value);
 | |
|         case 'ServerConfigDto':
 | |
|           return ServerConfigDto.fromJson(value);
 | |
|         case 'ServerFeaturesDto':
 | |
|           return ServerFeaturesDto.fromJson(value);
 | |
|         case 'ServerMediaTypesResponseDto':
 | |
|           return ServerMediaTypesResponseDto.fromJson(value);
 | |
|         case 'ServerPingResponse':
 | |
|           return ServerPingResponse.fromJson(value);
 | |
|         case 'ServerStatsResponseDto':
 | |
|           return ServerStatsResponseDto.fromJson(value);
 | |
|         case 'ServerStorageResponseDto':
 | |
|           return ServerStorageResponseDto.fromJson(value);
 | |
|         case 'ServerThemeDto':
 | |
|           return ServerThemeDto.fromJson(value);
 | |
|         case 'ServerVersionHistoryResponseDto':
 | |
|           return ServerVersionHistoryResponseDto.fromJson(value);
 | |
|         case 'ServerVersionResponseDto':
 | |
|           return ServerVersionResponseDto.fromJson(value);
 | |
|         case 'SessionCreateDto':
 | |
|           return SessionCreateDto.fromJson(value);
 | |
|         case 'SessionCreateResponseDto':
 | |
|           return SessionCreateResponseDto.fromJson(value);
 | |
|         case 'SessionResponseDto':
 | |
|           return SessionResponseDto.fromJson(value);
 | |
|         case 'SessionUnlockDto':
 | |
|           return SessionUnlockDto.fromJson(value);
 | |
|         case 'SessionUpdateDto':
 | |
|           return SessionUpdateDto.fromJson(value);
 | |
|         case 'SharedLinkCreateDto':
 | |
|           return SharedLinkCreateDto.fromJson(value);
 | |
|         case 'SharedLinkEditDto':
 | |
|           return SharedLinkEditDto.fromJson(value);
 | |
|         case 'SharedLinkResponseDto':
 | |
|           return SharedLinkResponseDto.fromJson(value);
 | |
|         case 'SharedLinkType':
 | |
|           return SharedLinkTypeTypeTransformer().decode(value);
 | |
|         case 'SharedLinksResponse':
 | |
|           return SharedLinksResponse.fromJson(value);
 | |
|         case 'SharedLinksUpdate':
 | |
|           return SharedLinksUpdate.fromJson(value);
 | |
|         case 'SignUpDto':
 | |
|           return SignUpDto.fromJson(value);
 | |
|         case 'SmartSearchDto':
 | |
|           return SmartSearchDto.fromJson(value);
 | |
|         case 'SourceType':
 | |
|           return SourceTypeTypeTransformer().decode(value);
 | |
|         case 'StackCreateDto':
 | |
|           return StackCreateDto.fromJson(value);
 | |
|         case 'StackResponseDto':
 | |
|           return StackResponseDto.fromJson(value);
 | |
|         case 'StackUpdateDto':
 | |
|           return StackUpdateDto.fromJson(value);
 | |
|         case 'StatisticsSearchDto':
 | |
|           return StatisticsSearchDto.fromJson(value);
 | |
|         case 'SyncAckDeleteDto':
 | |
|           return SyncAckDeleteDto.fromJson(value);
 | |
|         case 'SyncAckDto':
 | |
|           return SyncAckDto.fromJson(value);
 | |
|         case 'SyncAckSetDto':
 | |
|           return SyncAckSetDto.fromJson(value);
 | |
|         case 'SyncAlbumDeleteV1':
 | |
|           return SyncAlbumDeleteV1.fromJson(value);
 | |
|         case 'SyncAlbumToAssetDeleteV1':
 | |
|           return SyncAlbumToAssetDeleteV1.fromJson(value);
 | |
|         case 'SyncAlbumToAssetV1':
 | |
|           return SyncAlbumToAssetV1.fromJson(value);
 | |
|         case 'SyncAlbumUserDeleteV1':
 | |
|           return SyncAlbumUserDeleteV1.fromJson(value);
 | |
|         case 'SyncAlbumUserV1':
 | |
|           return SyncAlbumUserV1.fromJson(value);
 | |
|         case 'SyncAlbumV1':
 | |
|           return SyncAlbumV1.fromJson(value);
 | |
|         case 'SyncAssetDeleteV1':
 | |
|           return SyncAssetDeleteV1.fromJson(value);
 | |
|         case 'SyncAssetExifV1':
 | |
|           return SyncAssetExifV1.fromJson(value);
 | |
|         case 'SyncAssetFaceDeleteV1':
 | |
|           return SyncAssetFaceDeleteV1.fromJson(value);
 | |
|         case 'SyncAssetFaceV1':
 | |
|           return SyncAssetFaceV1.fromJson(value);
 | |
|         case 'SyncAssetMetadataDeleteV1':
 | |
|           return SyncAssetMetadataDeleteV1.fromJson(value);
 | |
|         case 'SyncAssetMetadataV1':
 | |
|           return SyncAssetMetadataV1.fromJson(value);
 | |
|         case 'SyncAssetV1':
 | |
|           return SyncAssetV1.fromJson(value);
 | |
|         case 'SyncAuthUserV1':
 | |
|           return SyncAuthUserV1.fromJson(value);
 | |
|         case 'SyncEntityType':
 | |
|           return SyncEntityTypeTypeTransformer().decode(value);
 | |
|         case 'SyncMemoryAssetDeleteV1':
 | |
|           return SyncMemoryAssetDeleteV1.fromJson(value);
 | |
|         case 'SyncMemoryAssetV1':
 | |
|           return SyncMemoryAssetV1.fromJson(value);
 | |
|         case 'SyncMemoryDeleteV1':
 | |
|           return SyncMemoryDeleteV1.fromJson(value);
 | |
|         case 'SyncMemoryV1':
 | |
|           return SyncMemoryV1.fromJson(value);
 | |
|         case 'SyncPartnerDeleteV1':
 | |
|           return SyncPartnerDeleteV1.fromJson(value);
 | |
|         case 'SyncPartnerV1':
 | |
|           return SyncPartnerV1.fromJson(value);
 | |
|         case 'SyncPersonDeleteV1':
 | |
|           return SyncPersonDeleteV1.fromJson(value);
 | |
|         case 'SyncPersonV1':
 | |
|           return SyncPersonV1.fromJson(value);
 | |
|         case 'SyncRequestType':
 | |
|           return SyncRequestTypeTypeTransformer().decode(value);
 | |
|         case 'SyncStackDeleteV1':
 | |
|           return SyncStackDeleteV1.fromJson(value);
 | |
|         case 'SyncStackV1':
 | |
|           return SyncStackV1.fromJson(value);
 | |
|         case 'SyncStreamDto':
 | |
|           return SyncStreamDto.fromJson(value);
 | |
|         case 'SyncUserDeleteV1':
 | |
|           return SyncUserDeleteV1.fromJson(value);
 | |
|         case 'SyncUserMetadataDeleteV1':
 | |
|           return SyncUserMetadataDeleteV1.fromJson(value);
 | |
|         case 'SyncUserMetadataV1':
 | |
|           return SyncUserMetadataV1.fromJson(value);
 | |
|         case 'SyncUserV1':
 | |
|           return SyncUserV1.fromJson(value);
 | |
|         case 'SystemConfigBackupsDto':
 | |
|           return SystemConfigBackupsDto.fromJson(value);
 | |
|         case 'SystemConfigDto':
 | |
|           return SystemConfigDto.fromJson(value);
 | |
|         case 'SystemConfigFFmpegDto':
 | |
|           return SystemConfigFFmpegDto.fromJson(value);
 | |
|         case 'SystemConfigFacesDto':
 | |
|           return SystemConfigFacesDto.fromJson(value);
 | |
|         case 'SystemConfigGeneratedFullsizeImageDto':
 | |
|           return SystemConfigGeneratedFullsizeImageDto.fromJson(value);
 | |
|         case 'SystemConfigGeneratedImageDto':
 | |
|           return SystemConfigGeneratedImageDto.fromJson(value);
 | |
|         case 'SystemConfigImageDto':
 | |
|           return SystemConfigImageDto.fromJson(value);
 | |
|         case 'SystemConfigJobDto':
 | |
|           return SystemConfigJobDto.fromJson(value);
 | |
|         case 'SystemConfigLibraryDto':
 | |
|           return SystemConfigLibraryDto.fromJson(value);
 | |
|         case 'SystemConfigLibraryScanDto':
 | |
|           return SystemConfigLibraryScanDto.fromJson(value);
 | |
|         case 'SystemConfigLibraryWatchDto':
 | |
|           return SystemConfigLibraryWatchDto.fromJson(value);
 | |
|         case 'SystemConfigLoggingDto':
 | |
|           return SystemConfigLoggingDto.fromJson(value);
 | |
|         case 'SystemConfigMachineLearningDto':
 | |
|           return SystemConfigMachineLearningDto.fromJson(value);
 | |
|         case 'SystemConfigMapDto':
 | |
|           return SystemConfigMapDto.fromJson(value);
 | |
|         case 'SystemConfigMetadataDto':
 | |
|           return SystemConfigMetadataDto.fromJson(value);
 | |
|         case 'SystemConfigNewVersionCheckDto':
 | |
|           return SystemConfigNewVersionCheckDto.fromJson(value);
 | |
|         case 'SystemConfigNightlyTasksDto':
 | |
|           return SystemConfigNightlyTasksDto.fromJson(value);
 | |
|         case 'SystemConfigNotificationsDto':
 | |
|           return SystemConfigNotificationsDto.fromJson(value);
 | |
|         case 'SystemConfigOAuthDto':
 | |
|           return SystemConfigOAuthDto.fromJson(value);
 | |
|         case 'SystemConfigPasswordLoginDto':
 | |
|           return SystemConfigPasswordLoginDto.fromJson(value);
 | |
|         case 'SystemConfigReverseGeocodingDto':
 | |
|           return SystemConfigReverseGeocodingDto.fromJson(value);
 | |
|         case 'SystemConfigServerDto':
 | |
|           return SystemConfigServerDto.fromJson(value);
 | |
|         case 'SystemConfigSmtpDto':
 | |
|           return SystemConfigSmtpDto.fromJson(value);
 | |
|         case 'SystemConfigSmtpTransportDto':
 | |
|           return SystemConfigSmtpTransportDto.fromJson(value);
 | |
|         case 'SystemConfigStorageTemplateDto':
 | |
|           return SystemConfigStorageTemplateDto.fromJson(value);
 | |
|         case 'SystemConfigTemplateEmailsDto':
 | |
|           return SystemConfigTemplateEmailsDto.fromJson(value);
 | |
|         case 'SystemConfigTemplateStorageOptionDto':
 | |
|           return SystemConfigTemplateStorageOptionDto.fromJson(value);
 | |
|         case 'SystemConfigTemplatesDto':
 | |
|           return SystemConfigTemplatesDto.fromJson(value);
 | |
|         case 'SystemConfigThemeDto':
 | |
|           return SystemConfigThemeDto.fromJson(value);
 | |
|         case 'SystemConfigTrashDto':
 | |
|           return SystemConfigTrashDto.fromJson(value);
 | |
|         case 'SystemConfigUserDto':
 | |
|           return SystemConfigUserDto.fromJson(value);
 | |
|         case 'TagBulkAssetsDto':
 | |
|           return TagBulkAssetsDto.fromJson(value);
 | |
|         case 'TagBulkAssetsResponseDto':
 | |
|           return TagBulkAssetsResponseDto.fromJson(value);
 | |
|         case 'TagCreateDto':
 | |
|           return TagCreateDto.fromJson(value);
 | |
|         case 'TagResponseDto':
 | |
|           return TagResponseDto.fromJson(value);
 | |
|         case 'TagUpdateDto':
 | |
|           return TagUpdateDto.fromJson(value);
 | |
|         case 'TagUpsertDto':
 | |
|           return TagUpsertDto.fromJson(value);
 | |
|         case 'TagsResponse':
 | |
|           return TagsResponse.fromJson(value);
 | |
|         case 'TagsUpdate':
 | |
|           return TagsUpdate.fromJson(value);
 | |
|         case 'TemplateDto':
 | |
|           return TemplateDto.fromJson(value);
 | |
|         case 'TemplateResponseDto':
 | |
|           return TemplateResponseDto.fromJson(value);
 | |
|         case 'TestEmailResponseDto':
 | |
|           return TestEmailResponseDto.fromJson(value);
 | |
|         case 'TimeBucketAssetResponseDto':
 | |
|           return TimeBucketAssetResponseDto.fromJson(value);
 | |
|         case 'TimeBucketsResponseDto':
 | |
|           return TimeBucketsResponseDto.fromJson(value);
 | |
|         case 'ToneMapping':
 | |
|           return ToneMappingTypeTransformer().decode(value);
 | |
|         case 'TranscodeHWAccel':
 | |
|           return TranscodeHWAccelTypeTransformer().decode(value);
 | |
|         case 'TranscodePolicy':
 | |
|           return TranscodePolicyTypeTransformer().decode(value);
 | |
|         case 'TrashResponseDto':
 | |
|           return TrashResponseDto.fromJson(value);
 | |
|         case 'UpdateAlbumDto':
 | |
|           return UpdateAlbumDto.fromJson(value);
 | |
|         case 'UpdateAlbumUserDto':
 | |
|           return UpdateAlbumUserDto.fromJson(value);
 | |
|         case 'UpdateAssetDto':
 | |
|           return UpdateAssetDto.fromJson(value);
 | |
|         case 'UpdateLibraryDto':
 | |
|           return UpdateLibraryDto.fromJson(value);
 | |
|         case 'UsageByUserDto':
 | |
|           return UsageByUserDto.fromJson(value);
 | |
|         case 'UserAdminCreateDto':
 | |
|           return UserAdminCreateDto.fromJson(value);
 | |
|         case 'UserAdminDeleteDto':
 | |
|           return UserAdminDeleteDto.fromJson(value);
 | |
|         case 'UserAdminResponseDto':
 | |
|           return UserAdminResponseDto.fromJson(value);
 | |
|         case 'UserAdminUpdateDto':
 | |
|           return UserAdminUpdateDto.fromJson(value);
 | |
|         case 'UserAvatarColor':
 | |
|           return UserAvatarColorTypeTransformer().decode(value);
 | |
|         case 'UserLicense':
 | |
|           return UserLicense.fromJson(value);
 | |
|         case 'UserMetadataKey':
 | |
|           return UserMetadataKeyTypeTransformer().decode(value);
 | |
|         case 'UserPreferencesResponseDto':
 | |
|           return UserPreferencesResponseDto.fromJson(value);
 | |
|         case 'UserPreferencesUpdateDto':
 | |
|           return UserPreferencesUpdateDto.fromJson(value);
 | |
|         case 'UserResponseDto':
 | |
|           return UserResponseDto.fromJson(value);
 | |
|         case 'UserStatus':
 | |
|           return UserStatusTypeTransformer().decode(value);
 | |
|         case 'UserUpdateMeDto':
 | |
|           return UserUpdateMeDto.fromJson(value);
 | |
|         case 'ValidateAccessTokenResponseDto':
 | |
|           return ValidateAccessTokenResponseDto.fromJson(value);
 | |
|         case 'ValidateLibraryDto':
 | |
|           return ValidateLibraryDto.fromJson(value);
 | |
|         case 'ValidateLibraryImportPathResponseDto':
 | |
|           return ValidateLibraryImportPathResponseDto.fromJson(value);
 | |
|         case 'ValidateLibraryResponseDto':
 | |
|           return ValidateLibraryResponseDto.fromJson(value);
 | |
|         case 'VersionCheckStateResponseDto':
 | |
|           return VersionCheckStateResponseDto.fromJson(value);
 | |
|         case 'VideoCodec':
 | |
|           return VideoCodecTypeTransformer().decode(value);
 | |
|         case 'VideoContainer':
 | |
|           return VideoContainerTypeTransformer().decode(value);
 | |
|         default:
 | |
|           dynamic match;
 | |
|           if (value is List && (match = _regList.firstMatch(targetType)?.group(1)) != null) {
 | |
|             return value
 | |
|               .map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,))
 | |
|               .toList(growable: growable);
 | |
|           }
 | |
|           if (value is Set && (match = _regSet.firstMatch(targetType)?.group(1)) != null) {
 | |
|             return value
 | |
|               .map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,))
 | |
|               .toSet();
 | |
|           }
 | |
|           if (value is Map && (match = _regMap.firstMatch(targetType)?.group(1)) != null) {
 | |
|             return Map<String, dynamic>.fromIterables(
 | |
|               value.keys.cast<String>(),
 | |
|               value.values.map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,)),
 | |
|             );
 | |
|           }
 | |
|       }
 | |
|     } on Exception catch (error, trace) {
 | |
|       throw ApiException.withInner(HttpStatus.internalServerError, 'Exception during deserialization.', error, trace,);
 | |
|     }
 | |
|     throw ApiException(HttpStatus.internalServerError, 'Could not find a suitable class for deserialization',);
 | |
|   }
 | |
| }
 | |
| 
 | |
| /// Primarily intended for use in an isolate.
 | |
| class DeserializationMessage {
 | |
|   const DeserializationMessage({
 | |
|     required this.json,
 | |
|     required this.targetType,
 | |
|     this.growable = false,
 | |
|   });
 | |
| 
 | |
|   /// The JSON value to deserialize.
 | |
|   final String json;
 | |
| 
 | |
|   /// Target type to deserialize to.
 | |
|   final String targetType;
 | |
| 
 | |
|   /// Whether to make deserialized lists or maps growable.
 | |
|   final bool growable;
 | |
| }
 | |
| 
 | |
| /// Primarily intended for use in an isolate.
 | |
| Future<dynamic> decodeAsync(DeserializationMessage message) async {
 | |
|   // Remove all spaces. Necessary for regular expressions as well.
 | |
|   final targetType = message.targetType.replaceAll(' ', '');
 | |
| 
 | |
|   // If the expected target type is String, nothing to do...
 | |
|   return targetType == 'String'
 | |
|     ? message.json
 | |
|     : json.decode(message.json);
 | |
| }
 | |
| 
 | |
| /// Primarily intended for use in an isolate.
 | |
| Future<dynamic> deserializeAsync(DeserializationMessage message) async {
 | |
|   // Remove all spaces. Necessary for regular expressions as well.
 | |
|   final targetType = message.targetType.replaceAll(' ', '');
 | |
| 
 | |
|   // If the expected target type is String, nothing to do...
 | |
|   return targetType == 'String'
 | |
|     ? message.json
 | |
|     : ApiClient.fromJson(
 | |
|         json.decode(message.json),
 | |
|         targetType,
 | |
|         growable: message.growable,
 | |
|       );
 | |
| }
 | |
| 
 | |
| /// Primarily intended for use in an isolate.
 | |
| Future<String> serializeAsync(Object? value) async => value == null ? '' : json.encode(value);
 |