mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +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
|
|
@ -214,6 +214,34 @@
|
|||
"description": "This endpoint requires the `activity.delete` permission."
|
||||
}
|
||||
},
|
||||
"/admin/auth/unlink-all": {
|
||||
"post": {
|
||||
"operationId": "unlinkAllOAuthAccountsAdmin",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"bearer": []
|
||||
},
|
||||
{
|
||||
"cookie": []
|
||||
},
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Auth (admin)"
|
||||
],
|
||||
"x-immich-admin-only": true,
|
||||
"x-immich-permission": "adminAuth.unlinkAll",
|
||||
"description": "This endpoint is an admin-only route, and requires the `adminAuth.unlinkAll` permission."
|
||||
}
|
||||
},
|
||||
"/admin/notifications": {
|
||||
"post": {
|
||||
"operationId": "createNotification",
|
||||
|
|
@ -12687,7 +12715,8 @@
|
|||
"adminUser.create",
|
||||
"adminUser.read",
|
||||
"adminUser.update",
|
||||
"adminUser.delete"
|
||||
"adminUser.delete",
|
||||
"adminAuth.unlinkAll"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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