Commit graph

171 commits

Author SHA1 Message Date
izzy
ef1eaee863
merge: remote-tracking branch 'origin/main' into feat/maintenance-mode 2025-11-12 11:54:19 +00:00
Jason Rasmussen
edde0f93ae
feat: endpoint descriptions (#23813) 2025-11-11 17:01:14 -05:00
izzy
b979bbb06d
chore: update tests due to refactors 2025-11-10 12:13:42 +00:00
izzy
36baeb603f
refactor: move static methods into util 2025-11-10 11:48:19 +00:00
izzy
c3794be917
refactor: remove business logic from repositories 2025-11-07 10:12:38 +00:00
izzy
a597b0edb1
refactor: always validate login (i.e. check cookie) 2025-11-06 17:50:48 +00:00
izzy
c8f3eef45d
refactor: use service instead of repository
chore: read token from cookie if possible
chore: rename client event to AppRestartV1
2025-11-06 15:35:17 +00:00
izzy
2b659986c2
chore: lint fixes for server 2025-11-06 11:27:14 +00:00
izzy
ab9951e59e
chore: swap jsonwebtoken for jose 2025-11-05 18:12:02 +00:00
izzy
57997c001e
refactor: always validate the maintenance auth on the server 2025-11-05 16:07:41 +00:00
izzy
94d32bb54d
refactor: use secret instead of token in jwt terminology
chore: log maintenance mode login URL on boot
chore: don't make CLI actions reload if already in target state
2025-11-05 15:36:18 +00:00
izzy
421bf855d3
feat: log into maintenance mode from CLI command 2025-11-05 14:39:34 +00:00
izzy
460a626089
refactor: switch from nest jwt to just jsonwebtokens 2025-11-05 14:10:30 +00:00
izzy
014669f4a4
feat: jwt auth for maintenance 2025-11-05 13:44:43 +00:00
izzy
37db497b12
feat: maintenance authentication guard 2025-11-05 12:27:10 +00:00
izzy
d219cb951d
refactor: merge common code between api/maintenance 2025-11-05 11:41:29 +00:00
izzy
60cd22bfc5
feat: add Maintenance permission 2025-11-05 11:28:34 +00:00
izzy
7db6f856b3
refactor: remove redundant route for maintenance 2025-11-05 11:05:20 +00:00
izzy
3e850d96d8
feat: reimplement maintenance mode exit with new module 2025-11-05 11:00:07 +00:00
izzy
f80782f543
feat: initial draft of maintenance module, repo., worker controller, worker service 2025-11-04 18:29:32 +00:00
izzy
2afbff36a3
refactor: use system metadata for maintenance status 2025-10-31 17:28:57 +00:00
izzy
47e673ef55
chore: add additional routes to maintenance controller 2025-10-31 15:50:26 +00:00
izzy
bb5d4ce9da
feat: cli command to toggle maintenance mode 2025-10-31 15:12:00 +00:00
izzy
42ac9cf922
feat: boot a stripped down maintenance api if enabled 2025-10-31 14:47:49 +00:00
Daniel Dietzler
e9038193db
fix: asset copy validation error (#23387) 2025-10-30 19:40:58 -04:00
Daniel Dietzler
4ae7cadeae
feat: asset copy (#23172) 2025-10-29 08:43:47 -05:00
Alex
9098717c55
feat: getAssetOcr endpoint (#23331)
* feat: getAssetOcr endpoint

* pr feedback
2025-10-28 20:57:03 +00:00
Jorge Montejo
382481735a
feat: logout sessions on password change (#23188)
* log out ohter sessions on password change

* translations

* update and add tests

* rename event to UserLogoutOtherSessions

* fix typo

* requested changes

* fix tests

* fix medium:test

* use ValidateBoolean

* fix format

* dont delete current session id

* Update server/src/dtos/auth.dto.ts

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>

* rename event and invalidateOtherSessions

* chore: cleanup

---------

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
Co-authored-by: Jason Rasmussen <jason@rasm.me>
2025-10-27 13:16:10 +00:00
aviv926
032de9ff2f
feat: view the user's app version on the user page (#21345)
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
2025-10-22 00:36:18 +02:00
Jason Rasmussen
b4c72fb609
fix(server): validate token permission (#21802) 2025-09-11 08:09:58 -04:00
Jason Rasmussen
7e377d3e42
chore: deprecate (#21791) 2025-09-10 15:35:41 -04:00
Jason Rasmussen
5a7042364b
feat: add partner create endpoint (#21625) 2025-09-05 17:59:11 -04:00
Jason Rasmussen
6e7c2817a3
fix: asset upload metadata validation (#21594) 2025-09-04 13:22:01 -05:00
Arthur Normand
37a79292c0
feat: view similar photos (#21108)
* Enable filteing by example

* Drop `@GenerateSql` for `getEmbedding`?

* Improve error message

* PR Feedback

* Sort en.json

* Add SQL

* Fix lint

* Drop test that is no longer valid

* Fix i18n file sorting

* Fix TS error

* Add a `requireAccess` before pulling the embedding

* Fix decorators

* Run `make open-api`

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
2025-09-04 09:22:09 -05:00
bo0tzz
28edf5664d
fix: set specific AssetUpload permission on checkBulkUpload endpoint (#21470)
* fix: set specific AssetUpload permission on checkBulkUpload endpoint

Fixes #21456

* fix: make open-api
2025-09-02 14:21:14 -05:00
Jason Rasmussen
88072910da
feat: asset metadata (#20446) 2025-08-27 14:31:23 -04:00
Jason Rasmussen
70e59c00d5
fix: invalid storage quota with decimals (#21271) 2025-08-26 14:46:29 -04:00
xCJPECKOVERx
9ff664ed36
feat(web): Add to Multiple Albums (#20072)
* Multi add to album picker:
- update modal for multi select
- Update add-to-album and add-to-album-action to work with new array return from AlbumPickerModal
- Add asset-utils.addAssetsToAlbums (incomplete)

* initial addToAlbums endpoint

* - fix endpoint
- add test

* - update return type
- make open-api

* - simplify return dto
- handle notification

* - fix returns
- clean up

* - update i18n
- format & check

* - checks

* - correct successId count
- fix assets_cannot_be_added language call

* tests

* foromat

* refactor

* - update successful add message to included total attempted

* - fix web test
- format i18n

* - fix open-api

* - fix imports to resolve checks

* - PR suggestions

* open-api

* refactor addAssetsToAlbums

* refactor it again

* - fix error returns and tests

* - swap icon for IconButton
- don't nest the buttons

* open-api

* - Cleanup multi-select button to match Thumbnail

* merge and openapi

* - remove onclick from icon element

* - fix double onClose call with keyboard shortcuts

* - spelling and formatting
- apply new api permission

* - open-api

* chore: styling

* translation

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
2025-08-19 00:42:47 +00:00
Jason Rasmussen
e00556a34a
feat: get metadata about the current api key (#21027) 2025-08-18 18:15:03 -05:00
Jason Rasmussen
13563fc507
chore: update response codes (#20770)
* chore: update response codes

* chore: skip problematic test
2025-08-08 15:56:37 -04:00
Jason Rasmussen
538d5c81ea
feat: reset oauth ids (#20798) 2025-08-08 15:42:38 -04:00
Michael
a91bb399f0
feat: add server.versionCheck permission (#20555)
* add server.versionCheck permission

* getVersionCheck is no admin-route
2025-08-04 17:39:05 -05:00
Jason Rasmussen
9b65cd4d7b
feat!: remove typeorm (#20366)
feat: remove typeorm
2025-07-29 17:28:02 -04:00
Alwin Lohrie
ae1d60e259
feat: find large files utility (#18040)
feat: large asset utility

Co-authored-by: Jason Rasmussen <jason@rasm.me>
2025-07-28 18:48:39 -04:00
Jason Rasmussen
0fdeac0417
feat!: more permissions (#20250)
feat: more api key permissions
2025-07-25 15:25:23 -04:00
xCJPECKOVERx
1a70896113
feat(web): Remove from Stack (#19703)
* - add component
- update server's StackCreateDto for merge parameter
- Update stackRepo to only merge stacks when merge=true (default)
- update web action handlers to show stack changes

* - make open-api

* lint & format

* - Add proper icon to 'remove from stack'
- change web unstack icon to image-off-outline

* - cleanup

* - format & lint

* - make open-api: StackCreateDto merge optional

* initial addition of new endpoint

* remove stack endpoint

* - fix up remove stack endpoint
- open-api

* - Undo stackCreate merge parameter

* - open-api typescript

* open-api dart

* Tests:
- add tests
- update assetStub.imageFrom2015 to have required stack attributes to include it with tests

* update event name

* Fix event name in test

* remove asset_update check

* - merge stack.removeAsset params into one object
- refactor asset existence check (no need for asset fetch)
- fix tests

* Don't return updated stack

* Create specialized stack id & primary asset fetch for asset removal checks

* Correct new permission names

* make sql

* - fix open-api

* - cleanup
2025-07-22 22:17:06 -04:00
Jason Rasmussen
e73abe0762
refactor: enum casing (#19946) 2025-07-15 14:50:13 -04:00
Jason Rasmussen
351701c4d6
refactor: validate enum (#19943) 2025-07-15 17:14:57 +00:00
Jason Rasmussen
47c0dc0d7e
feat: nightly tasks (#19879) 2025-07-11 17:32:10 -04:00
Jason Rasmussen
4b3a4725c6
feat: pending sync reset flag (#19861) 2025-07-11 09:38:02 -04:00