Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions src/libs/EdenAI/Generated/EdenAI.JsonSerializerContext.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ public sealed partial class SourceGenerationContext : global::System.Text.Json.S
{
private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver();


private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions();

/// <summary>
Expand All @@ -762,20 +763,24 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o
return Resolver.GetTypeInfo(type, Options);
}

private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions()
static void AddConverters(global::System.Text.Json.JsonSerializerOptions options)
{
var options = new global::System.Text.Json.JsonSerializerOptions
{
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
TypeInfoResolver = Resolver,
};
options.Converters.Add(new global::EdenAI.JsonConverters.OneOfJsonConverter<global::EdenAI.Status889Enum?, global::EdenAI.NullEnum?>());
options.Converters.Add(new global::EdenAI.JsonConverters.OneOfJsonConverter<global::EdenAI.DetailTypeEnum?, global::EdenAI.BlankEnum?, global::EdenAI.NullEnum?>());
options.Converters.Add(new global::EdenAI.JsonConverters.OneOfJsonConverter<global::EdenAI.OptionEnum?, global::EdenAI.BlankEnum?>());
options.Converters.Add(new global::EdenAI.JsonConverters.OneOfJsonConverter<global::EdenAI.OptionEnum?, global::EdenAI.BlankEnum?>());
options.Converters.Add(new global::EdenAI.JsonConverters.UnixTimestampJsonConverter());

options.Converters.Add(new LazyEnumJsonConverterFactory());
}

