diff --git a/src/libs/SmallestAI/Generated/SmallestAI.Auth.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.Auth.JsonSerializerContext.g.cs index 9cc45cb..684ef80 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.Auth.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.Auth.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace SmallestAI { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/SmallestAI/Generated/SmallestAI.Electron.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.Electron.JsonSerializerContext.g.cs index 2db3614..ca2a576 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.Electron.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.Electron.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace SmallestAI { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContext.g.cs index d6bb1fc..c46741e 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContext.g.cs @@ -1,14 +1,12 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace SmallestAI { /// /// /// + #pragma warning disable CS3016 // Converter type array in this attribute is not CLS-compliant. [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] @@ -145,6 +143,7 @@ namespace SmallestAI typeof(global::SmallestAI.JsonConverters.UnixTimestampJsonConverter), })] + #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.CreateAccessTokenRequest))] diff --git a/src/libs/SmallestAI/Generated/SmallestAI.OptionsSupport.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.OptionsSupport.g.cs index 57b0ef6..b890e5c 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.OptionsSupport.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.OptionsSupport.g.cs @@ -241,7 +241,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::SmallestAI.AutoSD { context = context ?? throw new global::System.ArgumentNullException(nameof(context)); - if (context.Request == null) + var request = context.Request; + if (request == null) { return; } @@ -251,10 +252,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::SmallestAI.AutoSD { for (var index = 0; index < perRequest.Count; index++) { - ApplyAuthorization(context.Request, perRequest[index]); + ApplyAuthorization(request, perRequest[index]); } - global::SmallestAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::SmallestAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); return; } @@ -272,10 +273,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::SmallestAI.AutoSD for (var index = 0; index < resolved.Count; index++) { - ApplyAuthorization(context.Request, resolved[index]); + ApplyAuthorization(request, resolved[index]); } - global::SmallestAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::SmallestAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); } private static void ApplyAuthorization( @@ -486,7 +487,7 @@ public sealed class AutoSDKHookContext /// /// The outgoing HTTP request for the current attempt. /// - public global::System.Net.Http.HttpRequestMessage Request { get; set; } = null!; + public global::System.Net.Http.HttpRequestMessage? Request { get; set; } /// /// The HTTP response when one was received. @@ -501,7 +502,7 @@ public sealed class AutoSDKHookContext /// /// The client-wide runtime options. /// - public global::SmallestAI.AutoSDKClientOptions ClientOptions { get; set; } = null!; + public global::SmallestAI.AutoSDKClientOptions? ClientOptions { get; set; } /// /// The per-request runtime options. diff --git a/src/libs/SmallestAI/Generated/SmallestAI.PronunciationDictionaries.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.PronunciationDictionaries.JsonSerializerContext.g.cs index 10b1772..cc4661c 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.PronunciationDictionaries.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.PronunciationDictionaries.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace SmallestAI { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/SmallestAI/Generated/SmallestAI.Realtime.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.Realtime.JsonSerializerContext.g.cs index 1b00b6d..1ac1354 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.Realtime.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.Realtime.JsonSerializerContext.g.cs @@ -1,14 +1,12 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace SmallestAI.Realtime { /// /// /// + #pragma warning disable CS3016 // Converter type array in this attribute is not CLS-compliant. [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] @@ -93,6 +91,7 @@ namespace SmallestAI.Realtime typeof(global::SmallestAI.Realtime.JsonConverters.TtsLiveEventStatusNullableJsonConverter), })] + #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.Realtime.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.Realtime.SttLiveModel), TypeInfoPropertyName = "SttLiveModel2")] diff --git a/src/libs/SmallestAI/Generated/SmallestAI.Realtime.OptionsSupport.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.Realtime.OptionsSupport.g.cs index bcbcb50..8e63cc4 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.Realtime.OptionsSupport.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.Realtime.OptionsSupport.g.cs @@ -241,7 +241,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::SmallestAI.Realti { context = context ?? throw new global::System.ArgumentNullException(nameof(context)); - if (context.Request == null) + var request = context.Request; + if (request == null) { return; } @@ -251,10 +252,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::SmallestAI.Realti { for (var index = 0; index < perRequest.Count; index++) { - ApplyAuthorization(context.Request, perRequest[index]); + ApplyAuthorization(request, perRequest[index]); } - global::SmallestAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::SmallestAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); return; } @@ -272,10 +273,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::SmallestAI.Realti for (var index = 0; index < resolved.Count; index++) { - ApplyAuthorization(context.Request, resolved[index]); + ApplyAuthorization(request, resolved[index]); } - global::SmallestAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::SmallestAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); } private static void ApplyAuthorization( @@ -486,7 +487,7 @@ public sealed class AutoSDKHookContext /// /// The outgoing HTTP request for the current attempt. /// - public global::System.Net.Http.HttpRequestMessage Request { get; set; } = null!; + public global::System.Net.Http.HttpRequestMessage? Request { get; set; } /// /// The HTTP response when one was received. @@ -501,7 +502,7 @@ public sealed class AutoSDKHookContext /// /// The client-wide runtime options. /// - public global::SmallestAI.Realtime.AutoSDKClientOptions ClientOptions { get; set; } = null!; + public global::SmallestAI.Realtime.AutoSDKClientOptions? ClientOptions { get; set; } /// /// The per-request runtime options. diff --git a/src/libs/SmallestAI/Generated/SmallestAI.SpeechToText.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.SpeechToText.JsonSerializerContext.g.cs index 5110a02..448aea4 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.SpeechToText.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.SpeechToText.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace SmallestAI { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/SmallestAI/Generated/SmallestAI.TextToSpeech.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.TextToSpeech.JsonSerializerContext.g.cs index 1baaffe..fa9d06e 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.TextToSpeech.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.TextToSpeech.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace SmallestAI { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/SmallestAI/Generated/SmallestAI.VoiceCloning.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.VoiceCloning.JsonSerializerContext.g.cs index 916676e..7f2985f 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.VoiceCloning.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.VoiceCloning.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace SmallestAI { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] diff --git a/src/libs/SmallestAI/Generated/SmallestAI.Voices.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.Voices.JsonSerializerContext.g.cs index da64df9..5d8dbf5 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.Voices.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.Voices.JsonSerializerContext.g.cs @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace SmallestAI { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")]