diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs index da121ba..aa25a7c 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.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 AssemblyAI { /// /// /// + #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[] @@ -129,6 +127,7 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.UnixTimestampJsonConverter), })] + #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptReadyNotification))] @@ -147,7 +146,9 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.Timestamp))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParams))] + #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptCustomSpelling))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsDomain), TypeInfoPropertyName = "TranscriptOptionalParamsDomain2")] diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.OptionsSupport.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.OptionsSupport.g.cs index 1fd16c4..d0d85b6 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.OptionsSupport.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.OptionsSupport.g.cs @@ -241,7 +241,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::AssemblyAI.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::AssemblyAI.AutoSD { for (var index = 0; index < perRequest.Count; index++) { - ApplyAuthorization(context.Request, perRequest[index]); + ApplyAuthorization(request, perRequest[index]); } - global::AssemblyAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::AssemblyAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); return; } @@ -272,10 +273,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::AssemblyAI.AutoSD for (var index = 0; index < resolved.Count; index++) { - ApplyAuthorization(context.Request, resolved[index]); + ApplyAuthorization(request, resolved[index]); } - global::AssemblyAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::AssemblyAI.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); } private static void ApplyAuthorization( @@ -489,7 +490,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. @@ -504,7 +505,7 @@ public sealed class AutoSDKHookContext /// /// The client-wide runtime options. /// - public global::AssemblyAI.AutoSDKClientOptions ClientOptions { get; set; } = null!; + public global::AssemblyAI.AutoSDKClientOptions? ClientOptions { get; set; } /// /// The per-request runtime options. diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.JsonSerializerContext.g.cs index 3a1fbf2..bf2e4e5 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.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 AssemblyAI.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[] @@ -63,6 +61,7 @@ namespace AssemblyAI.Realtime typeof(global::AssemblyAI.Realtime.JsonConverters.ServerEventJsonConverter), })] + #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.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::AssemblyAI.Realtime.UpdateConfigurationPayload))] diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.OptionsSupport.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.OptionsSupport.g.cs index d42940f..2de5f6b 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.OptionsSupport.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Realtime.OptionsSupport.g.cs @@ -241,7 +241,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::AssemblyAI.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::AssemblyAI.Realti { for (var index = 0; index < perRequest.Count; index++) { - ApplyAuthorization(context.Request, perRequest[index]); + ApplyAuthorization(request, perRequest[index]); } - global::AssemblyAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::AssemblyAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); return; } @@ -272,10 +273,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::AssemblyAI.Realti for (var index = 0; index < resolved.Count; index++) { - ApplyAuthorization(context.Request, resolved[index]); + ApplyAuthorization(request, resolved[index]); } - global::AssemblyAI.Realtime.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::AssemblyAI.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::AssemblyAI.Realtime.AutoSDKClientOptions ClientOptions { get; set; } = null!; + public global::AssemblyAI.Realtime.AutoSDKClientOptions? ClientOptions { get; set; } /// /// The per-request runtime options.