aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-12 16:09:02 +0200
committerChocobozzz <chocobozzz@cpy.re>2022-10-24 14:48:24 +0200
commit3545e72c686ff1725bbdfd8d16d693e2f4aa75a3 (patch)
treee7f1d12ef5dae1e1142c3a8d0b681c1dbbb0de10 /shared/models
parent38a3ccc7f8ad0ea94362b58c732af7c387ab46be (diff)
downloadPeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.tar.gz
PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.tar.zst
PeerTube-3545e72c686ff1725bbdfd8d16d693e2f4aa75a3.zip
Put private videos under a specific subdirectory
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/server/debug.model.ts1
-rw-r--r--shared/models/videos/index.ts2
-rw-r--r--shared/models/videos/video-token.model.ts6
3 files changed, 9 insertions, 0 deletions
diff --git a/shared/models/server/debug.model.ts b/shared/models/server/debug.model.ts
index 1c4597b8b..41f2109af 100644
--- a/shared/models/server/debug.model.ts
+++ b/shared/models/server/debug.model.ts
@@ -8,4 +8,5 @@ export interface SendDebugCommand {
8 | 'process-video-views-buffer' 8 | 'process-video-views-buffer'
9 | 'process-video-viewers' 9 | 'process-video-viewers'
10 | 'process-video-channel-sync-latest' 10 | 'process-video-channel-sync-latest'
11 | 'process-update-videos-scheduler'
11} 12}
diff --git a/shared/models/videos/index.ts b/shared/models/videos/index.ts
index f8e6976d3..4c1790228 100644
--- a/shared/models/videos/index.ts
+++ b/shared/models/videos/index.ts
@@ -33,6 +33,8 @@ export * from './video-storage.enum'
33export * from './video-streaming-playlist.model' 33export * from './video-streaming-playlist.model'
34export * from './video-streaming-playlist.type' 34export * from './video-streaming-playlist.type'
35 35
36export * from './video-token.model'
37
36export * from './video-update.model' 38export * from './video-update.model'
37export * from './video-view.model' 39export * from './video-view.model'
38export * from './video.model' 40export * from './video.model'
diff --git a/shared/models/videos/video-token.model.ts b/shared/models/videos/video-token.model.ts
new file mode 100644
index 000000000..aefea565f
--- /dev/null
+++ b/shared/models/videos/video-token.model.ts
@@ -0,0 +1,6 @@
1export interface VideoToken {
2 files: {
3 token: string
4 expires: string | Date
5 }
6}