[PR #25900] feat: asset file apis #18390

Open
opened 2026-02-05 16:37:30 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/25900
Author: @jrasm91
Created: 2/5/2026
Status: 🔄 Open

Base: mainHead: feat/asset-file-apis


📝 Commits (1)

📊 Changes

24 files changed (+1192 additions, -0 deletions)

View changed files

📝 mobile/openapi/README.md (+6 -0)
📝 mobile/openapi/lib/api.dart (+3 -0)
mobile/openapi/lib/api/asset_files_api.dart (+271 -0)
📝 mobile/openapi/lib/api_client.dart (+4 -0)
📝 mobile/openapi/lib/api_helper.dart (+3 -0)
mobile/openapi/lib/model/asset_file_response_dto.dart (+154 -0)
mobile/openapi/lib/model/asset_file_type.dart (+91 -0)
📝 mobile/openapi/lib/model/permission.dart (+9 -0)
📝 open-api/immich-openapi-specs.json (+311 -0)
📝 open-api/typescript-sdk/src/fetch-client.ts (+83 -0)
📝 server/src/constants.ts (+1 -0)
server/src/controllers/asset-file.controller.ts (+72 -0)
📝 server/src/controllers/index.ts (+2 -0)
server/src/dtos/asset-file.dto.ts (+54 -0)
📝 server/src/enum.ts (+5 -0)
📝 server/src/repositories/access.repository.ts (+24 -0)
server/src/repositories/asset-file.repository.ts (+30 -0)
📝 server/src/repositories/index.ts (+2 -0)
server/src/services/asset-file.service.ts (+48 -0)
📝 server/src/services/base.service.ts (+2 -0)

...and 4 more files

📄 Description

Add a few APIs for managing asset files. Currently these APIs are restricted by owner and do not allow access to shared assets.

GET /asset-files  - search by assetId, type, etc.
GET /asset-files/:id - get by id
GET /asset-files/:id/download - serve file contents by id
DELETE /asset-files/:id - delete by id

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/25900 **Author:** [@jrasm91](https://github.com/jrasm91) **Created:** 2/5/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/asset-file-apis` --- ### 📝 Commits (1) - [`5abe4e2`](https://github.com/immich-app/immich/commit/5abe4e2bd75a1f4619fa0339d5ca30c6e81e875e) feat: asset file apis ### 📊 Changes **24 files changed** (+1192 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `mobile/openapi/README.md` (+6 -0) 📝 `mobile/openapi/lib/api.dart` (+3 -0) ➕ `mobile/openapi/lib/api/asset_files_api.dart` (+271 -0) 📝 `mobile/openapi/lib/api_client.dart` (+4 -0) 📝 `mobile/openapi/lib/api_helper.dart` (+3 -0) ➕ `mobile/openapi/lib/model/asset_file_response_dto.dart` (+154 -0) ➕ `mobile/openapi/lib/model/asset_file_type.dart` (+91 -0) 📝 `mobile/openapi/lib/model/permission.dart` (+9 -0) 📝 `open-api/immich-openapi-specs.json` (+311 -0) 📝 `open-api/typescript-sdk/src/fetch-client.ts` (+83 -0) 📝 `server/src/constants.ts` (+1 -0) ➕ `server/src/controllers/asset-file.controller.ts` (+72 -0) 📝 `server/src/controllers/index.ts` (+2 -0) ➕ `server/src/dtos/asset-file.dto.ts` (+54 -0) 📝 `server/src/enum.ts` (+5 -0) 📝 `server/src/repositories/access.repository.ts` (+24 -0) ➕ `server/src/repositories/asset-file.repository.ts` (+30 -0) 📝 `server/src/repositories/index.ts` (+2 -0) ➕ `server/src/services/asset-file.service.ts` (+48 -0) 📝 `server/src/services/base.service.ts` (+2 -0) _...and 4 more files_ </details> ### 📄 Description Add a few APIs for managing asset files. Currently these APIs are restricted by owner and do not allow access to shared assets. ``` GET /asset-files - search by assetId, type, etc. GET /asset-files/:id - get by id GET /asset-files/:id/download - serve file contents by id DELETE /asset-files/:id - delete by id ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 16:37:30 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#18390