relax-mj
Version:
Node.js client for the unofficial MidJourney API.
33 lines (29 loc) • 616 B
text/typescript
export interface MJMessage {
uri: string;
content: string;
id?: string;
hash?: string;
progress?: string;
}
export type LoadingHandler = (uri: string, progress: string) => void;
export interface WaitMjEvent {
nonce: string;
prompt?: string;
id?: string;
index?: number;
}
export interface WsEventMsg {
error?: Error;
message?: MJMessage;
}
export interface MJInfo {
subscription: string;
jobMode: string;
visibilityMode: string;
fastTimeRemaining: string;
lifetimeUsage: string;
relaxedUsage: string;
queuedJobsFast: string;
queuedJobsRelax: string;
runningJobs: string;
}