aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/users/users.ts3
-rw-r--r--shared/models/plugins/server-hook.model.ts18
2 files changed, 19 insertions, 2 deletions
diff --git a/shared/extra-utils/users/users.ts b/shared/extra-utils/users/users.ts
index 9959fd074..2fe0e55c2 100644
--- a/shared/extra-utils/users/users.ts
+++ b/shared/extra-utils/users/users.ts
@@ -8,7 +8,8 @@ import { userLogin } from './login'
8import { UserUpdateMe } from '../../models/users' 8import { UserUpdateMe } from '../../models/users'
9import { omit } from 'lodash' 9import { omit } from 'lodash'
10 10
11type CreateUserArgs = { url: string, 11type CreateUserArgs = {
12 url: string,
12 accessToken: string, 13 accessToken: string,
13 username: string, 14 username: string,
14 password: string, 15 password: string,
diff --git a/shared/models/plugins/server-hook.model.ts b/shared/models/plugins/server-hook.model.ts
index 41ee28097..80ecd9e24 100644
--- a/shared/models/plugins/server-hook.model.ts
+++ b/shared/models/plugins/server-hook.model.ts
@@ -55,7 +55,23 @@ export const serverActionHookObject = {
55 // Fired when a reply to a thread is created 55 // Fired when a reply to a thread is created
56 'action:api.video-comment-reply.created': true, 56 'action:api.video-comment-reply.created': true,
57 // Fired when a comment (thread or reply) is deleted 57 // Fired when a comment (thread or reply) is deleted
58 'action:api.video-comment.deleted': true 58 'action:api.video-comment.deleted': true,
59
60 // Fired when a user is blocked (banned)
61 'action:api.user.blocked': true,
62 // Fired when a user is unblocked (unbanned)
63 'action:api.user.unblocked': true,
64 // Fired when a user registered on the instance
65 'action:api.user.registered': true,
66 // Fired when an admin/moderator created a user
67 'action:api.user.created': true,
68 // Fired when a user is removed by an admin/moderator
69 'action:api.user.deleted': true,
70 // Fired when a user is updated by an admin/moderator
71 'action:api.user.updated': true,
72
73 // Fired when a user got a new oauth2 token
74 'action:api.user.oauth2-got-token': true
59} 75}
60 76
61export type ServerActionHookName = keyof typeof serverActionHookObject 77export type ServerActionHookName = keyof typeof serverActionHookObject