@useapi/midjourney-api
Version:
TypeScript client library for Midjourney API by useapi.net
85 lines (79 loc) • 1.98 kB
text/typescript
export class JobsImaginePostRequest {
/**
* Midjourney prompt
*/
'prompt': string;
/**
* Discord token
*/
'discord': string;
/**
* Discord server id
*/
'server': string;
/**
* Discord channel id
*/
'channel': string;
/**
* Optional Maximum Concurrent Jobs for current Midjourney subscription
*/
'maxJobs'?: number;
/**
* Optional callback URL, API will call the provided replyUrl once generation completed
*/
'replyUrl'?: string;
/**
* Optional reference id which will be stored and returned along with this job response / result
*/
'replyRef'?: string;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{ name: string, baseName: string, type: string, format: string }> = [
{
"name": "prompt",
"baseName": "prompt",
"type": "string",
"format": ""
},
{
"name": "discord",
"baseName": "discord",
"type": "string",
"format": ""
},
{
"name": "server",
"baseName": "server",
"type": "string",
"format": ""
},
{
"name": "channel",
"baseName": "channel",
"type": "string",
"format": ""
},
{
"name": "maxJobs",
"baseName": "maxJobs",
"type": "number",
"format": ""
},
{
"name": "replyUrl",
"baseName": "replyUrl",
"type": "string",
"format": ""
},
{
"name": "replyRef",
"baseName": "replyRef",
"type": "string",
"format": ""
}];
static getAttributeTypeMap() {
return JobsImaginePostRequest.attributeTypeMap;
}
public constructor() {
}
}