]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/types/models/oauth/oauth-token.ts
Add server API to abuse messages
[github/Chocobozzz/PeerTube.git] / server / types / models / oauth / oauth-token.ts
CommitLineData
453e83ea 1import { OAuthTokenModel } from '@server/models/oauth/oauth-token'
67ed6552 2import { PickWith } from '@shared/core-utils'
d7a25329 3import { MUserAccountUrl } from '../user/user'
453e83ea 4
0283eaac
C
5type Use<K extends keyof OAuthTokenModel, M> = PickWith<OAuthTokenModel, K, M>
6
7// ############################################################################
8
453e83ea
C
9export type MOAuthToken = Omit<OAuthTokenModel, 'User' | 'OAuthClients'>
10
a1587156
C
11export type MOAuthTokenUser =
12 MOAuthToken &
0283eaac 13 Use<'User', MUserAccountUrl> &
453e83ea 14 { user?: MUserAccountUrl }