mirror of
https://github.com/unraid/api.git
synced 2026-01-06 16:49:49 -06:00
refactor: callbacks and progress on actions
This commit is contained in:
@@ -16,32 +16,16 @@ export interface UserInfo {
|
||||
sub?: string;
|
||||
username?: string;
|
||||
}
|
||||
|
||||
export interface AuthUser extends CognitoUser {
|
||||
attributes: UserInfo;
|
||||
username?: string;
|
||||
preferredMFA: ChallengeName;
|
||||
signInUserSession: {
|
||||
accessToken: {
|
||||
jwtToken: string;
|
||||
};
|
||||
idToken: {
|
||||
jwtToken: string;
|
||||
};
|
||||
refreshToken: {
|
||||
token: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export interface CallbackSendPayload extends ServerAccountCallbackSendPayload, ServerPurchaseCallbackSendPayload {
|
||||
export interface CallbackSendPayload {
|
||||
server: ServerAccountCallbackSendPayload|ServerPurchaseCallbackSendPayload;
|
||||
type: ServerStateDataActionType;
|
||||
}
|
||||
|
||||
export interface CallbackAction {
|
||||
apiKey?: string;
|
||||
keyUrl?: string;
|
||||
type: ServerStateDataActionType;
|
||||
user?: AuthUser;
|
||||
user?: UserInfo;
|
||||
}
|
||||
|
||||
export interface CallbackReceivePayload {
|
||||
|
||||
@@ -59,6 +59,7 @@ export interface ServerAccountCallbackSendPayload {
|
||||
keyfile?: string;
|
||||
locale?: string;
|
||||
name?: string;
|
||||
registered: boolean;
|
||||
regGen?: number;
|
||||
regGuid?: string;
|
||||
state: string;
|
||||
|
||||
Reference in New Issue
Block a user