diff --git a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsList.g.cs index 6510bec..d73c64c 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AccountsClient.AccountsList.g.cs @@ -101,7 +101,7 @@ partial void ProcessAccountsListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -132,7 +132,7 @@ partial void ProcessAccountsListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsUsageList.g.cs b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsUsageList.g.cs index e33e242..03043fb 100644 --- a/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsUsageList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.AgentsClient.AgentsUsageList.g.cs @@ -177,7 +177,7 @@ partial void ProcessAgentsUsageListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -208,7 +208,7 @@ partial void ProcessAgentsUsageListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesToolsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesToolsList.g.cs index 37f01c4..511b6ac 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesToolsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsStagesToolsList.g.cs @@ -113,7 +113,7 @@ partial void ProcessCallsStagesToolsListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessCallsStagesToolsListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsToolsList.g.cs b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsToolsList.g.cs index b646bcc..7dd5efe 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsToolsList.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CallsClient.CallsToolsList.g.cs @@ -107,7 +107,7 @@ partial void ProcessCallsToolsListResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessCallsToolsListResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaQuery.g.cs b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaQuery.g.cs index b587342..3b5c14b 100644 --- a/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaQuery.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.CorporaClient.CorporaQuery.g.cs @@ -122,7 +122,7 @@ partial void ProcessCorporaQueryResponseContent( __response.EnsureSuccessStatusCode(); return - global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -153,7 +153,7 @@ partial void ProcessCorporaQueryResponseContent( ).ConfigureAwait(false); return - await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) as global::System.Collections.Generic.IList ?? + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsTestCreate.g.cs b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsTestCreate.g.cs index c2d2a0f..08e84b7 100644 --- a/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsTestCreate.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.ToolsClient.ToolsTestCreate.g.cs @@ -95,13 +95,13 @@ partial void ProcessToolsTestCreateResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::System.Text.Json.JsonSerializer.Deserialize(__content_default, typeof(string), JsonSerializerContext) as string; + __value_default = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_default, typeof(string), JsonSerializerContext); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::System.Text.Json.JsonSerializer.Deserialize(__content_default, typeof(string), JsonSerializerContext) as string; + __value_default = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_default, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.PreviewVoice.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.PreviewVoice.g.cs index 0bd68db..3d1bc7e 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.PreviewVoice.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.PreviewVoice.g.cs @@ -104,13 +104,13 @@ partial void ProcessPreviewVoiceResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext) as string; + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext) as string; + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex) diff --git a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPreviewRetrieve.g.cs b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPreviewRetrieve.g.cs index 4bd7a23..0dab19a 100644 --- a/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPreviewRetrieve.g.cs +++ b/src/libs/Ultravox/Generated/Ultravox.VoicesClient.VoicesPreviewRetrieve.g.cs @@ -128,13 +128,13 @@ partial void ProcessVoicesPreviewRetrieveResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext) as string; + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext) as string; + __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); } } catch (global::System.Exception __ex)