@useapi/midjourney-api
Version:
TypeScript client library for Midjourney API by useapi.net
117 lines (116 loc) • 3.35 kB
TypeScript
import { JobResponseAttachmentsInner } from '../models/JobResponseAttachmentsInner';
import { JobResponseChildrenInner } from '../models/JobResponseChildrenInner';
import { JobResponseEmbedsInner } from '../models/JobResponseEmbedsInner';
export declare class JobResponse {
'jobid': string;
'parentJobId'?: string;
'verb': JobResponseVerbEnum;
'status': JobResponseStatusEnum;
'created': string;
'updated'?: string;
'prompt'?: string;
'blendUrls'?: Array<string>;
'blendDimensions'?: JobResponseBlendDimensionsEnum;
'describeUrl'?: string;
'button'?: JobResponseButtonEnum;
'children'?: Array<JobResponseChildrenInner>;
'buttons'?: Array<JobResponseButtonsEnum>;
'channel': string;
'server': string;
'maxJobs': number;
'messageId'?: string;
'content'?: string;
'timestamp'?: string;
'attachments'?: Array<JobResponseAttachmentsInner>;
'embeds'?: Array<JobResponseEmbedsInner>;
'code': JobResponseCodeEnum;
static readonly discriminator: string | undefined;
static readonly attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
format: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
format: string;
}[];
constructor();
}
export declare enum JobResponseVerbEnum {
Imagine = "imagine",
Button = "button",
Blend = "blend",
Describe = "describe"
}
export declare enum JobResponseStatusEnum {
Created = "created",
Started = "started",
Moderated = "moderated",
Progress = "progress",
Completed = "completed",
Failed = "failed",
Cancelled = "cancelled"
}
export declare enum JobResponseBlendDimensionsEnum {
Portrait = "Portrait",
Square = "Square",
Landscape = "Landscape"
}
export declare enum JobResponseButtonEnum {
U1 = "U1",
U2 = "U2",
U3 = "U3",
U4 = "U4",
V1 = "V1",
V2 = "V2",
V3 = "V3",
V4 = "V4",
ButtonLeft = "\u2B05\uFE0F",
ButtonRight = "\u27A1\uFE0F",
ButtonUp = "\u2B06\uFE0F",
ButtonDown = "\u2B07\uFE0F",
ButtonReroll = "\uD83D\uDD04",
VaryStrong = "Vary (Strong)",
VarySubtle = "Vary (Subtle)",
ZoomOut15x = "Zoom Out 1.5x",
ZoomOut2x = "Zoom Out 2x",
Upscale2x = "Upscale (2x)",
Upscale4x = "Upscale (4x)",
RedoUpscale2x = "Redo Upscale (2x)",
RedoUpscale4x = "Redo Upscale (4x)",
MakeSquare = "Make Square",
MakeVariations = "Make Variations",
Remaster = "Remaster"
}
export declare enum JobResponseButtonsEnum {
U1 = "U1",
U2 = "U2",
U3 = "U3",
U4 = "U4",
V1 = "V1",
V2 = "V2",
V3 = "V3",
V4 = "V4",
ButtonLeft = "\u2B05\uFE0F",
ButtonRight = "\u27A1\uFE0F",
ButtonUp = "\u2B06\uFE0F",
ButtonDown = "\u2B07\uFE0F",
ButtonReroll = "\uD83D\uDD04",
VaryStrong = "Vary (Strong)",
VarySubtle = "Vary (Subtle)",
ZoomOut15x = "Zoom Out 1.5x",
Upscale2x = "Upscale (2x)",
Upscale4x = "Upscale (4x)",
RedoUpscale2x = "Redo Upscale (2x)",
RedoUpscale4x = "Redo Upscale (4x)",
ZoomOut2x = "Zoom Out 2x",
MakeSquare = "Make Square",
MakeVariations = "Make Variations",
Remaster = "Remaster"
}
export declare enum JobResponseCodeEnum {
NUMBER_200 = 200
}