oak-general-business/lib/entities/OauthAuthorizationCodes.d.ts

19 lines
709 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 './OauthApplications';
import { StringListJson } from '../types/datatype';
export interface Schema extends EntityShape {
code: String<128>;
application: OauthApplication;
user: User;
redirectUri: String<256>;
scope: StringListJson;
codeChallenge?: String<128>;
codeChallengeMethod?: String<10>;
expiresAt: Datetime;
usedAt?: Datetime;
}
export declare const entityDesc: EntityDesc<Schema, '', '', {}>;