Fix examples and SDK for Immich v2 API compatibility
Some checks failed
Integration Tests / integration-test (push) Failing after 6s

- Fix AssetUploadStatus serialization to use snake_case (created/duplicate/rejected)
- Fix AssetOrder serialization to use lowercase (asc/desc)
- Add file_created_at/file_modified_at to UploadAssetBuilder
- Fix AddAssetsBuilder response type to Vec<Value> instead of AlbumResponse
- Fix ServerAbout model - version is String not ServerVersion struct
- Update upload_photos.rs to handle duplicate responses correctly
- Update server_info.rs to display new ServerAbout fields
- Update AGENTS.md with new example list
This commit is contained in:
Joakim Hulthe
2026-04-14 20:18:41 +00:00
parent 2e7db3b35a
commit c39e0a5058
6 changed files with 104 additions and 11 deletions

View File

@@ -30,6 +30,11 @@ All examples should be run using the provided wrapper script:
./scripts/run-example.sh upload_photos
./scripts/run-example.sh download_asset
./scripts/run-example.sh thumbnail
./scripts/run-example.sh search_metadata
./scripts/run-example.sh album_management
./scripts/run-example.sh timeline_browsing
./scripts/run-example.sh delete_assets
./scripts/run-example.sh server_info
```
The wrapper handles everything automatically: