21 lines
790 B
TypeScript
21 lines
790 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 OauthApplication } from './OauthApplication';
|
|
import { Schema as Application } from './Application';
|
|
import { StringListJson } from '../types/datatype';
|
|
export interface Schema extends EntityShape {
|
|
code: String<128>;
|
|
application: Application;
|
|
oauthApp: OauthApplication;
|
|
user: User;
|
|
redirectUri: String<512>;
|
|
scope: StringListJson;
|
|
codeChallenge?: String<128>;
|
|
codeChallengeMethod?: String<10>;
|
|
expiresAt: Datetime;
|
|
usedAt?: Datetime;
|
|
}
|
|
export declare const entityDesc: EntityDesc<Schema, '', '', {}>;
|