aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/typings/models/oauth/oauth-token.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/typings/models/oauth/oauth-token.ts')
-rw-r--r--server/typings/models/oauth/oauth-token.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/server/typings/models/oauth/oauth-token.ts b/server/typings/models/oauth/oauth-token.ts
deleted file mode 100644
index b24a95fd8..000000000
--- a/server/typings/models/oauth/oauth-token.ts
+++ /dev/null
@@ -1,14 +0,0 @@
1import { OAuthTokenModel } from '@server/models/oauth/oauth-token'
2import { PickWith } from '@server/typings/utils'
3import { MUserAccountUrl } from '../user/user'
4
5type Use<K extends keyof OAuthTokenModel, M> = PickWith<OAuthTokenModel, K, M>
6
7// ############################################################################
8
9export type MOAuthToken = Omit<OAuthTokenModel, 'User' | 'OAuthClients'>
10
11export type MOAuthTokenUser =
12 MOAuthToken &
13 Use<'User', MUserAccountUrl> &
14 { user?: MUserAccountUrl }