17 lines
656 B
TypeScript
17 lines
656 B
TypeScript
import { String, Datetime } from 'oak-domain/lib/types/DataType';
|
|
import { Schema as User } from './User';
|
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
import { EntityDesc } from 'oak-domain/lib/types/EntityDesc';
|
|
import { Schema as OauthProviderConfigs } from './OauthProviderConfigs';
|
|
export interface Schema extends EntityShape {
|
|
user: User;
|
|
providerConfig: OauthProviderConfigs;
|
|
providerUserId: String<128>;
|
|
rawUserInfo: Object;
|
|
accessToken: String<256>;
|
|
refreshToken?: String<256>;
|
|
accessExpiresAt: Datetime;
|
|
refreshExpiresAt?: Datetime;
|
|
}
|
|
export declare const entityDesc: EntityDesc<Schema, '', '', {}>;
|