import{Model,ModelObject}from"./index.mjs";class DiffusionModel extends ModelObject{static alwaysInclude=!0;static apiInclude=["refiner","inpainter","lora","lycoris","inversion","scheduler","vae","config","motion_module"];static apiRoot="models";static apiScope=["name"];getStatus(){return this.queryModel("get",`${this.url}/status`)}get defaultConfiguration(){let e={};if(Array.isArray(this.config))for(let o of this.config)e[o.configuration_key]=o.configuration_value;return e}}class DiffusionModelRefiner extends ModelObject{}class DiffusionModelScheduler extends ModelObject{}class DiffusionModelVAE extends ModelObject{}class DiffusionModelInpainter extends ModelObject{}class DiffusionModelInversion extends ModelObject{}class DiffusionModelLora extends ModelObject{}class DiffusionModelLycoris extends ModelObject{}class DiffusionModelMotionModule extends ModelObject{}class DiffusionModelDefaultConfiguration extends ModelObject{}class DiffusionInvocation extends ModelObject{static apiRoot="invocation-history";static apiScope=["id"]}class User extends ModelObject{static alwaysInclude=!0;static apiRoot="users";static apiScope=["username"];static apiInclude=["permission_groups","permission_groups.group"]}class UserPermission extends ModelObject{}class UserPermissionGroup extends ModelObject{}class PermissionGroup extends ModelObject{}class EnfugueModel extends Model{static modelObjects=[DiffusionModel,DiffusionModelRefiner,DiffusionModelInpainter,DiffusionModelInversion,DiffusionModelScheduler,DiffusionModelMotionModule,DiffusionModelDefaultConfiguration,DiffusionModelVAE,DiffusionModelLora,DiffusionModelLycoris,DiffusionInvocation,User,UserPermission,UserPermissionGroup,PermissionGroup]}export{EnfugueModel as Model,ModelObject};
