diff --git a/AiServer.ServiceModel/Generations.cs b/AiServer.ServiceModel/Generations.cs index 536cae9..34f2f39 100644 --- a/AiServer.ServiceModel/Generations.cs +++ b/AiServer.ServiceModel/Generations.cs @@ -14,28 +14,19 @@ public class ActiveMediaModels : IGet, IReturn {} [Description("Transcribe audio content to text")] public class SpeechToText : IGeneration, IReturn { - [ApiMember(Description = "The audio stream containing the speech to be transcribed", ParameterType = "body")] + [ApiMember(Description = "The audio stream containing the speech to be transcribed")] [Description("The audio stream containing the speech to be transcribed")] [Required] [Input(Type = "file")] public Stream Speech { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] - [Description("Optional state to associate with the request")] - [Input(Type = "hidden")] - public string? State { get; set; } } [ValidateApiKey] @@ -44,32 +35,23 @@ public class SpeechToText : IGeneration, IReturn [Description("Generate speech audio from text input")] public class TextToSpeech : IGeneration, IReturn { - [ApiMember(Description = "The text to be converted to speech", ParameterType = "body")] + [ApiMember(Description = "The text to be converted to speech")] [Description("The text to be converted to speech")] [Required] public string Text { get; set; } - [ApiMember(Description = "Optional seed for reproducible results in speech generation", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results in speech generation")] [Description("Optional seed for reproducible results in speech generation")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] - [Description("Optional state to associate with the request")] - [Input(Type = "hidden")] - public string? State { get; set; } } [ValidateApiKey] @@ -78,57 +60,48 @@ public class TextToSpeech : IGeneration, IReturn [Description("Create an image based on a text prompt")] public class TextToImage : IGeneration, IReturn { - [ApiMember(Description = "The main prompt describing the desired image", ParameterType = "body")] + [ApiMember(Description = "The main prompt describing the desired image")] [Description("The main prompt describing the desired image")] [ValidateNotEmpty] [Input(Type = "textarea")] public string PositivePrompt { get; set; } - [ApiMember(Description = "Optional prompt specifying what should not be in the image", ParameterType = "body")] + [ApiMember(Description = "Optional prompt specifying what should not be in the image")] [Description("Optional prompt specifying what should not be in the image")] [Input(Type = "textarea")] public string? NegativePrompt { get; set; } - [ApiMember(Description = "Desired width of the generated image", ParameterType = "query")] + [ApiMember(Description = "Desired width of the generated image")] [Description("Desired width of the generated image")] [Range(64, 2048)] public int? Width { get; set; } - [ApiMember(Description = "Desired height of the generated image", ParameterType = "query")] + [ApiMember(Description = "Desired height of the generated image")] [Description("Desired height of the generated image")] [Range(64, 2048)] public int? Height { get; set; } - [ApiMember(Description = "Number of images to generate in a single batch", ParameterType = "query")] + [ApiMember(Description = "Number of images to generate in a single batch")] [Description("Number of images to generate in a single batch")] [Range(1, 10)] public int? BatchSize { get; set; } - [ApiMember(Description = "The AI model to use for image generation", ParameterType = "query")] + [ApiMember(Description = "The AI model to use for image generation")] [Description("The AI model to use for image generation")] public string? Model { get; set; } - [ApiMember(Description = "Optional seed for reproducible results", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results")] [Description("Optional seed for reproducible results")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] - [Description("Optional state to associate with the request")] - [Input(Type = "hidden")] - public string? State { get; set; } } [ValidateApiKey] @@ -137,54 +110,45 @@ public class TextToImage : IGeneration, IReturn [Description("Create a new image based on an existing image and a text prompt")] public class ImageToImage : IGeneration, IReturn { - [ApiMember(Description = "The image to use as input", ParameterType = "body")] + [ApiMember(Description = "The image to use as input")] [Description("The image to use as input")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "Prompt describing the desired output", ParameterType = "body")] + [ApiMember(Description = "Prompt describing the desired output")] [Description("Prompt describing the desired output")] [ValidateNotEmpty] [Input(Type = "textarea")] public string PositivePrompt { get; set; } - [ApiMember(Description = "Negative prompt describing what should not be in the image", ParameterType = "body")] + [ApiMember(Description = "Negative prompt describing what should not be in the image")] [Description("Negative prompt describing what should not be in the image")] [Input(Type = "textarea")] public string? NegativePrompt { get; set; } - [ApiMember(Description = "Optional specific amount of denoise to apply", ParameterType = "query")] + [ApiMember(Description = "Optional specific amount of denoise to apply")] [Description("Optional specific amount of denoise to apply")] [Range(0, 1)] public float? Denoise { get; set; } - [ApiMember(Description = "Number of images to generate in a single batch", ParameterType = "query")] + [ApiMember(Description = "Number of images to generate in a single batch")] [Description("Number of images to generate in a single batch")] [Range(1, 10)] public int? BatchSize { get; set; } - [ApiMember(Description = "Optional seed for reproducible results in image generation", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results in image generation")] [Description("Optional seed for reproducible results in image generation")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] - [Description("Optional state to associate with the request")] - [Input(Type = "hidden")] - public string? State { get; set; } } [ValidateApiKey] @@ -193,33 +157,24 @@ public class ImageToImage : IGeneration, IReturn [Description("Increase the resolution and quality of an input image")] public class ImageUpscale : IGeneration, IReturn { - [ApiMember(Description = "The image to upscale", ParameterType = "body")] + [ApiMember(Description = "The image to upscale")] [Description("The image to upscale")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "Optional seed for reproducible results in image generation", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results in image generation")] [Description("Optional seed for reproducible results in image generation")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] - [Description("Optional state to associate with the request")] - [Input(Type = "hidden")] - public string? State { get; set; } } [ValidateApiKey] @@ -228,55 +183,46 @@ public class ImageUpscale : IGeneration, IReturn [Description("Create a new image by applying a mask to an existing image and generating content for the masked area")] public class ImageWithMask : IGeneration, IReturn { - [ApiMember(Description = "Prompt describing the desired output in the masked area", ParameterType = "body")] + [ApiMember(Description = "Prompt describing the desired output in the masked area")] [Description("Prompt describing the desired output in the masked area")] [ValidateNotEmpty] [Input(Type = "textarea")] public string PositivePrompt { get; set; } - [ApiMember(Description = "Negative prompt describing what should not be in the masked area", ParameterType = "body")] + [ApiMember(Description = "Negative prompt describing what should not be in the masked area")] [Description("Negative prompt describing what should not be in the masked area")] [Input(Type = "textarea")] public string? NegativePrompt { get; set; } - [ApiMember(Description = "The image to use as input", ParameterType = "body")] + [ApiMember(Description = "The image to use as input")] [Description("The image to use as input")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "The mask to use as input", ParameterType = "body")] + [ApiMember(Description = "The mask to use as input")] [Description("The mask to use as input")] [Required] [Input(Type = "file")] public Stream Mask { get; set; } - [ApiMember(Description = "Optional specific amount of denoise to apply", ParameterType = "query")] + [ApiMember(Description = "Optional specific amount of denoise to apply")] [Description("Optional specific amount of denoise to apply")] [Range(0, 1)] public float? Denoise { get; set; } - [ApiMember(Description = "Optional seed for reproducible results in image generation", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results in image generation")] [Description("Optional seed for reproducible results in image generation")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] - [Description("Optional state to associate with the request")] - [Input(Type = "hidden")] - public string? State { get; set; } } [ValidateApiKey] @@ -285,28 +231,19 @@ public class ImageWithMask : IGeneration, IReturn [Description("Extract text content from an image")] public class ImageToText : IGeneration, IReturn { - [ApiMember(Description = "The image to convert to text", ParameterType = "body")] + [ApiMember(Description = "The image to convert to text")] [Description("The image to convert to text")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] - [Description("Optional state to associate with the request")] - [Input(Type = "hidden")] - public string? State { get; set; } } [Description("Response object for generation requests")] @@ -328,8 +265,5 @@ public class GenerationResponse public interface IGeneration { string? RefId { get; set; } - string? ReplyTo { get; set; } - string? State { get; set; } - string? Tag { get; set; } } \ No newline at end of file diff --git a/AiServer.ServiceModel/MediaTransforms.cs b/AiServer.ServiceModel/MediaTransforms.cs index a964e04..d0669dc 100644 --- a/AiServer.ServiceModel/MediaTransforms.cs +++ b/AiServer.ServiceModel/MediaTransforms.cs @@ -9,31 +9,27 @@ namespace AiServer.ServiceModel; [Description("Scale a video to specified dimensions")] public class ScaleVideo : IMediaTransform, IReturn { - [ApiMember(Description = "The video file to be scaled", ParameterType = "body")] + [ApiMember(Description = "The video file to be scaled")] [Description("The video file to be scaled")] [Required] [Input(Type = "file")] public Stream? Video { get; set; } - [ApiMember(Description = "Desired width of the scaled video", ParameterType = "query")] + [ApiMember(Description = "Desired width of the scaled video")] [Description("Desired width of the scaled video")] [Range(1, 7680)] // Assuming 8K as max resolution public int? Width { get; set; } - [ApiMember(Description = "Desired height of the scaled video", ParameterType = "query")] + [ApiMember(Description = "Desired height of the scaled video")] [Description("Desired height of the scaled video")] [Range(1, 4320)] // Assuming 8K as max resolution public int? Height { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -44,31 +40,27 @@ public class ScaleVideo : IMediaTransform, IReturn [Description("Add a watermark to a video")] public class WatermarkVideo : IMediaTransform, IReturn { - [ApiMember(Description = "The video file to be watermarked", ParameterType = "body")] + [ApiMember(Description = "The video file to be watermarked")] [Description("The video file to be watermarked")] [Required] [Input(Type = "file")] public Stream? Video { get; set; } - [ApiMember(Description = "The image file to use as a watermark", ParameterType = "body")] + [ApiMember(Description = "The image file to use as a watermark")] [Description("The image file to use as a watermark")] [Required] [Input(Type = "file")] public Stream? Watermark { get; set; } - [ApiMember(Description = "Position of the watermark", ParameterType = "query")] + [ApiMember(Description = "Position of the watermark")] [Description("Position of the watermark")] public WatermarkPosition? Position { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -86,90 +78,122 @@ public enum WatermarkPosition [Description("Convert an image to a different format")] [Tag("Media")] [ValidateApiKey] -public class ConvertImage : IPost, IReturn +public class ConvertImage : IMediaTransform, IPost, IReturn { - [ApiMember(Description = "The image file to be converted", ParameterType = "body")] + [ApiMember(Description = "The image file to be converted")] [Description("The image file to be converted")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "The desired output format for the converted image", ParameterType = "query")] + [ApiMember(Description = "The desired output format for the converted image")] [Description("The desired output format for the converted image")] [Required] public ImageOutputFormat? OutputFormat { get; set; } + + [ApiMember(Description = "Optional client-provided identifier for the request")] + [Description("Optional client-provided identifier for the request")] + public string? RefId { get; set; } + + [ApiMember(Description = "Tag to identify the request")] + [Description("Tag to identify the request")] + public string? Tag { get; set; } } [Description("Crop an image to a specified area")] [Tag("Media")] [ValidateApiKey] -public class CropImage : IPost, IReturn +public class CropImage : IMediaTransform, IPost, IReturn { - [ApiMember(Description = "The X-coordinate of the top-left corner of the crop area", ParameterType = "query")] + [ApiMember(Description = "The X-coordinate of the top-left corner of the crop area")] [Description("The X-coordinate of the top-left corner of the crop area")] public int X { get; set; } - [ApiMember(Description = "The Y-coordinate of the top-left corner of the crop area", ParameterType = "query")] + [ApiMember(Description = "The Y-coordinate of the top-left corner of the crop area")] [Description("The Y-coordinate of the top-left corner of the crop area")] public int Y { get; set; } - [ApiMember(Description = "The width of the crop area", ParameterType = "query")] + [ApiMember(Description = "The width of the crop area")] [Description("The width of the crop area")] public int Width { get; set; } - [ApiMember(Description = "The height of the crop area", ParameterType = "query")] + [ApiMember(Description = "The height of the crop area")] [Description("The height of the crop area")] public int Height { get; set; } - [ApiMember(Description = "The image file to be cropped", ParameterType = "body")] + [ApiMember(Description = "The image file to be cropped")] [Description("The image file to be cropped")] [Required] [Input(Type = "file")] public Stream Image { get; set; } + + [ApiMember(Description = "Optional client-provided identifier for the request")] + [Description("Optional client-provided identifier for the request")] + public string? RefId { get; set; } + + [ApiMember(Description = "Tag to identify the request")] + [Description("Tag to identify the request")] + public string? Tag { get; set; } } [Description("Scale an image to a specified size")] [Tag("Media")] [ValidateApiKey] -public class ScaleImage : IPost, IReturn +public class ScaleImage : IMediaTransform, IPost, IReturn { - [ApiMember(Description = "The image file to be scaled", ParameterType = "body")] + [ApiMember(Description = "The image file to be scaled")] [Description("The image file to be scaled")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "Desired width of the scaled image", ParameterType = "query")] + [ApiMember(Description = "Desired width of the scaled image")] [Description("Desired width of the scaled image")] public int? Width { get; set; } - [ApiMember(Description = "Desired height of the scaled image", ParameterType = "query")] + [ApiMember(Description = "Desired height of the scaled image")] [Description("Desired height of the scaled image")] public int? Height { get; set; } + + [ApiMember(Description = "Optional client-provided identifier for the request")] + [Description("Optional client-provided identifier for the request")] + public string? RefId { get; set; } + + [ApiMember(Description = "Tag to identify the request")] + [Description("Tag to identify the request")] + public string? Tag { get; set; } } [Description("Add a watermark to an image")] [Tag("Media")] [ValidateApiKey] -public class WatermarkImage : IPost, IReturn +public class WatermarkImage : IMediaTransform, IPost, IReturn { - [ApiMember(Description = "The image file to be watermarked", ParameterType = "body")] + [ApiMember(Description = "The image file to be watermarked")] [Description("The image file to be watermarked")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "The position of the watermark on the image", ParameterType = "query")] + [ApiMember(Description = "The position of the watermark on the image")] [Description("The position of the watermark on the image")] public WatermarkPosition Position { get; set; } - [ApiMember(Description = "Scale of the watermark relative", ParameterType = "query")] + [ApiMember(Description = "Scale of the watermark relative")] [Description("Scale of the watermark relative")] public float WatermarkScale { get; set; } = 1.0f; - [ApiMember(Description = "The opacity of the watermark (0.0 to 1.0)", ParameterType = "query")] + [ApiMember(Description = "The opacity of the watermark (0.0 to 1.0)")] [Description("The opacity of the watermark (0.0 to 1.0)")] public float Opacity { get; set; } = 0.5f; + + [ApiMember(Description = "Optional client-provided identifier for the request")] + [Description("Optional client-provided identifier for the request")] + public string? RefId { get; set; } + + [ApiMember(Description = "Tag to identify the request")] + [Description("Tag to identify the request")] + public string? Tag { get; set; } } [Description("Convert a video to a different format")] @@ -177,7 +201,7 @@ public class WatermarkImage : IPost, IReturn [ValidateApiKey] public class ConvertVideo : IMediaTransform, IReturn { - [ApiMember(Description = "The desired output format for the converted video", ParameterType = "query")] + [ApiMember(Description = "The desired output format for the converted video")] [Description("The desired output format for the converted video")] [Required] public ConvertVideoOutputFormat OutputFormat { get; set; } @@ -186,15 +210,11 @@ public class ConvertVideo : IMediaTransform, IReturn [Input(Type = "file")] public Stream Video { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -204,25 +224,25 @@ public class ConvertVideo : IMediaTransform, IReturn [ValidateApiKey] public class CropVideo : IMediaTransform, IReturn { - [ApiMember(Description = "The X-coordinate of the top-left corner of the crop area", ParameterType = "query")] + [ApiMember(Description = "The X-coordinate of the top-left corner of the crop area")] [Description("The X-coordinate of the top-left corner of the crop area")] [ValidateGreaterThan(0)] [Required] public int X { get; set; } - [ApiMember(Description = "The Y-coordinate of the top-left corner of the crop area", ParameterType = "query")] + [ApiMember(Description = "The Y-coordinate of the top-left corner of the crop area")] [Description("The Y-coordinate of the top-left corner of the crop area")] [ValidateGreaterThan(0)] [Required] public int Y { get; set; } - [ApiMember(Description = "The width of the crop area", ParameterType = "query")] + [ApiMember(Description = "The width of the crop area")] [Description("The width of the crop area")] [ValidateGreaterThan(0)] [Required] public int Width { get; set; } - [ApiMember(Description = "The height of the crop area", ParameterType = "query")] + [ApiMember(Description = "The height of the crop area")] [Description("The height of the crop area")] [ValidateGreaterThan(0)] [Required] @@ -232,15 +252,11 @@ public class CropVideo : IMediaTransform, IReturn [Input(Type = "file")] public Stream Video { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -250,12 +266,12 @@ public class CropVideo : IMediaTransform, IReturn [ValidateApiKey] public class TrimVideo : IMediaTransform, IReturn { - [ApiMember(Description = "The start time of the trimmed video (format: HH:MM:SS)", ParameterType = "query")] + [ApiMember(Description = "The start time of the trimmed video (format: HH:MM:SS)")] [Description("The start time of the trimmed video (format: HH:MM:SS)")] [Required] public string StartTime { get; set; } - [ApiMember(Description = "The end time of the trimmed video (format: HH:MM:SS)", ParameterType = "query")] + [ApiMember(Description = "The end time of the trimmed video (format: HH:MM:SS)")] [Description("The end time of the trimmed video (format: HH:MM:SS)")] public string? EndTime { get; set; } @@ -263,15 +279,11 @@ public class TrimVideo : IMediaTransform, IReturn [Input(Type = "file")] public Stream Video { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -281,7 +293,7 @@ public class TrimVideo : IMediaTransform, IReturn [ValidateApiKey] public class ConvertAudio : IMediaTransform, IReturn { - [ApiMember(Description = "The desired output format for the converted audio", ParameterType = "query")] + [ApiMember(Description = "The desired output format for the converted audio")] [Description("The desired output format for the converted audio")] [Required] public AudioFormat OutputFormat { get; set; } @@ -290,15 +302,11 @@ public class ConvertAudio : IMediaTransform, IReturn [Input(Type = "file")] public Stream Audio { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] - [Description("Optional queue or topic to reply to")] - public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -307,7 +315,6 @@ public interface IMediaTransform { public string? RefId { get; set; } public string? Tag { get; set; } - public string? ReplyTo { get; set; } } [Description("Response object for transform requests")] diff --git a/AiServer.ServiceModel/QueueGenerations.cs b/AiServer.ServiceModel/QueueGenerations.cs index 6c3f4be..01e63a9 100644 --- a/AiServer.ServiceModel/QueueGenerations.cs +++ b/AiServer.ServiceModel/QueueGenerations.cs @@ -10,25 +10,25 @@ namespace AiServer.ServiceModel; [Description("Transcribe audio content to text")] public class QueueSpeechToText : IQueueGeneration, IReturn { - [ApiMember(Description = "The audio stream containing the speech to be transcribed", ParameterType = "body")] + [ApiMember(Description = "The audio stream containing the speech to be transcribed")] [Description("The audio stream containing the speech to be transcribed")] [Required] [Input(Type = "file")] public Stream Speech { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] + [ApiMember(Description = "Optional state to associate with the request")] [Description("Optional state to associate with the request")] [Input(Type = "hidden")] public string? State { get; set; } @@ -40,33 +40,33 @@ public class QueueSpeechToText : IQueueGeneration, IReturn { - [ApiMember(Description = "The text to be converted to speech", ParameterType = "body")] + [ApiMember(Description = "The text to be converted to speech")] [Description("The text to be converted to speech")] [Required] public string Text { get; set; } - [ApiMember(Description = "Optional seed for reproducible results in speech generation", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results in speech generation")] [Description("Optional seed for reproducible results in speech generation")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "The AI model to use for speech generation", ParameterType = "query")] + [ApiMember(Description = "The AI model to use for speech generation")] [Description("The AI model to use for speech generation")] public string? Model { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] + [ApiMember(Description = "Optional state to associate with the request")] [Description("Optional state to associate with the request")] [Input(Type = "hidden")] public string? State { get; set; } @@ -78,54 +78,54 @@ public class QueueTextToSpeech : IQueueGeneration, IReturn { - [ApiMember(Description = "The main prompt describing the desired image", ParameterType = "body")] + [ApiMember(Description = "The main prompt describing the desired image")] [Description("The main prompt describing the desired image")] [ValidateNotEmpty] [Input(Type = "textarea")] public string PositivePrompt { get; set; } - [ApiMember(Description = "Optional prompt specifying what should not be in the image", ParameterType = "body")] + [ApiMember(Description = "Optional prompt specifying what should not be in the image")] [Description("Optional prompt specifying what should not be in the image")] [Input(Type = "textarea")] public string? NegativePrompt { get; set; } - [ApiMember(Description = "Desired width of the generated image", ParameterType = "query")] + [ApiMember(Description = "Desired width of the generated image")] [Description("Desired width of the generated image")] [Range(64, 2048)] public int? Width { get; set; } - [ApiMember(Description = "Desired height of the generated image", ParameterType = "query")] + [ApiMember(Description = "Desired height of the generated image")] [Description("Desired height of the generated image")] [Range(64, 2048)] public int? Height { get; set; } - [ApiMember(Description = "Number of images to generate in a single batch", ParameterType = "query")] + [ApiMember(Description = "Number of images to generate in a single batch")] [Description("Number of images to generate in a single batch")] [Range(1, 10)] public int? BatchSize { get; set; } - [ApiMember(Description = "The AI model to use for image generation", ParameterType = "query")] + [ApiMember(Description = "The AI model to use for image generation")] [Description("The AI model to use for image generation")] public string? Model { get; set; } - [ApiMember(Description = "Optional seed for reproducible results", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results")] [Description("Optional seed for reproducible results")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] + [ApiMember(Description = "Optional state to associate with the request")] [Description("Optional state to associate with the request")] [Input(Type = "hidden")] public string? State { get; set; } @@ -137,52 +137,52 @@ public class QueueTextToImage : IQueueGeneration, IReturn { - [ApiMember(Description = "The image to use as input", ParameterType = "body")] + [ApiMember(Description = "The image to use as input")] [Description("The image to use as input")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "Prompt describing the desired output", ParameterType = "body")] + [ApiMember(Description = "Prompt describing the desired output")] [Description("Prompt describing the desired output")] [ValidateNotEmpty] [Input(Type = "textarea")] public string PositivePrompt { get; set; } - [ApiMember(Description = "Negative prompt describing what should not be in the image", ParameterType = "body")] + [ApiMember(Description = "Negative prompt describing what should not be in the image")] [Description("Negative prompt describing what should not be in the image")] [Input(Type = "textarea")] public string? NegativePrompt { get; set; } - [ApiMember(Description = "Optional specific amount of denoise to apply", ParameterType = "query")] + [ApiMember(Description = "Optional specific amount of denoise to apply")] [Description("Optional specific amount of denoise to apply")] [Range(0, 1)] public float? Denoise { get; set; } - [ApiMember(Description = "Number of images to generate in a single batch", ParameterType = "query")] + [ApiMember(Description = "Number of images to generate in a single batch")] [Description("Number of images to generate in a single batch")] [Range(1, 10)] public int? BatchSize { get; set; } - [ApiMember(Description = "Optional seed for reproducible results in image generation", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results in image generation")] [Description("Optional seed for reproducible results in image generation")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] + [ApiMember(Description = "Optional state to associate with the request")] [Description("Optional state to associate with the request")] [Input(Type = "hidden")] public string? State { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -193,30 +193,30 @@ public class QueueImageToImage : IQueueGeneration, IReturn { - [ApiMember(Description = "The image to upscale", ParameterType = "body")] + [ApiMember(Description = "The image to upscale")] [Description("The image to upscale")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "Optional seed for reproducible results in image generation", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results in image generation")] [Description("Optional seed for reproducible results in image generation")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] + [ApiMember(Description = "Optional state to associate with the request")] [Description("Optional state to associate with the request")] [Input(Type = "hidden")] public string? State { get; set; } @@ -228,52 +228,52 @@ public class QueueImageUpscale : IQueueGeneration, IReturn { - [ApiMember(Description = "Prompt describing the desired output in the masked area", ParameterType = "body")] + [ApiMember(Description = "Prompt describing the desired output in the masked area")] [Description("Prompt describing the desired output in the masked area")] [ValidateNotEmpty] [Input(Type = "textarea")] public string PositivePrompt { get; set; } - [ApiMember(Description = "Negative prompt describing what should not be in the masked area", ParameterType = "body")] + [ApiMember(Description = "Negative prompt describing what should not be in the masked area")] [Description("Negative prompt describing what should not be in the masked area")] [Input(Type = "textarea")] public string? NegativePrompt { get; set; } - [ApiMember(Description = "The image to use as input", ParameterType = "body")] + [ApiMember(Description = "The image to use as input")] [Description("The image to use as input")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "The mask to use as input", ParameterType = "body")] + [ApiMember(Description = "The mask to use as input")] [Description("The mask to use as input")] [Required] [Input(Type = "file")] public Stream Mask { get; set; } - [ApiMember(Description = "Optional specific amount of denoise to apply", ParameterType = "query")] + [ApiMember(Description = "Optional specific amount of denoise to apply")] [Description("Optional specific amount of denoise to apply")] [Range(0, 1)] public float? Denoise { get; set; } - [ApiMember(Description = "Optional seed for reproducible results in image generation", ParameterType = "query")] + [ApiMember(Description = "Optional seed for reproducible results in image generation")] [Description("Optional seed for reproducible results in image generation")] [Range(0, int.MaxValue)] public int? Seed { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] + [ApiMember(Description = "Optional state to associate with the request")] [Description("Optional state to associate with the request")] [Input(Type = "hidden")] public string? State { get; set; } @@ -285,25 +285,25 @@ public class QueueImageWithMask : IQueueGeneration, IReturn { - [ApiMember(Description = "The image to convert to text", ParameterType = "body")] + [ApiMember(Description = "The image to convert to text")] [Description("The image to convert to text")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } - [ApiMember(Description = "Optional state to associate with the request", ParameterType = "query")] + [ApiMember(Description = "Optional state to associate with the request")] [Description("Optional state to associate with the request")] [Input(Type = "hidden")] public string? State { get; set; } @@ -327,11 +327,11 @@ public interface IQueueGeneration [Description("Retrieve the status of a background job")] public class GetJobStatus : IReturn { - [ApiMember(Description = "Unique identifier of the background job", ParameterType = "query")] + [ApiMember(Description = "Unique identifier of the background job")] [Description("Unique identifier of the background job")] public long? JobId { get; set; } - [ApiMember(Description = "Client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Client-provided identifier for the request")] [Description("Client-provided identifier for the request")] public string? RefId { get; set; } } diff --git a/AiServer.ServiceModel/QueueMediaTransforms.cs b/AiServer.ServiceModel/QueueMediaTransforms.cs index 3630b90..45c39be 100644 --- a/AiServer.ServiceModel/QueueMediaTransforms.cs +++ b/AiServer.ServiceModel/QueueMediaTransforms.cs @@ -11,31 +11,31 @@ namespace AiServer.ServiceModel; [Description("Scale a video to specified dimensions")] public class QueueScaleVideo : IQueueMediaTransform, IReturn { - [ApiMember(Description = "The video file to be scaled", ParameterType = "body")] + [ApiMember(Description = "The video file to be scaled")] [Description("The video file to be scaled")] [Required] [Input(Type = "file")] public Stream? Video { get; set; } - [ApiMember(Description = "Desired width of the scaled video", ParameterType = "query")] + [ApiMember(Description = "Desired width of the scaled video")] [Description("Desired width of the scaled video")] [Range(1, 7680)] // Assuming 8K as max resolution public int? Width { get; set; } - [ApiMember(Description = "Desired height of the scaled video", ParameterType = "query")] + [ApiMember(Description = "Desired height of the scaled video")] [Description("Desired height of the scaled video")] [Range(1, 4320)] // Assuming 8K as max resolution public int? Height { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -46,31 +46,31 @@ public class QueueScaleVideo : IQueueMediaTransform, IReturn { - [ApiMember(Description = "The video file to be watermarked", ParameterType = "body")] + [ApiMember(Description = "The video file to be watermarked")] [Description("The video file to be watermarked")] [Required] [Input(Type = "file")] public Stream? Video { get; set; } - [ApiMember(Description = "The image file to use as a watermark", ParameterType = "body")] + [ApiMember(Description = "The image file to use as a watermark")] [Description("The image file to use as a watermark")] [Required] [Input(Type = "file")] public Stream? Watermark { get; set; } - [ApiMember(Description = "Position of the watermark", ParameterType = "query")] + [ApiMember(Description = "Position of the watermark")] [Description("Position of the watermark")] public WatermarkPosition? Position { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -111,27 +111,27 @@ public class QueueMediaTransformResponse [ValidateApiKey] public class QueueConvertImage : IQueueMediaTransform, IPost, IReturn { - [ApiMember(Description = "The image file to be converted", ParameterType = "body")] + [ApiMember(Description = "The image file to be converted")] [Description("The image file to be converted")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "The desired output format for the converted image", ParameterType = "query")] + [ApiMember(Description = "The desired output format for the converted image")] [Description("The desired output format for the converted image")] [Required] public ImageOutputFormat? OutputFormat { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -141,38 +141,38 @@ public class QueueConvertImage : IQueueMediaTransform, IPost, IReturn { - [ApiMember(Description = "The X-coordinate of the top-left corner of the crop area", ParameterType = "query")] + [ApiMember(Description = "The X-coordinate of the top-left corner of the crop area")] [Description("The X-coordinate of the top-left corner of the crop area")] public int X { get; set; } - [ApiMember(Description = "The Y-coordinate of the top-left corner of the crop area", ParameterType = "query")] + [ApiMember(Description = "The Y-coordinate of the top-left corner of the crop area")] [Description("The Y-coordinate of the top-left corner of the crop area")] public int Y { get; set; } - [ApiMember(Description = "The width of the crop area", ParameterType = "query")] + [ApiMember(Description = "The width of the crop area")] [Description("The width of the crop area")] public int Width { get; set; } - [ApiMember(Description = "The height of the crop area", ParameterType = "query")] + [ApiMember(Description = "The height of the crop area")] [Description("The height of the crop area")] public int Height { get; set; } - [ApiMember(Description = "The image file to be cropped", ParameterType = "body")] + [ApiMember(Description = "The image file to be cropped")] [Description("The image file to be cropped")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -182,33 +182,33 @@ public class QueueCropImage : IQueueMediaTransform, IPost, IReturn { - [ApiMember(Description = "The image file to be watermarked", ParameterType = "body")] + [ApiMember(Description = "The image file to be watermarked")] [Description("The image file to be watermarked")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "The position of the watermark on the image", ParameterType = "query")] + [ApiMember(Description = "The position of the watermark on the image")] [Description("The position of the watermark on the image")] public WatermarkPosition Position { get; set; } - [ApiMember(Description = "The opacity of the watermark (0.0 to 1.0)", ParameterType = "query")] + [ApiMember(Description = "The opacity of the watermark (0.0 to 1.0)")] [Description("The opacity of the watermark (0.0 to 1.0)")] public float Opacity { get; set; } = 0.5f; - [ApiMember(Description = "Scale of the watermark relative", ParameterType = "query")] + [ApiMember(Description = "Scale of the watermark relative")] [Description("Scale of the watermark relative")] public float WatermarkScale { get; set; } = 1.0f; - [ApiMember(Description = "Optional client-provided identifier for the request", ParameterType = "query")] + [ApiMember(Description = "Optional client-provided identifier for the request")] [Description("Optional client-provided identifier for the request")] public string? RefId { get; set; } - [ApiMember(Description = "Optional queue or topic to reply to", ParameterType = "query")] + [ApiMember(Description = "Optional queue or topic to reply to")] [Description("Optional queue or topic to reply to")] public string? ReplyTo { get; set; } - [ApiMember(Description = "Tag to identify the request", ParameterType = "query")] + [ApiMember(Description = "Tag to identify the request")] [Description("Tag to identify the request")] public string? Tag { get; set; } } @@ -218,17 +218,17 @@ public class QueueWatermarkImage : IQueueMediaTransform, IPost, IReturn { - [ApiMember(Description = "The image file to be scaled", ParameterType = "body")] + [ApiMember(Description = "The image file to be scaled")] [Description("The image file to be scaled")] [Required] [Input(Type = "file")] public Stream Image { get; set; } - [ApiMember(Description = "Desired width of the scaled image", ParameterType = "query")] + [ApiMember(Description = "Desired width of the scaled image")] [Description("Desired width of the scaled image")] public int? Width { get; set; } - [ApiMember(Description = "Desired height of the scaled image", ParameterType = "query")] + [ApiMember(Description = "Desired height of the scaled image")] [Description("Desired height of the scaled image")] public int? Height { get; set; } } @@ -238,7 +238,7 @@ public class QueueScaleImage : IPost, IReturn [ValidateApiKey] public class QueueConvertVideo : IQueueMediaTransform, IReturn { - [ApiMember(Description = "The desired output format for the converted video", ParameterType = "query")] + [ApiMember(Description = "The desired output format for the converted video")] [Description("The desired output format for the converted video")] [Required] public ConvertVideoOutputFormat OutputFormat { get; set; } @@ -247,15 +247,15 @@ public class QueueConvertVideo : IQueueMediaTransform, IReturn { - [ApiMember(Description = "The X-coordinate of the top-left corner of the crop area", ParameterType = "query")] + [ApiMember(Description = "The X-coordinate of the top-left corner of the crop area")] [Description("The X-coordinate of the top-left corner of the crop area")] [ValidateGreaterThan(0)] [Required] public int X { get; set; } - [ApiMember(Description = "The Y-coordinate of the top-left corner of the crop area", ParameterType = "query")] + [ApiMember(Description = "The Y-coordinate of the top-left corner of the crop area")] [Description("The Y-coordinate of the top-left corner of the crop area")] [ValidateGreaterThan(0)] [Required] public int Y { get; set; } - [ApiMember(Description = "The width of the crop area", ParameterType = "query")] + [ApiMember(Description = "The width of the crop area")] [Description("The width of the crop area")] [ValidateGreaterThan(0)] [Required] public int Width { get; set; } - [ApiMember(Description = "The height of the crop area", ParameterType = "query")] + [ApiMember(Description = "The height of the crop area")] [Description("The height of the crop area")] [ValidateGreaterThan(0)] [Required] @@ -293,15 +293,15 @@ public class QueueCropVideo : IQueueMediaTransform, IReturn { - [ApiMember(Description = "The start time of the trimmed video (format: HH:MM:SS)", ParameterType = "query")] + [ApiMember(Description = "The start time of the trimmed video (format: HH:MM:SS)")] [Description("The start time of the trimmed video (format: HH:MM:SS)")] [Required] public string StartTime { get; set; } - [ApiMember(Description = "The end time of the trimmed video (format: HH:MM:SS)", ParameterType = "query")] + [ApiMember(Description = "The end time of the trimmed video (format: HH:MM:SS)")] [Description("The end time of the trimmed video (format: HH:MM:SS)")] public string? EndTime { get; set; } @@ -324,15 +324,15 @@ public class QueueTrimVideo : IQueueMediaTransform, IReturn { - [ApiMember(Description = "The desired output format for the converted audio", ParameterType = "query")] + [ApiMember(Description = "The desired output format for the converted audio")] [Description("The desired output format for the converted audio")] [Required] public AudioFormat OutputFormat { get; set; } @@ -351,15 +351,15 @@ public class QueueConvertAudio : IQueueMediaTransform, IReturn