@obelisk/client
Version:
Typescript client to interact with Obelisk on a higher level than the regular ReST API calls.
32 lines (31 loc) • 678 B
TypeScript
/**
* Events that can be called.
*/
export declare enum ClientEventType {
/**
* Called after calling a resource you are not allowed to. (Error 403)
*/
OnForbidden = 0,
/**
* Called when RPT changes. Might be cleared, updated, renewed,...
*/
OnRptChanged = 1,
/**
* Called when RPT Roles might have changed
*/
OnRolesChanged = 2
}
/**
* Structure of an event, contains it's type
* and arguments (if any).
*/
export interface ClientEvent {
/**
* Event type.
*/
type: ClientEventType;
/**
* Arguments from the keycloak-js event function.
*/
args?: any;
}