import type { Ref } from './common'; import type { HasObjectId } from './has-object-id'; import type { IUser } from './user'; export const IExternalAuthProviderType = { ldap: 'ldap', saml: 'saml', oidc: 'oidc', google: 'google', github: 'github', facebook: 'facebook', } as const; export type IExternalAuthProviderType = typeof IExternalAuthProviderType[keyof typeof IExternalAuthProviderType] export type IExternalAccount = { providerType: IExternalAuthProviderType, accountId: string, user: Ref, } export type IExternalAccountHasId = IExternalAccount & HasObjectId