diff options
Diffstat (limited to 'server/typings/models/oauth/oauth-token.ts')
-rw-r--r-- | server/typings/models/oauth/oauth-token.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/typings/models/oauth/oauth-token.ts b/server/typings/models/oauth/oauth-token.ts new file mode 100644 index 000000000..105ea3df3 --- /dev/null +++ b/server/typings/models/oauth/oauth-token.ts | |||
@@ -0,0 +1,9 @@ | |||
1 | import { OAuthTokenModel } from '@server/models/oauth/oauth-token' | ||
2 | import { PickWith } from '@server/typings/utils' | ||
3 | import { MUserAccountUrl } from '@server/typings/models' | ||
4 | |||
5 | export type MOAuthToken = Omit<OAuthTokenModel, 'User' | 'OAuthClients'> | ||
6 | |||
7 | export type MOAuthTokenUser = MOAuthToken & | ||
8 | PickWith<OAuthTokenModel, 'User', MUserAccountUrl> & | ||
9 | { user?: MUserAccountUrl } | ||