aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/plugins/client/client-hook.model.ts5
-rw-r--r--shared/models/plugins/server/server-hook.model.ts4
-rw-r--r--shared/models/users/index.ts1
-rw-r--r--shared/models/users/two-factor-enable-result.model.ts7
-rw-r--r--shared/models/users/user.model.ts2
5 files changed, 17 insertions, 2 deletions
diff --git a/shared/models/plugins/client/client-hook.model.ts b/shared/models/plugins/client/client-hook.model.ts
index e6313b60e..20e019304 100644
--- a/shared/models/plugins/client/client-hook.model.ts
+++ b/shared/models/plugins/client/client-hook.model.ts
@@ -88,7 +88,10 @@ export const clientFilterHookObject = {
88 'filter:share.video-playlist-url.build.result': true, 88 'filter:share.video-playlist-url.build.result': true,
89 89
90 // Filter videojs options built for PeerTube player 90 // Filter videojs options built for PeerTube player
91 'filter:internal.player.videojs.options.result': true 91 'filter:internal.player.videojs.options.result': true,
92
93 // Filter p2p media loader options built for PeerTube player
94 'filter:internal.player.p2p-media-loader.options.result': true
92} 95}
93 96
94export type ClientFilterHookName = keyof typeof clientFilterHookObject 97export type ClientFilterHookName = keyof typeof clientFilterHookObject
diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts
index 5bf01c4b4..f11d2050b 100644
--- a/shared/models/plugins/server/server-hook.model.ts
+++ b/shared/models/plugins/server/server-hook.model.ts
@@ -103,7 +103,9 @@ export const serverFilterHookObject = {
103 'filter:job-queue.process.result': true, 103 'filter:job-queue.process.result': true,
104 104
105 'filter:transcoding.manual.resolutions-to-transcode.result': true, 105 'filter:transcoding.manual.resolutions-to-transcode.result': true,
106 'filter:transcoding.auto.resolutions-to-transcode.result': true 106 'filter:transcoding.auto.resolutions-to-transcode.result': true,
107
108 'filter:activity-pub.remote-video-comment.create.accept.result': true
107} 109}
108 110
109export type ServerFilterHookName = keyof typeof serverFilterHookObject 111export type ServerFilterHookName = keyof typeof serverFilterHookObject
diff --git a/shared/models/users/index.ts b/shared/models/users/index.ts
index b25978587..32f7a441c 100644
--- a/shared/models/users/index.ts
+++ b/shared/models/users/index.ts
@@ -1,3 +1,4 @@
1export * from './two-factor-enable-result.model'
1export * from './user-create-result.model' 2export * from './user-create-result.model'
2export * from './user-create.model' 3export * from './user-create.model'
3export * from './user-flag.model' 4export * from './user-flag.model'
diff --git a/shared/models/users/two-factor-enable-result.model.ts b/shared/models/users/two-factor-enable-result.model.ts
new file mode 100644
index 000000000..1fc801f0a
--- /dev/null
+++ b/shared/models/users/two-factor-enable-result.model.ts
@@ -0,0 +1,7 @@
1export interface TwoFactorEnableResult {
2 otpRequest: {
3 requestToken: string
4 secret: string
5 uri: string
6 }
7}
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts
index 63c5c8a92..7b6494ff8 100644
--- a/shared/models/users/user.model.ts
+++ b/shared/models/users/user.model.ts
@@ -62,6 +62,8 @@ export interface User {
62 pluginAuth: string | null 62 pluginAuth: string | null
63 63
64 lastLoginDate: Date | null 64 lastLoginDate: Date | null
65
66 twoFactorEnabled: boolean
65} 67}
66 68
67export interface MyUserSpecialPlaylist { 69export interface MyUserSpecialPlaylist {