express.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. import { RegisteredPlugin } from '../lib/plugins/plugin-manager'
  2. import {
  3. MAccountDefault,
  4. MActorAccountChannelId,
  5. MActorFollowActorsDefault,
  6. MActorFollowActorsDefaultSubscription,
  7. MActorFull,
  8. MChannelAccountDefault,
  9. MComment,
  10. MCommentOwnerVideoReply,
  11. MUserDefault,
  12. MVideoAbuse,
  13. MVideoBlacklist,
  14. MVideoCaptionVideo,
  15. MVideoFullLight,
  16. MVideoIdThumbnail,
  17. MVideoRedundancyVideo,
  18. MVideoShareActor,
  19. MVideoThumbnail,
  20. MVideoWithRights
  21. } from './models'
  22. import { MVideoPlaylistFull, MVideoPlaylistFullSummary } from './models/video/video-playlist'
  23. import { MVideoImportDefault } from '@server/typings/models/video/video-import'
  24. import { MAccountBlocklist, MStreamingPlaylist, MVideoFile } from '@server/typings/models'
  25. import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/typings/models/video/video-playlist-element'
  26. import { MAccountVideoRateAccountVideo } from '@server/typings/models/video/video-rate'
  27. import { MVideoChangeOwnershipFull } from './models/video/video-change-ownership'
  28. import { MPlugin, MServer } from '@server/typings/models/server'
  29. import { MServerBlocklist } from './models/server/server-blocklist'
  30. import { MOAuthTokenUser } from '@server/typings/models/oauth/oauth-token'
  31. declare module 'express' {
  32. interface Response {
  33. locals: {
  34. videoAll?: MVideoFullLight
  35. onlyVideo?: MVideoThumbnail
  36. onlyVideoWithRights?: MVideoWithRights
  37. videoId?: MVideoIdThumbnail
  38. videoShare?: MVideoShareActor
  39. videoFile?: MVideoFile
  40. videoImport?: MVideoImportDefault
  41. videoBlacklist?: MVideoBlacklist
  42. videoCaption?: MVideoCaptionVideo
  43. videoAbuse?: MVideoAbuse
  44. videoStreamingPlaylist?: MStreamingPlaylist
  45. videoChannel?: MChannelAccountDefault
  46. videoPlaylistFull?: MVideoPlaylistFull
  47. videoPlaylistSummary?: MVideoPlaylistFullSummary
  48. videoPlaylistElement?: MVideoPlaylistElement
  49. videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
  50. accountVideoRate?: MAccountVideoRateAccountVideo
  51. videoCommentFull?: MCommentOwnerVideoReply
  52. videoCommentThread?: MComment
  53. follow?: MActorFollowActorsDefault
  54. subscription?: MActorFollowActorsDefaultSubscription
  55. nextOwner?: MAccountDefault
  56. videoChangeOwnership?: MVideoChangeOwnershipFull
  57. account?: MAccountDefault
  58. actorFull?: MActorFull
  59. user?: MUserDefault
  60. server?: MServer
  61. videoRedundancy?: MVideoRedundancyVideo
  62. accountBlock?: MAccountBlocklist
  63. serverBlock?: MServerBlocklist
  64. oauth?: {
  65. token: MOAuthTokenUser
  66. }
  67. signature?: {
  68. actor: MActorAccountChannelId
  69. }
  70. authenticated?: boolean
  71. registeredPlugin?: RegisteredPlugin
  72. plugin?: MPlugin
  73. }
  74. }
  75. }