mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat: reset oauth ids (#20798)
This commit is contained in:
parent
9ecaa3fa9d
commit
538d5c81ea
15 changed files with 247 additions and 6 deletions
|
|
@ -1646,6 +1646,15 @@ export function deleteActivity({ id }: {
|
|||
method: "DELETE"
|
||||
}));
|
||||
}
|
||||
/**
|
||||
* This endpoint is an admin-only route, and requires the `adminAuth.unlinkAll` permission.
|
||||
*/
|
||||
export function unlinkAllOAuthAccountsAdmin(opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchText("/admin/auth/unlink-all", {
|
||||
...opts,
|
||||
method: "POST"
|
||||
}));
|
||||
}
|
||||
export function createNotification({ notificationCreateDto }: {
|
||||
notificationCreateDto: NotificationCreateDto;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
|
|
@ -4669,7 +4678,8 @@ export enum Permission {
|
|||
AdminUserCreate = "adminUser.create",
|
||||
AdminUserRead = "adminUser.read",
|
||||
AdminUserUpdate = "adminUser.update",
|
||||
AdminUserDelete = "adminUser.delete"
|
||||
AdminUserDelete = "adminUser.delete",
|
||||
AdminAuthUnlinkAll = "adminAuth.unlinkAll"
|
||||
}
|
||||
export enum AssetMediaStatus {
|
||||
Created = "created",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue