blob: 2656c7b6613f9d85bbb291ed089fa4573b34d198 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { ActorModel } from '../../models/activitypub/actor'
import { VideoChannelModel } from '../../models/video/video-channel'
import { AccountModel } from '../../models/account/account'
import { FunctionProperties } from '../utils'
export type VideoChannelModelId = FunctionProperties<VideoChannelModel>
export type AccountModelId = FunctionProperties<AccountModel> | Pick<AccountModel, 'id'>
export type VideoChannelModelIdActor = VideoChannelModelId & Pick<VideoChannelModel, 'Actor'>
export type AccountModelIdActor = AccountModelId & Pick<AccountModel, 'Actor'>
export type ActorModelUrl = Pick<ActorModel, 'url'>
export type ActorModelOnly = Omit<ActorModel, 'Account' | 'VideoChannel' | 'ActorFollowing' | 'Avatar' | 'ActorFollowers' | 'Server'>
export type ActorModelId = Pick<ActorModelOnly, 'id'>
export type SignatureActorModel = ActorModelOnly & {
VideoChannel: VideoChannelModelIdActor
Account: AccountModelIdActor
}
export type ActorFollowerException = Pick<ActorModel, 'sharedInboxUrl' | 'inboxUrl'>
|