17 lines
647 B
TypeScript
17 lines
647 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 OauthAuthorizationCode } from './OauthAuthorizationCode';
|
|
export interface Schema extends EntityShape {
|
|
accessToken: String<1024>;
|
|
refreshToken: String<1024>;
|
|
user: User;
|
|
code: OauthAuthorizationCode;
|
|
accessExpiresAt: Datetime;
|
|
refreshExpiresAt: Datetime;
|
|
revokedAt?: Datetime;
|
|
lastUsedAt?: Datetime;
|
|
}
|
|
export declare const entityDesc: EntityDesc<Schema, '', '', {}>;
|