feat: reset oauth ids (#20798)

This commit is contained in:
Jason Rasmussen 2025-08-08 15:42:38 -04:00 committed by GitHub
parent 9ecaa3fa9d
commit 538d5c81ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 247 additions and 6 deletions

View file

@ -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"
},

View file

@ -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",