private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions()
{
var options = new global::System.Text.Json.JsonSerializerOptions
{
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
TypeInfoResolver = Resolver,
};
AddConverters(options);

return options;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ public sealed partial class AudiospeechToTextAsyncModel
[global::System.Text.Json.Serialization.JsonPropertyName("microsoft")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Microsoft { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("symbl")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Symbl { get; set; }

/// <summary>
///
/// </summary>
Expand All @@ -35,8 +29,8 @@ public sealed partial class AudiospeechToTextAsyncModel
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("voci")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Voci { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("deepgram")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Deepgram { get; set; }

/// <summary>
///
Expand All @@ -47,26 +41,20 @@ public sealed partial class AudiospeechToTextAsyncModel
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("openai")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Openai { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("deepgram")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Deepgram { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("symbl")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Symbl { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("google")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Google { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("assembly")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Assembly { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("assembly")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Assembly { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("voci")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Voci { get; set; }

/// <summary>
///
Expand All @@ -86,6 +74,18 @@ public sealed partial class AudiospeechToTextAsyncModel
[global::System.Text.Json.Serialization.JsonPropertyName("faker")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Faker { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("openai")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Openai { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("google")]
public global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? Google { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand All @@ -97,48 +97,48 @@ public sealed partial class AudiospeechToTextAsyncModel
/// </summary>
/// <param name="gladia"></param>
/// <param name="microsoft"></param>
/// <param name="symbl"></param>
/// <param name="amazon"></param>
/// <param name="voci"></param>
/// <param name="speechmatics"></param>
/// <param name="openai"></param>
/// <param name="deepgram"></param>
/// <param name="google"></param>
/// <param name="speechmatics"></param>
/// <param name="symbl"></param>
/// <param name="assembly"></param>
/// <param name="voci"></param>
/// <param name="voxist"></param>
/// <param name="oneai"></param>
/// <param name="faker"></param>
/// <param name="openai"></param>
/// <param name="google"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public AudiospeechToTextAsyncModel(
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? gladia,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? microsoft,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? symbl,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? amazon,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? voci,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? speechmatics,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? openai,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? deepgram,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? google,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? speechmatics,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? symbl,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? assembly,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? voci,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? voxist,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? oneai,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? faker)
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? faker,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? openai,
global::EdenAI.AudiospeechToTextAsyncSpeechToTextAsyncDataClass? google)
{
this.Gladia = gladia;
this.Microsoft = microsoft;
this.Symbl = symbl;
this.Amazon = amazon;
this.Voci = voci;
this.Speechmatics = speechmatics;
this.Openai = openai;
this.Deepgram = deepgram;
this.Google = google;
this.Speechmatics = speechmatics;
this.Symbl = symbl;
this.Assembly = assembly;
this.Voci = voci;
this.Voxist = voxist;
this.Oneai = oneai;
this.Faker = faker;
this.Openai = openai;
this.Google = google;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public sealed partial class AudiotextToSpeechResponseModel
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("lovoai")]
public global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? Lovoai { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("deepgram")]
public global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? Deepgram { get; set; }

/// <summary>
///
Expand All @@ -35,14 +35,14 @@ public sealed partial class AudiotextToSpeechResponseModel
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("openai")]
public global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? Openai { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("lovoai")]
public global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? Lovoai { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("deepgram")]
public global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? Deepgram { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("openai")]
public global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? Openai { get; set; }

/// <summary>
///
Expand All @@ -61,29 +61,29 @@ public sealed partial class AudiotextToSpeechResponseModel
/// </summary>
/// <param name="microsoft"></param>
/// <param name="amazon"></param>
/// <param name="lovoai"></param>
/// <param name="deepgram"></param>
/// <param name="elevenlabs"></param>
/// <param name="lovoai"></param>
/// <param name="openai"></param>
/// <param name="deepgram"></param>
/// <param name="google"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public AudiotextToSpeechResponseModel(
global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? microsoft,
global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? amazon,
global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? lovoai,
global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? deepgram,
global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? elevenlabs,
global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? lovoai,
global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? openai,
global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? deepgram,
global::EdenAI.AudiotextToSpeechTextToSpeechDataClass? google)
{
this.Microsoft = microsoft;
this.Amazon = amazon;
this.Lovoai = lovoai;
this.Deepgram = deepgram;
this.Elevenlabs = elevenlabs;
this.Lovoai = lovoai;
this.Openai = openai;
this.Deepgram = deepgram;
this.Google = google;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,38 @@ public sealed partial class ImagebackgroundRemovalResponseModel
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("sentisight")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Sentisight { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("picsart")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Picsart { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("clipdrop")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Clipdrop { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("photoroom")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Photoroom { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stabilityai")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Stabilityai { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("clipdrop")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Clipdrop { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("picsart")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Picsart { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("sentisight")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Sentisight { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("api4ai")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Api4ai { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("stabilityai")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Stabilityai { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("photoroom")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Photoroom { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("api4ai")]
public global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? Api4ai { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -60,31 +60,31 @@ public sealed partial class ImagebackgroundRemovalResponseModel
/// Initializes a new instance of the <see cref="ImagebackgroundRemovalResponseModel" /> class.
/// </summary>
/// <param name="microsoft"></param>
/// <param name="sentisight"></param>
/// <param name="picsart"></param>
/// <param name="photoroom"></param>
/// <param name="clipdrop"></param>
/// <param name="sentisight"></param>
/// <param name="stabilityai"></param>
/// <param name="picsart"></param>
/// <param name="api4ai"></param>
/// <param name="photoroom"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ImagebackgroundRemovalResponseModel(
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? microsoft,
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? sentisight,
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? picsart,
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? photoroom,
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? clipdrop,
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? sentisight,
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? stabilityai,
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? picsart,
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? api4ai,
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? photoroom)
global::EdenAI.ImagebackgroundRemovalBackgroundRemovalDataClass? api4ai)
{
this.Microsoft = microsoft;
this.Sentisight = sentisight;
this.Picsart = picsart;
this.Photoroom = photoroom;
this.Clipdrop = clipdrop;
this.Sentisight = sentisight;
this.Stabilityai = stabilityai;
this.Picsart = picsart;
this.Api4ai = api4ai;
this.Photoroom = photoroom;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ public sealed partial class ImageembeddingsResponseModel
/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("google")]
public global::EdenAI.ImageembeddingsEmbeddingsDataClass? Google { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("amazon")]
public global::EdenAI.ImageembeddingsEmbeddingsDataClass? Amazon { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("amazon")]
public global::EdenAI.ImageembeddingsEmbeddingsDataClass? Amazon { get; set; }
[global::System.Text.Json.Serialization.JsonPropertyName("google")]
public global::EdenAI.ImageembeddingsEmbeddingsDataClass? Google { get; set; }

/// <summary>
///
Expand All @@ -35,19 +35,19 @@ public sealed partial class ImageembeddingsResponseModel
/// <summary>
/// Initializes a new instance of the <see cref="ImageembeddingsResponseModel" /> class.
/// </summary>
/// <param name="google"></param>
/// <param name="amazon"></param>
/// <param name="google"></param>
/// <param name="alephalpha"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ImageembeddingsResponseModel(
global::EdenAI.ImageembeddingsEmbeddingsDataClass? google,
global::EdenAI.ImageembeddingsEmbeddingsDataClass? amazon,
global::EdenAI.ImageembeddingsEmbeddingsDataClass? google,
global::EdenAI.ImageembeddingsEmbeddingsDataClass? alephalpha)
{
this.Google = google;
this.Amazon = amazon;
this.Google = google;
this.Alephalpha = alephalpha;
}

Expand Down
Loading