/* Options: Date: 2025-01-08 03:12:45 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryGenerationModelSettings.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export class ResponseError { // @DataMember(Order=1) public errorCode: string; // @DataMember(Order=2) public fieldName: string; // @DataMember(Order=3) public message: string; // @DataMember(Order=4) public meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public errorCode: string; // @DataMember(Order=2) public message: string; // @DataMember(Order=3) public stackTrace: string; // @DataMember(Order=4) public errors: ResponseError[]; // @DataMember(Order=5) public meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class QueryBase { // @DataMember(Order=1) public skip?: number; // @DataMember(Order=2) public take?: number; // @DataMember(Order=3) public orderBy: string; // @DataMember(Order=4) public orderByDesc: string; // @DataMember(Order=5) public include: string; // @DataMember(Order=6) public fields: string; // @DataMember(Order=7) public meta: { [index:string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class QueryDb extends QueryBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export enum ComfySampler { euler = 'euler', euler_cfg_pp = 'euler_cfg_pp', euler_ancestral = 'euler_ancestral', euler_ancestral_cfg_pp = 'euler_ancestral_cfg_pp', huen = 'huen', huenpp2 = 'huenpp2', dpm_2 = 'dpm_2', dpm_2_ancestral = 'dpm_2_ancestral', lms = 'lms', dpm_fast = 'dpm_fast', dpm_adaptive = 'dpm_adaptive', dpmpp_2s_ancestral = 'dpmpp_2s_ancestral', dpmpp_sde = 'dpmpp_sde', dpmpp_sde_gpu = 'dpmpp_sde_gpu', dpmpp_2m = 'dpmpp_2m', dpmpp_2m_sde = 'dpmpp_2m_sde', dpmpp_2m_sde_gpu = 'dpmpp_2m_sde_gpu', dpmpp_3m_sde = 'dpmpp_3m_sde', dpmpp_3m_sde_gpu = 'dpmpp_3m_sde_gpu', ddpm = 'ddpm', lcm = 'lcm', ddim = 'ddim', uni_pc = 'uni_pc', uni_pc_bh2 = 'uni_pc_bh2', } export enum ModelType { TextToImage = 'TextToImage', TextEncoder = 'TextEncoder', ImageUpscale = 'ImageUpscale', TextToSpeech = 'TextToSpeech', TextToAudio = 'TextToAudio', SpeechToText = 'SpeechToText', ImageToText = 'ImageToText', ImageToImage = 'ImageToImage', ImageWithMask = 'ImageWithMask', VAE = 'VAE', } export class ProviderModelDefaults { public id: string; public apiModels: { [index:string]: string; } = {}; public url: string; public quality?: number; public aspectRatio: string; public cfgScale?: number; public scheduler: string; public sampler?: ComfySampler; public width?: number; public height?: number; public steps?: number; public negativePrompt: string; public modelType?: ModelType; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class QueryResponse { // @DataMember(Order=1) public offset: number; // @DataMember(Order=2) public total: number; // @DataMember(Order=3) public results: T[]; // @DataMember(Order=4) public meta: { [index:string]: string; }; // @DataMember(Order=5) public responseStatus: ResponseStatus; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class QueryGenerationModelSettings extends QueryDb implements IReturn> { public id: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'QueryGenerationModelSettings'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } }