Discover Packages
github.com/iimeta/midjourney-proxy
internal
model
package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Jul 26, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type BlendReq struct {
Base64Array []string `json:"base64Array"`
}
type BlendRes struct {
Code int `json:"code"`
Description string `json:"description"`
Result string `json:"result"`
Properties struct {
} `json:"properties"`
}
type Change struct {
Action string `json:"action"`
Index int `json:"index"`
TaskId string `json:"taskId"`
}
type ChangeData struct {
ComponentType int `json:"component_type"`
CustomId string `json:"custom_id"`
}
type ChangeRes struct {
Code int `json:"code"`
Description string `json:"description"`
Result string `json:"result"`
Properties struct {
} `json:"properties"`
}
type DescribeReq struct {
Base64 string `json:"base64"`
}
type DescribeRes struct {
Code int `json:"code"`
Description string `json:"description"`
Result string `json:"result"`
Properties struct {
} `json:"properties"`
}
type FetchRes struct {
Id string `json:"id"`
Action string `json:"action"`
Prompt string `json:"prompt"`
PromptEn string `json:"promptEn"`
Description string `json:"description"`
State string `json:"state"`
SubmitTime int64 `json:"submitTime"`
StartTime int64 `json:"startTime"`
FinishTime int64 `json:"finishTime"`
ImageUrl string `json:"imageUrl"`
Status string `json:"status"`
Progress string `json:"progress"`
FailReason string `json:"failReason"`
Properties struct {
NotifyHook interface{} `json:"notifyHook"`
Flags int `json:"flags"`
MessageId string `json:"messageId"`
MessageHash string `json:"messageHash"`
FinalPrompt string `json:"finalPrompt"`
ProgressMessageId string `json:"progressMessageId"`
} `json:"properties"`
}
type Imagine struct {
Prompt string `json:"prompt"`
Base64 string `json:"base64"`
}
type ImagineData struct {
Name string `json:"name"`
Options []Option `json:"options"`
Id string `json:"id"`
Type int `json:"type"`
Version string `json:"version"`
}
type InteractionsChangeReq struct {
Data ChangeData `json:"data"`
GuildId string `json:"guild_id"`
SessionId string `json:"session_id"`
Type int `json:"type"`
ChannelId string `json:"channel_id"`
ApplicationId string `json:"application_id"`
MessageId string `json:"message_id"`
}
type InteractionsImagineReq struct {
Data ImagineData `json:"data"`
GuildId string `json:"guild_id"`
SessionId string `json:"session_id"`
Type int `json:"type"`
ChannelId string `json:"channel_id"`
ApplicationId string `json:"application_id"`
}
type Option struct {
Name string `json:"name"`
Type int `json:"type"`
Value string `json:"value"`
}
type SubmitRes struct {
Code int `json:"code"`
Description string `json:"description"`
Result string `json:"result"`
Properties struct {
} `json:"properties"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.