starchild-widget
Version:
Starchild Widget
47 lines • 1.16 kB
TypeScript
/**
* Authentication store types
*/
/**
* Authentication state interface
*/
export interface AuthState {
secretKey: string;
accountId: string;
orderlyKey: string;
aiChatKey: string;
telegramUserId: string;
error: Error | null;
}
/**
* Authentication action type enumeration
*/
export declare enum AuthActionType {
AUTH_INITIALIZE = "AUTH_INITIALIZE",
AUTH_SET_SECRET_KEY = "AUTH_SET_SECRET_KEY",
AUTH_SET_ACCOUNT_ID = "AUTH_SET_ACCOUNT_ID",
AUTH_SET_ORDERLY_KEY = "AUTH_SET_ORDERLY_KEY",
AUTH_SET_AI_CHAT_KEY = "AUTH_SET_AI_CHAT_KEY",
AUTH_SET_TELEGRAM_USER_ID = "AUTH_SET_TELEGRAM_USER_ID",
AUTH_SET_CREDENTIALS = "AUTH_SET_CREDENTIALS",
AUTH_SET_ERROR = "AUTH_SET_ERROR",
AUTH_CLEAR = "AUTH_CLEAR",
AUTH_DESTROY = "AUTH_DESTROY"
}
/**
* Authentication credentials interface
*/
export interface AuthCredentials {
secretKey: string;
accountId: string;
orderlyKey: string;
aiChatKey: string;
telegramUserId: string;
}
/**
* Authentication action interface
*/
export interface AuthAction {
type: AuthActionType;
payload?: any;
}
//# sourceMappingURL=auth.d.ts.map