oak-general-business/es/entities/OauthProvider.d.ts

29 lines
1.0 KiB
TypeScript

import { String } from 'oak-domain/lib/types/DataType';
import { EntityShape } from 'oak-domain/lib/types/Entity';
import { AbleAction, AbleState } from 'oak-domain/lib/actions/action';
import { ActionDef } from 'oak-domain/lib/types';
import { EntityDesc } from 'oak-domain/lib/types/EntityDesc';
import { Schema as System } from './System';
import { StringListJson } from '../types/datatype';
export interface Schema extends EntityShape {
system: System;
name: String<64>;
type: String<64>;
logo?: String<512>;
authorizationEndpoint: String<512>;
tokenEndpoint: String<512>;
userInfoEndpoint?: String<512>;
revokeEndpoint?: String<512>;
refreshEndpoint?: String<512>;
clientId: String<512>;
clientSecret: String<512>;
redirectUri: String<512>;
scopes?: StringListJson;
autoRegister: Boolean;
}
export type Action = AbleAction;
export declare const AbleActionDef: ActionDef<AbleAction, AbleState>;
export declare const entityDesc: EntityDesc<Schema, Action, '', {
ableState: AbleState;
}>;