25 lines
945 B
TypeScript
25 lines
945 B
TypeScript
import { String, Text } 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 {
|
|
clientSecret: String<512>;
|
|
system: System;
|
|
name: String<64>;
|
|
description?: Text;
|
|
redirectUris?: StringListJson;
|
|
logo?: String<512>;
|
|
isConfidential: Boolean;
|
|
scopes?: StringListJson;
|
|
requirePKCE: Boolean;
|
|
}
|
|
export type SecretAction = 'resetSecret';
|
|
export type Action = AbleAction | SecretAction;
|
|
export declare const AbleActionDef: ActionDef<AbleAction, AbleState>;
|
|
export declare const entityDesc: EntityDesc<Schema, Action, '', {
|
|
ableState: AbleState;
|
|
}>;
|