/* Options: Date: 2025-01-08 03:21:53 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: SearchArtifacts.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using BlazorDiffusion.ServiceModel; namespace BlazorDiffusion.ServiceModel { public partial class Artifact : AuditBase { public virtual int Id { get; set; } [References(typeof(BlazorDiffusion.ServiceModel.Creative))] public virtual int CreativeId { get; set; } public virtual string FileName { get; set; } public virtual string FilePath { get; set; } public virtual string ContentType { get; set; } public virtual long ContentLength { get; set; } public virtual int Width { get; set; } public virtual int Height { get; set; } public virtual ulong Seed { get; set; } public virtual string Prompt { get; set; } public virtual bool? Nsfw { get; set; } public virtual long? AverageHash { get; set; } public virtual long? PerceptualHash { get; set; } public virtual long? DifferenceHash { get; set; } public virtual string Background { get; set; } public virtual string Lqip { get; set; } public virtual int Quality { get; set; } public virtual int LikesCount { get; set; } public virtual int AlbumsCount { get; set; } public virtual int DownloadsCount { get; set; } public virtual int SearchCount { get; set; } public virtual int TemporalScore { get; set; } public virtual int Score { get; set; } public virtual int Rank { get; set; } public virtual string RefId { get; set; } public virtual Dictionary Versions { get; set; } = new(); } public partial class ArtifactResult : Artifact { public virtual string UserPrompt { get; set; } public virtual List ArtistNames { get; set; } = []; public virtual List ModifierNames { get; set; } = []; public virtual int? PrimaryArtifactId { get; set; } public virtual string OwnerRef { get; set; } public virtual double? Similarity { get; set; } } public partial class Artist : AuditBase { public virtual int Id { get; set; } public virtual string FirstName { get; set; } public virtual string LastName { get; set; } public virtual int? YearDied { get; set; } public virtual List Type { get; set; } public virtual int Score { get; set; } public virtual int Rank { get; set; } } public partial class Creative : AuditBase { public virtual int Id { get; set; } public virtual string UserPrompt { get; set; } public virtual string Prompt { get; set; } public virtual int Images { get; set; } public virtual int Width { get; set; } public virtual int Height { get; set; } public virtual int Steps { get; set; } public virtual int? CuratedArtifactId { get; set; } public virtual int? PrimaryArtifactId { get; set; } public virtual List ArtistNames { get; set; } = []; public virtual List ModifierNames { get; set; } = []; public virtual List Artists { get; set; } = []; public virtual List Modifiers { get; set; } = []; public virtual List Artifacts { get; set; } = []; public virtual string Error { get; set; } public virtual int? OwnerId { get; set; } public virtual string OwnerRef { get; set; } public virtual string Key { get; set; } public virtual bool Curated { get; set; } public virtual int? Rating { get; set; } public virtual bool Private { get; set; } public virtual int Score { get; set; } public virtual int Rank { get; set; } public virtual string RefId { get; set; } public virtual string RequestId { get; set; } public virtual string EngineId { get; set; } } [ValidateRequest("HasRole(`Moderator`)")] public partial class CreativeArtist { public virtual int Id { get; set; } [References(typeof(BlazorDiffusion.ServiceModel.Creative))] public virtual int CreativeId { get; set; } [References(typeof(BlazorDiffusion.ServiceModel.Artist))] public virtual int ArtistId { get; set; } public virtual Artist Artist { get; set; } } public partial class CreativeModifier { public virtual int Id { get; set; } [References(typeof(BlazorDiffusion.ServiceModel.Creative))] public virtual int CreativeId { get; set; } [References(typeof(BlazorDiffusion.ServiceModel.Modifier))] public virtual int ModifierId { get; set; } public virtual Modifier Modifier { get; set; } } public partial class Modifier : AuditBase { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string Category { get; set; } public virtual string Description { get; set; } public virtual int Score { get; set; } public virtual int Rank { get; set; } } public partial class SearchArtifacts : QueryDb, IReturn> { public virtual string Query { get; set; } public virtual string Similar { get; set; } public virtual string By { get; set; } public virtual string User { get; set; } public virtual string Show { get; set; } public virtual string Modifier { get; set; } public virtual string Artist { get; set; } public virtual string Album { get; set; } public virtual string Source { get; set; } } }