2
1

express.ts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import { VideoChannelModel } from '../models/video/video-channel'
  2. import { VideoPlaylistModel } from '../models/video/video-playlist'
  3. import { VideoPlaylistElementModel } from '../models/video/video-playlist-element'
  4. import { UserModel } from '../models/account/user'
  5. import { VideoModel } from '../models/video/video'
  6. import { AccountModel } from '../models/account/account'
  7. import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership'
  8. import { ActorModel } from '../models/activitypub/actor'
  9. import { VideoCommentModel } from '../models/video/video-comment'
  10. import { VideoShareModel } from '../models/video/video-share'
  11. import { AccountVideoRateModel } from '../models/account/account-video-rate'
  12. import { ActorFollowModel } from '../models/activitypub/actor-follow'
  13. import { ServerModel } from '../models/server/server'
  14. import { VideoFileModel } from '../models/video/video-file'
  15. import { VideoRedundancyModel } from '../models/redundancy/video-redundancy'
  16. import { ServerBlocklistModel } from '../models/server/server-blocklist'
  17. import { AccountBlocklistModel } from '../models/account/account-blocklist'
  18. import { VideoImportModel } from '../models/video/video-import'
  19. import { VideoAbuseModel } from '../models/video/video-abuse'
  20. import { VideoBlacklistModel } from '../models/video/video-blacklist'
  21. import { VideoCaptionModel } from '../models/video/video-caption'
  22. import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist'
  23. declare module 'express' {
  24. interface Response {
  25. locals: {
  26. video?: VideoModel
  27. videoShare?: VideoShareModel
  28. videoFile?: VideoFileModel
  29. videoImport?: VideoImportModel
  30. videoBlacklist?: VideoBlacklistModel
  31. videoCaption?: VideoCaptionModel
  32. videoAbuse?: VideoAbuseModel
  33. videoStreamingPlaylist?: VideoStreamingPlaylistModel
  34. videoChannel?: VideoChannelModel
  35. videoPlaylist?: VideoPlaylistModel
  36. videoPlaylistElement?: VideoPlaylistElementModel
  37. accountVideoRate?: AccountVideoRateModel
  38. videoComment?: VideoCommentModel
  39. videoCommentThread?: VideoCommentModel
  40. follow?: ActorFollowModel
  41. subscription?: ActorFollowModel
  42. nextOwner?: AccountModel
  43. videoChangeOwnership?: VideoChangeOwnershipModel
  44. account?: AccountModel
  45. actor?: ActorModel
  46. user?: UserModel
  47. server?: ServerModel
  48. videoRedundancy?: VideoRedundancyModel
  49. accountBlock?: AccountBlocklistModel
  50. serverBlock?: ServerBlocklistModel
  51. oauth?: {
  52. token: {
  53. User: UserModel
  54. user: UserModel
  55. }
  56. }
  57. signature?: {
  58. actor: ActorModel
  59. }
  60. authenticated?: boolean
  61. }
  62. }
  63. }