From 826128e458dd9c566f89eda4c00daa9a8e87d40e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 17 Nov 2026 15:48:39 +0000 Subject: [PATCH] chore: Regenerated from an unchanged spec --- .../Speechify.AdminClient.ForceEnd.g.cs | 22 +- .../Speechify.AdminClient.ShadowToken.g.cs | 28 +-- ...chify.AgentClient.AttachKnowledgeBase.g.cs | 16 +- .../Speechify.AgentClient.AttachTool.g.cs | 16 +- .../Speechify.AgentClient.Create.g.cs | 22 +- ...echify.AgentClient.CreateConversation.g.cs | 28 +-- .../Speechify.AgentClient.CreateSession.g.cs | 46 ++-- .../Speechify.AgentClient.CreateTool.g.cs | 28 +-- .../Speechify.AgentClient.Delete.g.cs | 22 +- .../Speechify.AgentClient.DeleteTool.g.cs | 16 +- ...chify.AgentClient.DetachKnowledgeBase.g.cs | 16 +- .../Generated/Speechify.AgentClient.Get.g.cs | 16 +- ...chify.AgentClient.GetDynamicVariables.g.cs | 16 +- ...chify.AgentClient.GetEvaluationConfig.g.cs | 10 +- .../Speechify.AgentClient.GetTool.g.cs | 16 +- ...Speechify.AgentClient.GetWidgetConfig.g.cs | 22 +- .../Generated/Speechify.AgentClient.List.g.cs | 22 +- ...y.AgentClient.ListAgentKnowledgeBases.g.cs | 22 +- ...Speechify.AgentClient.ListAgentVoices.g.cs | 10 +- .../Speechify.AgentClient.ListMemories.g.cs | 22 +- .../Speechify.AgentClient.ListTTSModels.g.cs | 10 +- ...hify.AgentClient.ListToolCapabilities.g.cs | 10 +- .../Speechify.AgentClient.ListTools.g.cs | 22 +- .../Speechify.AgentClient.Publish.g.cs | 52 ++--- .../Speechify.AgentClient.RunAllTests.g.cs | 34 +-- .../Speechify.AgentClient.Update.g.cs | 28 +-- ...fy.AgentClient.UpdateDynamicVariables.g.cs | 22 +- ...fy.AgentClient.UpdateEvaluationConfig.g.cs | 16 +- .../Speechify.AgentClient.UpdateTool.g.cs | 28 +-- .../Speechify.AgentsClient.AttachSkill.g.cs | 34 +-- .../Speechify.AgentsClient.DetachSkill.g.cs | 22 +- .../Speechify.AgentsClient.ListSkills.g.cs | 22 +- .../Speechify.AgentsClient.UpdateSkill.g.cs | 34 +-- .../Speechify.AudioAssetsClient.Delete.g.cs | 16 +- .../Speechify.AudioAssetsClient.Get.g.cs | 16 +- .../Speechify.AudioAssetsClient.GetBytes.g.cs | 6 +- .../Speechify.AudioAssetsClient.List.g.cs | 22 +- .../Speechify.AudioAssetsClient.Upload.g.cs | 48 ++-- .../Speechify.AudioClient.Speech.g.cs | 64 +++--- .../Speechify.AudioClient.Stream.g.cs | 186 ++++++++-------- ...hify.AudioClient.StreamWithTimestamps.g.cs | 62 +++--- .../Speechify.BatchCallsClient.Cancel.g.cs | 16 +- .../Speechify.BatchCallsClient.Create.g.cs | 22 +- .../Speechify.BatchCallsClient.Get.g.cs | 16 +- .../Speechify.BatchCallsClient.List.g.cs | 22 +- ...chify.BatchCallsClient.ListRecipients.g.cs | 16 +- .../Speechify.CallersClient.Delete.g.cs | 10 +- .../Speechify.CallersClient.Get.g.cs | 16 +- .../Speechify.CallersClient.List.g.cs | 22 +- ...chify.CallersClient.ListConversations.g.cs | 16 +- .../Speechify.CallersClient.ListMemories.g.cs | 16 +- .../Speechify.CallersClient.Update.g.cs | 22 +- ...echify.ConsentChallengesClient.Create.g.cs | 58 ++--- ...chify.ContactsClient.AttachIdentifier.g.cs | 34 +-- .../Speechify.ContactsClient.Delete.g.cs | 22 +- ...eechify.ContactsClient.DeleteResolver.g.cs | 22 +- ...chify.ContactsClient.DetachIdentifier.g.cs | 22 +- .../Speechify.ContactsClient.Get.g.cs | 16 +- .../Speechify.ContactsClient.GetResolver.g.cs | 22 +- .../Speechify.ContactsClient.List.g.cs | 16 +- .../Speechify.ContactsClient.Merge.g.cs | 34 +-- ...y.ContactsClient.RotateResolverSecret.g.cs | 22 +- .../Speechify.ContactsClient.SetResolver.g.cs | 22 +- .../Speechify.ContactsClient.Update.g.cs | 28 +-- ...hify.ConversationsClient.CancelPrompt.g.cs | 22 +- .../Speechify.ConversationsClient.Get.g.cs | 16 +- ...eechify.ConversationsClient.GetPrompt.g.cs | 22 +- .../Speechify.ConversationsClient.List.g.cs | 22 +- ...y.ConversationsClient.ListEvaluations.g.cs | 22 +- ...hify.ConversationsClient.ListMemories.g.cs | 22 +- ...hify.ConversationsClient.ListMessages.g.cs | 22 +- ....ConversationsClient.ListRetrievalLog.g.cs | 22 +- ...ersationsClient.ListWebhookDeliveries.g.cs | 22 +- .../Speechify.ConversationsClient.Prompt.g.cs | 46 ++-- ...ify.ConversationsClient.RecentCallees.g.cs | 16 +- .../Speechify.ConversationsClient.Stats.g.cs | 22 +- ...y.ConversationsClient.StreamRecording.g.cs | 42 ++-- .../Speechify.CredentialsClient.Create.g.cs | 22 +- .../Speechify.CredentialsClient.Delete.g.cs | 22 +- .../Speechify.CredentialsClient.Get.g.cs | 16 +- .../Speechify.CredentialsClient.List.g.cs | 22 +- .../Speechify.CredentialsClient.Update.g.cs | 28 +-- ...fy.DocumentsClient.AggregateDocuments.g.cs | 28 +-- ...echify.DocumentsClient.BatchDocuments.g.cs | 40 ++-- ...echify.DocumentsClient.CreateDocument.g.cs | 40 ++-- ...echify.DocumentsClient.DeleteDocument.g.cs | 34 +-- ...Speechify.DocumentsClient.GetDocument.g.cs | 28 +-- ...eechify.DocumentsClient.ListDocuments.g.cs | 28 +-- ...Speechify.DocumentsClient.PutDocument.g.cs | 46 ++-- ...echify.DocumentsClient.QueryDocuments.g.cs | 28 +-- ...echify.DocumentsClient.UpdateDocument.g.cs | 40 ++-- .../Speechify.EndpointsClient.Create.g.cs | 34 +-- .../Speechify.EndpointsClient.Delete.g.cs | 22 +- .../Speechify.EndpointsClient.Get.g.cs | 16 +- .../Speechify.EndpointsClient.List.g.cs | 22 +- ...echify.EndpointsClient.ListDeliveries.g.cs | 22 +- ...peechify.EndpointsClient.RotateSecret.g.cs | 22 +- .../Speechify.EndpointsClient.Update.g.cs | 28 +-- .../Speechify.FilesClient.Delete.g.cs | 28 +-- .../Generated/Speechify.FilesClient.Get.g.cs | 28 +-- .../Speechify.FilesClient.GetContent.g.cs | 78 +++---- .../Generated/Speechify.FilesClient.List.g.cs | 28 +-- .../Speechify.FilesClient.Upload.g.cs | 138 ++++++------ .../Speechify.FlowClient.CloneTemplate.g.cs | 34 +-- .../Speechify.FlowClient.CreateTemplate.g.cs | 28 +-- .../Speechify.FlowClient.Deactivate.g.cs | 22 +- .../Speechify.FlowClient.DeleteTemplate.g.cs | 22 +- .../Speechify.FlowClient.DiscardDraft.g.cs | 22 +- .../Speechify.FlowClient.GetFlow.g.cs | 22 +- .../Speechify.FlowClient.GetSchema.g.cs | 10 +- .../Speechify.FlowClient.GetTemplate.g.cs | 22 +- .../Speechify.FlowClient.GetVersion.g.cs | 22 +- .../Speechify.FlowClient.ListTemplates.g.cs | 22 +- .../Speechify.FlowClient.ListVersions.g.cs | 28 +-- .../Speechify.FlowClient.Publish.g.cs | 46 ++-- .../Speechify.FlowClient.Rollback.g.cs | 40 ++-- .../Speechify.FlowClient.UpdateFlow.g.cs | 34 +-- .../Speechify.FlowClient.UpdateTemplate.g.cs | 34 +-- .../Speechify.HostedApisClient.Create.g.cs | 46 ++-- .../Speechify.HostedApisClient.Delete.g.cs | 40 ++-- .../Speechify.HostedApisClient.Get.g.cs | 40 ++-- ...eechify.HostedApisClient.GetAnalytics.g.cs | 52 ++--- ...Speechify.HostedApisClient.GetOpenApi.g.cs | 40 ++-- .../Speechify.HostedApisClient.GetUsage.g.cs | 40 ++-- .../Speechify.HostedApisClient.List.g.cs | 40 ++-- ...ostedApisClient.RotateUserTokenSecret.g.cs | 40 ++-- .../Speechify.HostedApisClient.Update.g.cs | 40 ++-- .../Speechify.IvrMemoryClient.Get.g.cs | 16 +- .../Speechify.IvrMemoryClient.Invalidate.g.cs | 16 +- .../Speechify.IvrMemoryClient.List.g.cs | 16 +- ...Speechify.IvrMemoryClient.UpdateLabel.g.cs | 22 +- .../Speechify.KeysClient.CreateKey.g.cs | 46 ++-- .../Speechify.KeysClient.ListKeys.g.cs | 40 ++-- .../Speechify.KeysClient.RevokeKey.g.cs | 40 ++-- ...ledgeBasesClient.BatchDeleteDocuments.g.cs | 22 +- ...owledgeBasesClient.BatchMoveDocuments.g.cs | 22 +- ...KnowledgeBasesClient.CancelEvaluation.g.cs | 16 +- ....KnowledgeBasesClient.CancelImportJob.g.cs | 16 +- ...Speechify.KnowledgeBasesClient.Create.g.cs | 16 +- ...nowledgeBasesClient.CreateCrawlImport.g.cs | 28 +-- ...y.KnowledgeBasesClient.CreateEvalCase.g.cs | 28 +-- ...ify.KnowledgeBasesClient.CreateFolder.g.cs | 22 +- ...wledgeBasesClient.CreateSitemapImport.g.cs | 28 +-- ...owledgeBasesClient.CreateTextDocument.g.cs | 28 +-- ...ledgeBasesClient.CreateURLBatchImport.g.cs | 28 +-- ...nowledgeBasesClient.CreateURLDocument.g.cs | 28 +-- ...Speechify.KnowledgeBasesClient.Delete.g.cs | 16 +- ...y.KnowledgeBasesClient.DeleteDocument.g.cs | 16 +- ...y.KnowledgeBasesClient.DeleteEvalCase.g.cs | 16 +- ...ify.KnowledgeBasesClient.DeleteFolder.g.cs | 22 +- .../Speechify.KnowledgeBasesClient.Get.g.cs | 16 +- ...hify.KnowledgeBasesClient.GetCoverage.g.cs | 22 +- ...hify.KnowledgeBasesClient.GetDocument.g.cs | 16 +- ...fy.KnowledgeBasesClient.GetEvaluation.g.cs | 16 +- ...ify.KnowledgeBasesClient.GetImportJob.g.cs | 16 +- .../Speechify.KnowledgeBasesClient.List.g.cs | 16 +- ...chify.KnowledgeBasesClient.ListChunks.g.cs | 16 +- ...fy.KnowledgeBasesClient.ListDocuments.g.cs | 16 +- ...fy.KnowledgeBasesClient.ListEvalCases.g.cs | 22 +- ...edgeBasesClient.ListEvaluationResults.g.cs | 22 +- ....KnowledgeBasesClient.ListEvaluations.g.cs | 22 +- ...hify.KnowledgeBasesClient.ListFolders.g.cs | 16 +- ...y.KnowledgeBasesClient.ListImportJobs.g.cs | 22 +- ...owledgeBasesClient.ListRefreshHistory.g.cs | 22 +- ...Speechify.KnowledgeBasesClient.Search.g.cs | 16 +- ....KnowledgeBasesClient.StartEvaluation.g.cs | 34 +-- ...Speechify.KnowledgeBasesClient.Update.g.cs | 28 +-- ...y.KnowledgeBasesClient.UpdateDocument.g.cs | 28 +-- ...y.KnowledgeBasesClient.UpdateEvalCase.g.cs | 22 +- ...ify.KnowledgeBasesClient.UpdateFolder.g.cs | 22 +- ...wledgeBasesClient.UpdateRefreshConfig.g.cs | 22 +- ...y.KnowledgeBasesClient.UploadDocument.g.cs | 102 ++++----- .../Speechify.MemoriesClient.Delete.g.cs | 16 +- .../Speechify.ModelsClient.List.g.cs | 34 +-- .../Speechify.OutboundCallsClient.Create.g.cs | 52 ++--- .../Speechify.PhoneNumbersClient.Delete.g.cs | 16 +- .../Speechify.PhoneNumbersClient.Get.g.cs | 16 +- .../Speechify.PhoneNumbersClient.Import.g.cs | 22 +- .../Speechify.PhoneNumbersClient.List.g.cs | 22 +- ...Speechify.PhoneNumbersClient.Purchase.g.cs | 46 ++-- ...fy.PhoneNumbersClient.SearchAvailable.g.cs | 22 +- .../Speechify.PhoneNumbersClient.Update.g.cs | 34 +-- .../Speechify.ProjectsClient.Archive.g.cs | 22 +- .../Speechify.ProjectsClient.Audit.g.cs | 34 +-- .../Speechify.ProjectsClient.Create.g.cs | 22 +- .../Speechify.ProjectsClient.Delete.g.cs | 28 +-- .../Speechify.ProjectsClient.Get.g.cs | 16 +- .../Speechify.ProjectsClient.GrantMember.g.cs | 28 +-- .../Speechify.ProjectsClient.List.g.cs | 16 +- .../Speechify.ProjectsClient.ListMembers.g.cs | 22 +- .../Speechify.ProjectsClient.Promote.g.cs | 34 +-- .../Speechify.ProjectsClient.Restore.g.cs | 28 +-- ...Speechify.ProjectsClient.RevokeMember.g.cs | 22 +- .../Speechify.ProjectsClient.Stats.g.cs | 16 +- .../Speechify.ProjectsClient.Teardown.g.cs | 22 +- .../Speechify.ProjectsClient.Unarchive.g.cs | 22 +- .../Speechify.ProjectsClient.Update.g.cs | 28 +-- .../Speechify.PublishGateClient.Latest.g.cs | 28 +-- .../Speechify.RoutesClient.CreateRoute.g.cs | 46 ++-- .../Speechify.RoutesClient.DeleteRoute.g.cs | 40 ++-- .../Speechify.RoutesClient.GetRoute.g.cs | 40 ++-- .../Speechify.RoutesClient.ListRoutes.g.cs | 40 ++-- .../Speechify.RoutesClient.MountRoutes.g.cs | 46 ++-- .../Speechify.RoutesClient.UpdateRoute.g.cs | 46 ++-- .../Speechify.RunsClient.CancelRun.g.cs | 22 +- .../Speechify.RunsClient.CreateRun.g.cs | 46 ++-- .../Generated/Speechify.RunsClient.Get.g.cs | 22 +- .../Speechify.RunsClient.GetRun.g.cs | 22 +- .../Generated/Speechify.RunsClient.List.g.cs | 28 +-- .../Speechify.RunsClient.ListRunChildren.g.cs | 28 +-- .../Speechify.RunsClient.ListRunSteps.g.cs | 28 +-- .../Speechify.RunsClient.ListRuns.g.cs | 28 +-- .../Speechify.RunsClient.StreamEvents.g.cs | 20 +- ...echify.RunsClient.StreamProjectEvents.g.cs | 32 +-- .../Speechify.RunsClient.SubmitRun.g.cs | 40 ++-- .../Speechify.ShareLinksClient.Create.g.cs | 34 +-- ...echify.ShareLinksClient.CreateSession.g.cs | 34 +-- .../Speechify.ShareLinksClient.List.g.cs | 16 +- .../Speechify.ShareLinksClient.Preview.g.cs | 16 +- .../Speechify.ShareLinksClient.Reveal.g.cs | 28 +-- .../Speechify.ShareLinksClient.Revoke.g.cs | 22 +- .../Speechify.SipTrunksClient.Create.g.cs | 22 +- .../Speechify.SipTrunksClient.Delete.g.cs | 16 +- .../Speechify.SipTrunksClient.Get.g.cs | 16 +- .../Speechify.SipTrunksClient.List.g.cs | 16 +- .../Speechify.SkillsClient.Create.g.cs | 34 +-- .../Speechify.SkillsClient.Delete.g.cs | 28 +-- .../Generated/Speechify.SkillsClient.Get.g.cs | 28 +-- .../Speechify.SkillsClient.List.g.cs | 28 +-- .../Speechify.SkillsClient.ListVersions.g.cs | 22 +- .../Speechify.SkillsClient.Update.g.cs | 34 +-- .../Speechify.StoresClient.Attach.g.cs | 34 +-- .../Speechify.StoresClient.Collections.g.cs | 28 +-- .../Speechify.StoresClient.Create.g.cs | 40 ++-- .../Speechify.StoresClient.Delete.g.cs | 28 +-- .../Speechify.StoresClient.Detach.g.cs | 28 +-- .../Generated/Speechify.StoresClient.Get.g.cs | 28 +-- .../Speechify.StoresClient.List.g.cs | 28 +-- .../Speechify.StoresClient.ListAttached.g.cs | 28 +-- .../Speechify.StoresClient.Update.g.cs | 28 +-- .../Speechify.TeamsClient.Create.g.cs | 22 +- .../Speechify.TeamsClient.Delete.g.cs | 16 +- .../Generated/Speechify.TeamsClient.Get.g.cs | 16 +- .../Generated/Speechify.TeamsClient.List.g.cs | 16 +- .../Speechify.TeamsClient.ListRuns.g.cs | 28 +-- .../Generated/Speechify.TeamsClient.Run.g.cs | 46 ++-- .../Speechify.TeamsClient.Update.g.cs | 22 +- .../Speechify.TestsClient.CancelSuiteRun.g.cs | 16 +- .../Speechify.TestsClient.CancelTestRun.g.cs | 16 +- .../Speechify.TestsClient.CreateTest.g.cs | 28 +-- ...peechify.TestsClient.CreateTestFolder.g.cs | 16 +- .../Speechify.TestsClient.DeleteTest.g.cs | 16 +- ...peechify.TestsClient.DeleteTestFolder.g.cs | 16 +- .../Speechify.TestsClient.GetSuiteRun.g.cs | 16 +- .../Speechify.TestsClient.GetTest.g.cs | 16 +- .../Speechify.TestsClient.GetTestRun.g.cs | 16 +- .../Speechify.TestsClient.GetTestStats.g.cs | 16 +- .../Speechify.TestsClient.ListAllTests.g.cs | 16 +- .../Speechify.TestsClient.ListSuiteRuns.g.cs | 22 +- ...Speechify.TestsClient.ListTestFolders.g.cs | 22 +- .../Speechify.TestsClient.ListTestRuns.g.cs | 22 +- ...peechify.TestsClient.ResubmitSuiteRun.g.cs | 34 +-- ...peechify.TestsClient.RunTargetedTests.g.cs | 40 ++-- .../Speechify.TestsClient.RunTest.g.cs | 34 +-- .../Speechify.TestsClient.RunTestsBatch.g.cs | 28 +-- .../Speechify.TestsClient.UpdateTest.g.cs | 22 +- ...peechify.TestsClient.UpdateTestFolder.g.cs | 22 +- ...peechify.ToolDefinitionsClient.Create.g.cs | 22 +- ...peechify.ToolDefinitionsClient.Delete.g.cs | 16 +- .../Speechify.ToolDefinitionsClient.Get.g.cs | 16 +- ...y.ToolDefinitionsClient.ImportOpenAPI.g.cs | 22 +- .../Speechify.ToolDefinitionsClient.List.g.cs | 22 +- ...y.ToolDefinitionsClient.ListApiRoutes.g.cs | 34 +-- ...lDefinitionsClient.ListAttachedAgents.g.cs | 22 +- ...fy.ToolDefinitionsClient.RotateSecret.g.cs | 22 +- ...olDefinitionsClient.TestMCPConnection.g.cs | 22 +- ...ToolDefinitionsClient.TestOpenAPICall.g.cs | 28 +-- ...finitionsClient.TestWebhookConnection.g.cs | 22 +- ...peechify.ToolDefinitionsClient.Update.g.cs | 28 +-- .../Speechify.TriggersClient.Create.g.cs | 28 +-- .../Speechify.TriggersClient.Delete.g.cs | 16 +- .../Speechify.TriggersClient.Fire.g.cs | 34 +-- .../Speechify.TriggersClient.Get.g.cs | 16 +- .../Speechify.TriggersClient.List.g.cs | 22 +- .../Speechify.TriggersClient.Update.g.cs | 22 +- .../Speechify.VoicesClient.Create.g.cs | 210 +++++++++--------- .../Speechify.VoicesClient.Delete.g.cs | 52 ++--- ...Speechify.VoicesClient.DownloadSample.g.cs | 150 ++++++------- .../Generated/Speechify.VoicesClient.Get.g.cs | 46 ++-- .../Speechify.VoicesClient.List.g.cs | 34 +-- .../Speechify.WatermarkClient.Detect.g.cs | 156 ++++++------- .../Speechify.WatermarkClient.Verify.g.cs | 120 +++++----- ...hify.WorkspacesClient.GetEntitlements.g.cs | 10 +- 293 files changed, 4227 insertions(+), 4227 deletions(-) diff --git a/src/libs/Speechify/Generated/Speechify.AdminClient.ForceEnd.g.cs b/src/libs/Speechify/Generated/Speechify.AdminClient.ForceEnd.g.cs index 5aafa712..bc66832f 100644 --- a/src/libs/Speechify/Generated/Speechify.AdminClient.ForceEnd.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AdminClient.ForceEnd.g.cs @@ -364,13 +364,13 @@ partial void ProcessForceEndResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -381,7 +381,7 @@ partial void ProcessForceEndResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -401,13 +401,13 @@ partial void ProcessForceEndResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -418,7 +418,7 @@ partial void ProcessForceEndResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -438,13 +438,13 @@ partial void ProcessForceEndResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -455,7 +455,7 @@ partial void ProcessForceEndResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -496,7 +496,7 @@ partial void ProcessForceEndResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -539,7 +539,7 @@ partial void ProcessForceEndResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AdminClient.ShadowToken.g.cs b/src/libs/Speechify/Generated/Speechify.AdminClient.ShadowToken.g.cs index f689c263..5e0b0fa6 100644 --- a/src/libs/Speechify/Generated/Speechify.AdminClient.ShadowToken.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AdminClient.ShadowToken.g.cs @@ -368,13 +368,13 @@ partial void ProcessShadowTokenResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -385,7 +385,7 @@ partial void ProcessShadowTokenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -405,13 +405,13 @@ partial void ProcessShadowTokenResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -422,7 +422,7 @@ partial void ProcessShadowTokenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -442,13 +442,13 @@ partial void ProcessShadowTokenResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -459,7 +459,7 @@ partial void ProcessShadowTokenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -479,13 +479,13 @@ partial void ProcessShadowTokenResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -496,7 +496,7 @@ partial void ProcessShadowTokenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -539,7 +539,7 @@ partial void ProcessShadowTokenResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -584,7 +584,7 @@ partial void ProcessShadowTokenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.AttachKnowledgeBase.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.AttachKnowledgeBase.g.cs index 7a3b9dbd..df19b7d8 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.AttachKnowledgeBase.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.AttachKnowledgeBase.g.cs @@ -365,13 +365,13 @@ partial void ProcessAttachKnowledgeBaseResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -382,7 +382,7 @@ partial void ProcessAttachKnowledgeBaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -402,13 +402,13 @@ partial void ProcessAttachKnowledgeBaseResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -419,7 +419,7 @@ partial void ProcessAttachKnowledgeBaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -460,7 +460,7 @@ partial void ProcessAttachKnowledgeBaseResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -503,7 +503,7 @@ partial void ProcessAttachKnowledgeBaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.AttachTool.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.AttachTool.g.cs index bb37af75..acecc354 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.AttachTool.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.AttachTool.g.cs @@ -365,13 +365,13 @@ partial void ProcessAttachToolResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -382,7 +382,7 @@ partial void ProcessAttachToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -402,13 +402,13 @@ partial void ProcessAttachToolResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -419,7 +419,7 @@ partial void ProcessAttachToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -460,7 +460,7 @@ partial void ProcessAttachToolResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -503,7 +503,7 @@ partial void ProcessAttachToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.Create.g.cs index a9da360a..a9856431 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.Create.g.cs @@ -373,13 +373,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -390,7 +390,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -410,13 +410,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -427,7 +427,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -447,13 +447,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -464,7 +464,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -507,7 +507,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -552,7 +552,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.CreateConversation.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.CreateConversation.g.cs index 5f81df0d..3121abfa 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.CreateConversation.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.CreateConversation.g.cs @@ -423,13 +423,13 @@ partial void ProcessCreateConversationResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessCreateConversationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -460,13 +460,13 @@ partial void ProcessCreateConversationResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessCreateConversationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -497,13 +497,13 @@ partial void ProcessCreateConversationResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -514,7 +514,7 @@ partial void ProcessCreateConversationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -534,13 +534,13 @@ partial void ProcessCreateConversationResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -551,7 +551,7 @@ partial void ProcessCreateConversationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -594,7 +594,7 @@ partial void ProcessCreateConversationResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -639,7 +639,7 @@ partial void ProcessCreateConversationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.CreateSession.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.CreateSession.g.cs index 39d62f9b..c3f1a91e 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.CreateSession.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.CreateSession.g.cs @@ -423,13 +423,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -460,13 +460,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -497,13 +497,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -514,7 +514,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -534,13 +534,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -551,7 +551,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -571,13 +571,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -588,7 +588,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -608,13 +608,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -625,7 +625,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -645,13 +645,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -662,7 +662,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -705,7 +705,7 @@ partial void ProcessCreateSessionResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -750,7 +750,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.CreateTool.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.CreateTool.g.cs index 4e2fc052..b0645b1c 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.CreateTool.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.CreateTool.g.cs @@ -406,13 +406,13 @@ partial void ProcessCreateToolResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -423,7 +423,7 @@ partial void ProcessCreateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -443,13 +443,13 @@ partial void ProcessCreateToolResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -460,7 +460,7 @@ partial void ProcessCreateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -480,13 +480,13 @@ partial void ProcessCreateToolResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -497,7 +497,7 @@ partial void ProcessCreateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -517,13 +517,13 @@ partial void ProcessCreateToolResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.ToolNameTakenError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.ToolNameTakenError.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.ToolNameTakenError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.ToolNameTakenError.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -534,7 +534,7 @@ partial void ProcessCreateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -577,7 +577,7 @@ partial void ProcessCreateToolResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -622,7 +622,7 @@ partial void ProcessCreateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.Delete.g.cs index a67be57c..c6d446c4 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.Delete.g.cs @@ -392,13 +392,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -409,7 +409,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -429,13 +429,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -446,7 +446,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -466,13 +466,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.AgentInUseError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.AgentInUseError.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.AgentInUseError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.AgentInUseError.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -483,7 +483,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -524,7 +524,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -567,7 +567,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.DeleteTool.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.DeleteTool.g.cs index da854db0..307b0449 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.DeleteTool.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.DeleteTool.g.cs @@ -377,13 +377,13 @@ partial void ProcessDeleteToolResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -394,7 +394,7 @@ partial void ProcessDeleteToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -414,13 +414,13 @@ partial void ProcessDeleteToolResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -431,7 +431,7 @@ partial void ProcessDeleteToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -472,7 +472,7 @@ partial void ProcessDeleteToolResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -515,7 +515,7 @@ partial void ProcessDeleteToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.DetachKnowledgeBase.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.DetachKnowledgeBase.g.cs index 234e8ad8..bc87d992 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.DetachKnowledgeBase.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.DetachKnowledgeBase.g.cs @@ -361,13 +361,13 @@ partial void ProcessDetachKnowledgeBaseResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessDetachKnowledgeBaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessDetachKnowledgeBaseResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessDetachKnowledgeBaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -456,7 +456,7 @@ partial void ProcessDetachKnowledgeBaseResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -499,7 +499,7 @@ partial void ProcessDetachKnowledgeBaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.Get.g.cs index 242f0b21..0de74a69 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.Get.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -449,7 +449,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.GetDynamicVariables.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.GetDynamicVariables.g.cs index 83dba54e..595b26f9 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.GetDynamicVariables.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.GetDynamicVariables.g.cs @@ -358,13 +358,13 @@ partial void ProcessGetDynamicVariablesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessGetDynamicVariablesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessGetDynamicVariablesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessGetDynamicVariablesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -455,7 +455,7 @@ partial void ProcessGetDynamicVariablesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -500,7 +500,7 @@ partial void ProcessGetDynamicVariablesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.GetEvaluationConfig.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.GetEvaluationConfig.g.cs index 4423aa87..fae98cf9 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.GetEvaluationConfig.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.GetEvaluationConfig.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetEvaluationConfigResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetEvaluationConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -412,7 +412,7 @@ partial void ProcessGetEvaluationConfigResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -457,7 +457,7 @@ partial void ProcessGetEvaluationConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.GetTool.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.GetTool.g.cs index 3bab7ea7..b56f3267 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.GetTool.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.GetTool.g.cs @@ -361,13 +361,13 @@ partial void ProcessGetToolResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessGetToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessGetToolResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessGetToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -458,7 +458,7 @@ partial void ProcessGetToolResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -503,7 +503,7 @@ partial void ProcessGetToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.GetWidgetConfig.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.GetWidgetConfig.g.cs index c9489256..c7a8ba30 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.GetWidgetConfig.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.GetWidgetConfig.g.cs @@ -354,13 +354,13 @@ partial void ProcessGetWidgetConfigResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ partial void ProcessGetWidgetConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -391,13 +391,13 @@ partial void ProcessGetWidgetConfigResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessGetWidgetConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -428,13 +428,13 @@ partial void ProcessGetWidgetConfigResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessGetWidgetConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -488,7 +488,7 @@ partial void ProcessGetWidgetConfigResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -533,7 +533,7 @@ partial void ProcessGetWidgetConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.List.g.cs index 71256d8a..fdf3f8c6 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.List.g.cs @@ -383,13 +383,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +400,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -420,13 +420,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -437,7 +437,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -457,13 +457,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -474,7 +474,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -517,7 +517,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -562,7 +562,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.ListAgentKnowledgeBases.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.ListAgentKnowledgeBases.g.cs index d2479fc1..75722685 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.ListAgentKnowledgeBases.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.ListAgentKnowledgeBases.g.cs @@ -382,13 +382,13 @@ partial void ProcessListAgentKnowledgeBasesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessListAgentKnowledgeBasesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessListAgentKnowledgeBasesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessListAgentKnowledgeBasesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessListAgentKnowledgeBasesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessListAgentKnowledgeBasesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -516,7 +516,7 @@ partial void ProcessListAgentKnowledgeBasesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -561,7 +561,7 @@ partial void ProcessListAgentKnowledgeBasesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.ListAgentVoices.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.ListAgentVoices.g.cs index b4f279d0..3418c77d 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.ListAgentVoices.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.ListAgentVoices.g.cs @@ -395,13 +395,13 @@ partial void ProcessListAgentVoicesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessListAgentVoicesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -455,7 +455,7 @@ partial void ProcessListAgentVoicesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -500,7 +500,7 @@ partial void ProcessListAgentVoicesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.ListMemories.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.ListMemories.g.cs index 8ecc69cb..3ba8a18d 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.ListMemories.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.ListMemories.g.cs @@ -386,13 +386,13 @@ partial void ProcessListMemoriesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -423,13 +423,13 @@ partial void ProcessListMemoriesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -460,13 +460,13 @@ partial void ProcessListMemoriesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -520,7 +520,7 @@ partial void ProcessListMemoriesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -565,7 +565,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.ListTTSModels.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.ListTTSModels.g.cs index 0604cdf0..e7e15e53 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.ListTTSModels.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.ListTTSModels.g.cs @@ -379,13 +379,13 @@ partial void ProcessListTTSModelsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -396,7 +396,7 @@ partial void ProcessListTTSModelsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -439,7 +439,7 @@ partial void ProcessListTTSModelsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -484,7 +484,7 @@ partial void ProcessListTTSModelsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.ListToolCapabilities.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.ListToolCapabilities.g.cs index 14528787..aeb8bd1c 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.ListToolCapabilities.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.ListToolCapabilities.g.cs @@ -361,13 +361,13 @@ partial void ProcessListToolCapabilitiesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessListToolCapabilitiesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -421,7 +421,7 @@ partial void ProcessListToolCapabilitiesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -466,7 +466,7 @@ partial void ProcessListToolCapabilitiesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.ListTools.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.ListTools.g.cs index eded4dbd..8c9de33d 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.ListTools.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.ListTools.g.cs @@ -386,13 +386,13 @@ partial void ProcessListToolsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessListToolsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -423,13 +423,13 @@ partial void ProcessListToolsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessListToolsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -460,13 +460,13 @@ partial void ProcessListToolsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessListToolsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -520,7 +520,7 @@ partial void ProcessListToolsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -565,7 +565,7 @@ partial void ProcessListToolsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.Publish.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.Publish.g.cs index 3049caf8..dc7844de 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.Publish.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.Publish.g.cs @@ -425,13 +425,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -462,13 +462,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -479,7 +479,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -499,13 +499,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -516,7 +516,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -536,13 +536,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -553,7 +553,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -573,13 +573,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -590,7 +590,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -610,13 +610,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -627,7 +627,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -647,13 +647,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -664,7 +664,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -684,13 +684,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -701,7 +701,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -744,7 +744,7 @@ partial void ProcessPublishResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -789,7 +789,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.RunAllTests.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.RunAllTests.g.cs index 85711107..cbfd5177 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.RunAllTests.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.RunAllTests.g.cs @@ -417,13 +417,13 @@ partial void ProcessRunAllTestsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -434,7 +434,7 @@ partial void ProcessRunAllTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -454,13 +454,13 @@ partial void ProcessRunAllTestsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -471,7 +471,7 @@ partial void ProcessRunAllTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -491,13 +491,13 @@ partial void ProcessRunAllTestsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -508,7 +508,7 @@ partial void ProcessRunAllTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -528,13 +528,13 @@ partial void ProcessRunAllTestsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -545,7 +545,7 @@ partial void ProcessRunAllTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -565,13 +565,13 @@ partial void ProcessRunAllTestsResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -582,7 +582,7 @@ partial void ProcessRunAllTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -625,7 +625,7 @@ partial void ProcessRunAllTestsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -670,7 +670,7 @@ partial void ProcessRunAllTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.Update.g.cs index 8405fc8d..8ab6f6a1 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.Update.g.cs @@ -372,13 +372,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -483,13 +483,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -543,7 +543,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -588,7 +588,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateDynamicVariables.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateDynamicVariables.g.cs index 59680920..69e40ade 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateDynamicVariables.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateDynamicVariables.g.cs @@ -382,13 +382,13 @@ partial void ProcessUpdateDynamicVariablesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessUpdateDynamicVariablesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessUpdateDynamicVariablesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessUpdateDynamicVariablesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessUpdateDynamicVariablesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessUpdateDynamicVariablesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -516,7 +516,7 @@ partial void ProcessUpdateDynamicVariablesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -561,7 +561,7 @@ partial void ProcessUpdateDynamicVariablesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateEvaluationConfig.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateEvaluationConfig.g.cs index e64de8fd..efa86b9c 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateEvaluationConfig.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateEvaluationConfig.g.cs @@ -372,13 +372,13 @@ partial void ProcessUpdateEvaluationConfigResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessUpdateEvaluationConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessUpdateEvaluationConfigResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessUpdateEvaluationConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -469,7 +469,7 @@ partial void ProcessUpdateEvaluationConfigResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -514,7 +514,7 @@ partial void ProcessUpdateEvaluationConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateTool.g.cs b/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateTool.g.cs index cedcecba..edca0c3f 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateTool.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentClient.UpdateTool.g.cs @@ -403,13 +403,13 @@ partial void ProcessUpdateToolResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessUpdateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -440,13 +440,13 @@ partial void ProcessUpdateToolResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -457,7 +457,7 @@ partial void ProcessUpdateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -477,13 +477,13 @@ partial void ProcessUpdateToolResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -494,7 +494,7 @@ partial void ProcessUpdateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -514,13 +514,13 @@ partial void ProcessUpdateToolResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -531,7 +531,7 @@ partial void ProcessUpdateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -574,7 +574,7 @@ partial void ProcessUpdateToolResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -619,7 +619,7 @@ partial void ProcessUpdateToolResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentsClient.AttachSkill.g.cs b/src/libs/Speechify/Generated/Speechify.AgentsClient.AttachSkill.g.cs index 0f36a0ee..2aeb8e90 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentsClient.AttachSkill.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentsClient.AttachSkill.g.cs @@ -403,13 +403,13 @@ partial void ProcessAttachSkillResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessAttachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -440,13 +440,13 @@ partial void ProcessAttachSkillResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -457,7 +457,7 @@ partial void ProcessAttachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -477,13 +477,13 @@ partial void ProcessAttachSkillResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -494,7 +494,7 @@ partial void ProcessAttachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -514,13 +514,13 @@ partial void ProcessAttachSkillResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -531,7 +531,7 @@ partial void ProcessAttachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -551,13 +551,13 @@ partial void ProcessAttachSkillResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -568,7 +568,7 @@ partial void ProcessAttachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -611,7 +611,7 @@ partial void ProcessAttachSkillResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -656,7 +656,7 @@ partial void ProcessAttachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentsClient.DetachSkill.g.cs b/src/libs/Speechify/Generated/Speechify.AgentsClient.DetachSkill.g.cs index 556911a5..aad0a16e 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentsClient.DetachSkill.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentsClient.DetachSkill.g.cs @@ -365,13 +365,13 @@ partial void ProcessDetachSkillResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -382,7 +382,7 @@ partial void ProcessDetachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -402,13 +402,13 @@ partial void ProcessDetachSkillResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -419,7 +419,7 @@ partial void ProcessDetachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -439,13 +439,13 @@ partial void ProcessDetachSkillResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -456,7 +456,7 @@ partial void ProcessDetachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -497,7 +497,7 @@ partial void ProcessDetachSkillResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -540,7 +540,7 @@ partial void ProcessDetachSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentsClient.ListSkills.g.cs b/src/libs/Speechify/Generated/Speechify.AgentsClient.ListSkills.g.cs index f43631ec..939d3df7 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentsClient.ListSkills.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentsClient.ListSkills.g.cs @@ -388,13 +388,13 @@ partial void ProcessListSkillsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +405,7 @@ partial void ProcessListSkillsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -425,13 +425,13 @@ partial void ProcessListSkillsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessListSkillsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -462,13 +462,13 @@ partial void ProcessListSkillsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -479,7 +479,7 @@ partial void ProcessListSkillsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -522,7 +522,7 @@ partial void ProcessListSkillsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -567,7 +567,7 @@ partial void ProcessListSkillsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AgentsClient.UpdateSkill.g.cs b/src/libs/Speechify/Generated/Speechify.AgentsClient.UpdateSkill.g.cs index a4f742f2..f8bf088f 100644 --- a/src/libs/Speechify/Generated/Speechify.AgentsClient.UpdateSkill.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AgentsClient.UpdateSkill.g.cs @@ -389,13 +389,13 @@ partial void ProcessUpdateSkillResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessUpdateSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -426,13 +426,13 @@ partial void ProcessUpdateSkillResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessUpdateSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -463,13 +463,13 @@ partial void ProcessUpdateSkillResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -480,7 +480,7 @@ partial void ProcessUpdateSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -500,13 +500,13 @@ partial void ProcessUpdateSkillResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -517,7 +517,7 @@ partial void ProcessUpdateSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -537,13 +537,13 @@ partial void ProcessUpdateSkillResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -554,7 +554,7 @@ partial void ProcessUpdateSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -597,7 +597,7 @@ partial void ProcessUpdateSkillResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -642,7 +642,7 @@ partial void ProcessUpdateSkillResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Delete.g.cs index 7bd49339..20a52fa7 100644 --- a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Delete.g.cs @@ -358,13 +358,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -453,7 +453,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -496,7 +496,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Get.g.cs index 6f9d1344..25689639 100644 --- a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Get.g.cs @@ -356,13 +356,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -393,13 +393,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -453,7 +453,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -498,7 +498,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.GetBytes.g.cs b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.GetBytes.g.cs index 835a2063..6baed63c 100644 --- a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.GetBytes.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.GetBytes.g.cs @@ -383,7 +383,7 @@ partial void ProcessGetBytesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -721,7 +721,7 @@ partial void ProcessGetBytesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1091,7 +1091,7 @@ partial void ProcessGetBytesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.List.g.cs index f28d1d0c..bd2e300a 100644 --- a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.List.g.cs @@ -389,13 +389,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -426,13 +426,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -463,13 +463,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -480,7 +480,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -523,7 +523,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -568,7 +568,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Upload.g.cs b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Upload.g.cs index 9ed991e6..ca0fa3b6 100644 --- a/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Upload.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AudioAssetsClient.Upload.g.cs @@ -421,13 +421,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -438,7 +438,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -458,13 +458,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -475,7 +475,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -518,7 +518,7 @@ request.Filename is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -563,7 +563,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -994,13 +994,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1011,7 +1011,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1031,13 +1031,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1048,7 +1048,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1087,7 +1087,7 @@ request.Filename is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1128,7 +1128,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1509,13 +1509,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1526,7 +1526,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1546,13 +1546,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1563,7 +1563,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1606,7 +1606,7 @@ request.Filename is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1651,7 +1651,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AudioClient.Speech.g.cs b/src/libs/Speechify/Generated/Speechify.AudioClient.Speech.g.cs index 6bdd4e5b..a2405867 100644 --- a/src/libs/Speechify/Generated/Speechify.AudioClient.Speech.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AudioClient.Speech.g.cs @@ -371,13 +371,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -388,7 +388,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -408,13 +408,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -425,7 +425,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -445,13 +445,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -462,7 +462,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -482,13 +482,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -499,7 +499,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -519,13 +519,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -536,7 +536,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -556,13 +556,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -573,7 +573,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -593,13 +593,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -610,7 +610,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -630,13 +630,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -647,7 +647,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -667,13 +667,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -684,7 +684,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -704,13 +704,13 @@ partial void ProcessSpeechResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -721,7 +721,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -764,7 +764,7 @@ partial void ProcessSpeechResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -809,7 +809,7 @@ partial void ProcessSpeechResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AudioClient.Stream.g.cs b/src/libs/Speechify/Generated/Speechify.AudioClient.Stream.g.cs index 94d3054b..173fa4ab 100644 --- a/src/libs/Speechify/Generated/Speechify.AudioClient.Stream.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AudioClient.Stream.g.cs @@ -388,13 +388,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +405,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -425,13 +425,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -462,13 +462,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -479,7 +479,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -499,13 +499,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -516,7 +516,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -536,13 +536,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -553,7 +553,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -573,13 +573,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -590,7 +590,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -610,13 +610,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -627,7 +627,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -647,13 +647,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -664,7 +664,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -684,13 +684,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -701,7 +701,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -721,13 +721,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -738,7 +738,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -781,7 +781,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1111,13 +1111,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1128,7 +1128,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1148,13 +1148,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1165,7 +1165,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1185,13 +1185,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1202,7 +1202,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -1222,13 +1222,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1239,7 +1239,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -1259,13 +1259,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1276,7 +1276,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -1296,13 +1296,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1313,7 +1313,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -1333,13 +1333,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1350,7 +1350,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -1370,13 +1370,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1387,7 +1387,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -1407,13 +1407,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1424,7 +1424,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -1444,13 +1444,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1461,7 +1461,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -1508,7 +1508,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1837,13 +1837,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1854,7 +1854,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1874,13 +1874,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1891,7 +1891,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1911,13 +1911,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1928,7 +1928,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -1948,13 +1948,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1965,7 +1965,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -1985,13 +1985,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2002,7 +2002,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -2022,13 +2022,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2039,7 +2039,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -2059,13 +2059,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2076,7 +2076,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -2096,13 +2096,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2113,7 +2113,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -2133,13 +2133,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2150,7 +2150,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -2170,13 +2170,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2187,7 +2187,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -2267,7 +2267,7 @@ partial void ProcessStreamResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.AudioClient.StreamWithTimestamps.g.cs b/src/libs/Speechify/Generated/Speechify.AudioClient.StreamWithTimestamps.g.cs index ea4b64f1..5f8ab4c7 100644 --- a/src/libs/Speechify/Generated/Speechify.AudioClient.StreamWithTimestamps.g.cs +++ b/src/libs/Speechify/Generated/Speechify.AudioClient.StreamWithTimestamps.g.cs @@ -366,13 +366,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -383,7 +383,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -403,13 +403,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -440,13 +440,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -457,7 +457,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -477,13 +477,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -494,7 +494,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -514,13 +514,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -531,7 +531,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -551,13 +551,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -568,7 +568,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -588,13 +588,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -605,7 +605,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -625,13 +625,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -642,7 +642,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -662,13 +662,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -679,7 +679,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -699,13 +699,13 @@ partial void ProcessStreamWithTimestampsResponse( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -716,7 +716,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -747,7 +747,7 @@ partial void ProcessStreamWithTimestampsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Cancel.g.cs b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Cancel.g.cs index ed68aaa2..0ad33511 100644 --- a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Cancel.g.cs +++ b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Cancel.g.cs @@ -364,13 +364,13 @@ partial void ProcessCancelResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -381,7 +381,7 @@ partial void ProcessCancelResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -401,13 +401,13 @@ partial void ProcessCancelResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -418,7 +418,7 @@ partial void ProcessCancelResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -461,7 +461,7 @@ partial void ProcessCancelResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -506,7 +506,7 @@ partial void ProcessCancelResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Create.g.cs index 6bccb183..ce5f1006 100644 --- a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Create.g.cs @@ -390,13 +390,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -407,7 +407,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -427,13 +427,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -444,7 +444,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -464,13 +464,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -481,7 +481,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -524,7 +524,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -569,7 +569,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Get.g.cs index 34cf1eaf..f92a6261 100644 --- a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.Get.g.cs @@ -354,13 +354,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -391,13 +391,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -451,7 +451,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -496,7 +496,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.List.g.cs index 34f5ea3b..d46c8768 100644 --- a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.List.g.cs @@ -387,13 +387,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -404,7 +404,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -424,13 +424,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -441,7 +441,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -461,13 +461,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -478,7 +478,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -521,7 +521,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -566,7 +566,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.ListRecipients.g.cs b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.ListRecipients.g.cs index f8f8cbe0..7e19340f 100644 --- a/src/libs/Speechify/Generated/Speechify.BatchCallsClient.ListRecipients.g.cs +++ b/src/libs/Speechify/Generated/Speechify.BatchCallsClient.ListRecipients.g.cs @@ -380,13 +380,13 @@ partial void ProcessListRecipientsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -397,7 +397,7 @@ partial void ProcessListRecipientsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -417,13 +417,13 @@ partial void ProcessListRecipientsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -434,7 +434,7 @@ partial void ProcessListRecipientsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -477,7 +477,7 @@ partial void ProcessListRecipientsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -522,7 +522,7 @@ partial void ProcessListRecipientsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CallersClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.CallersClient.Delete.g.cs index f48ed0cc..a9c927a9 100644 --- a/src/libs/Speechify/Generated/Speechify.CallersClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CallersClient.Delete.g.cs @@ -374,13 +374,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -391,7 +391,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -434,7 +434,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -479,7 +479,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CallersClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.CallersClient.Get.g.cs index c361c730..fabf1d9f 100644 --- a/src/libs/Speechify/Generated/Speechify.CallersClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CallersClient.Get.g.cs @@ -356,13 +356,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -393,13 +393,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -453,7 +453,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -498,7 +498,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CallersClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.CallersClient.List.g.cs index 29478e13..11fcf890 100644 --- a/src/libs/Speechify/Generated/Speechify.CallersClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CallersClient.List.g.cs @@ -429,13 +429,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -446,7 +446,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -466,13 +466,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -483,7 +483,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -503,13 +503,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -520,7 +520,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -563,7 +563,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -608,7 +608,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CallersClient.ListConversations.g.cs b/src/libs/Speechify/Generated/Speechify.CallersClient.ListConversations.g.cs index 281dcf17..84b1df16 100644 --- a/src/libs/Speechify/Generated/Speechify.CallersClient.ListConversations.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CallersClient.ListConversations.g.cs @@ -382,13 +382,13 @@ partial void ProcessListConversationsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessListConversationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessListConversationsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessListConversationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -479,7 +479,7 @@ partial void ProcessListConversationsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -524,7 +524,7 @@ partial void ProcessListConversationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CallersClient.ListMemories.g.cs b/src/libs/Speechify/Generated/Speechify.CallersClient.ListMemories.g.cs index 8e15e5dd..4505f45f 100644 --- a/src/libs/Speechify/Generated/Speechify.CallersClient.ListMemories.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CallersClient.ListMemories.g.cs @@ -384,13 +384,13 @@ partial void ProcessListMemoriesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -401,7 +401,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -421,13 +421,13 @@ partial void ProcessListMemoriesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -438,7 +438,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -481,7 +481,7 @@ partial void ProcessListMemoriesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -526,7 +526,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CallersClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.CallersClient.Update.g.cs index 1a8368ef..21a96464 100644 --- a/src/libs/Speechify/Generated/Speechify.CallersClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CallersClient.Update.g.cs @@ -378,13 +378,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -415,13 +415,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -432,7 +432,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -452,13 +452,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -469,7 +469,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -512,7 +512,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -557,7 +557,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConsentChallengesClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.ConsentChallengesClient.Create.g.cs index bad303a7..b832c12f 100644 --- a/src/libs/Speechify/Generated/Speechify.ConsentChallengesClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConsentChallengesClient.Create.g.cs @@ -386,13 +386,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -423,13 +423,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -460,13 +460,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -497,13 +497,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -514,7 +514,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -534,13 +534,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -551,7 +551,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -571,13 +571,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -588,7 +588,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -608,13 +608,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -625,7 +625,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -645,13 +645,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -662,7 +662,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -682,13 +682,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -699,7 +699,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -742,7 +742,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -787,7 +787,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.AttachIdentifier.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.AttachIdentifier.g.cs index b6b9c011..b736c727 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.AttachIdentifier.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.AttachIdentifier.g.cs @@ -394,13 +394,13 @@ partial void ProcessAttachIdentifierResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -411,7 +411,7 @@ partial void ProcessAttachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -431,13 +431,13 @@ partial void ProcessAttachIdentifierResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -448,7 +448,7 @@ partial void ProcessAttachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -468,13 +468,13 @@ partial void ProcessAttachIdentifierResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -485,7 +485,7 @@ partial void ProcessAttachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -505,13 +505,13 @@ partial void ProcessAttachIdentifierResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -522,7 +522,7 @@ partial void ProcessAttachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -542,13 +542,13 @@ partial void ProcessAttachIdentifierResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -559,7 +559,7 @@ partial void ProcessAttachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -602,7 +602,7 @@ partial void ProcessAttachIdentifierResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -647,7 +647,7 @@ partial void ProcessAttachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.Delete.g.cs index 74b24caf..d0d9fe77 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.Delete.g.cs @@ -432,13 +432,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -469,13 +469,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -506,13 +506,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -523,7 +523,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -566,7 +566,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -611,7 +611,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.DeleteResolver.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.DeleteResolver.g.cs index f6f65af7..f362ee5f 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.DeleteResolver.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.DeleteResolver.g.cs @@ -347,13 +347,13 @@ partial void ProcessDeleteResolverResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -364,7 +364,7 @@ partial void ProcessDeleteResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -384,13 +384,13 @@ partial void ProcessDeleteResolverResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -401,7 +401,7 @@ partial void ProcessDeleteResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -421,13 +421,13 @@ partial void ProcessDeleteResolverResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -438,7 +438,7 @@ partial void ProcessDeleteResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -479,7 +479,7 @@ partial void ProcessDeleteResolverResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -522,7 +522,7 @@ partial void ProcessDeleteResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.DetachIdentifier.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.DetachIdentifier.g.cs index f783bd92..6bb86d70 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.DetachIdentifier.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.DetachIdentifier.g.cs @@ -367,13 +367,13 @@ partial void ProcessDetachIdentifierResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -384,7 +384,7 @@ partial void ProcessDetachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -404,13 +404,13 @@ partial void ProcessDetachIdentifierResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -421,7 +421,7 @@ partial void ProcessDetachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -441,13 +441,13 @@ partial void ProcessDetachIdentifierResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -458,7 +458,7 @@ partial void ProcessDetachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -499,7 +499,7 @@ partial void ProcessDetachIdentifierResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -542,7 +542,7 @@ partial void ProcessDetachIdentifierResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.Get.g.cs index 12c36acd..86139785 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.Get.g.cs @@ -358,13 +358,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -455,7 +455,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -500,7 +500,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.GetResolver.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.GetResolver.g.cs index 99b5bf95..0a4aa9dd 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.GetResolver.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.GetResolver.g.cs @@ -349,13 +349,13 @@ partial void ProcessGetResolverResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -366,7 +366,7 @@ partial void ProcessGetResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -386,13 +386,13 @@ partial void ProcessGetResolverResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessGetResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -423,13 +423,13 @@ partial void ProcessGetResolverResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessGetResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -483,7 +483,7 @@ partial void ProcessGetResolverResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -528,7 +528,7 @@ partial void ProcessGetResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.List.g.cs index b4a46ed3..16f83093 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.List.g.cs @@ -405,13 +405,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -422,7 +422,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -442,13 +442,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -459,7 +459,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -502,7 +502,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -547,7 +547,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.Merge.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.Merge.g.cs index f933f763..4547ecbb 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.Merge.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.Merge.g.cs @@ -411,13 +411,13 @@ partial void ProcessMergeResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -428,7 +428,7 @@ partial void ProcessMergeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -448,13 +448,13 @@ partial void ProcessMergeResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -465,7 +465,7 @@ partial void ProcessMergeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -485,13 +485,13 @@ partial void ProcessMergeResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessMergeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -522,13 +522,13 @@ partial void ProcessMergeResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessMergeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -559,13 +559,13 @@ partial void ProcessMergeResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -576,7 +576,7 @@ partial void ProcessMergeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -619,7 +619,7 @@ partial void ProcessMergeResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -664,7 +664,7 @@ partial void ProcessMergeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.RotateResolverSecret.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.RotateResolverSecret.g.cs index 90fea1ce..90d0d45e 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.RotateResolverSecret.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.RotateResolverSecret.g.cs @@ -351,13 +351,13 @@ partial void ProcessRotateResolverSecretResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -368,7 +368,7 @@ partial void ProcessRotateResolverSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -388,13 +388,13 @@ partial void ProcessRotateResolverSecretResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +405,7 @@ partial void ProcessRotateResolverSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -425,13 +425,13 @@ partial void ProcessRotateResolverSecretResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessRotateResolverSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -485,7 +485,7 @@ partial void ProcessRotateResolverSecretResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -530,7 +530,7 @@ partial void ProcessRotateResolverSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.SetResolver.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.SetResolver.g.cs index 9216ca1b..b5d78305 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.SetResolver.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.SetResolver.g.cs @@ -403,13 +403,13 @@ partial void ProcessSetResolverResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessSetResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -440,13 +440,13 @@ partial void ProcessSetResolverResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -457,7 +457,7 @@ partial void ProcessSetResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -477,13 +477,13 @@ partial void ProcessSetResolverResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -494,7 +494,7 @@ partial void ProcessSetResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -537,7 +537,7 @@ partial void ProcessSetResolverResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -582,7 +582,7 @@ partial void ProcessSetResolverResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ContactsClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.ContactsClient.Update.g.cs index 5921b10b..d1114958 100644 --- a/src/libs/Speechify/Generated/Speechify.ContactsClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ContactsClient.Update.g.cs @@ -382,13 +382,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -493,13 +493,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -510,7 +510,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -553,7 +553,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -598,7 +598,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.CancelPrompt.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.CancelPrompt.g.cs index 69a434e5..80b2683f 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.CancelPrompt.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.CancelPrompt.g.cs @@ -386,13 +386,13 @@ partial void ProcessCancelPromptResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessCancelPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -423,13 +423,13 @@ partial void ProcessCancelPromptResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessCancelPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -460,13 +460,13 @@ partial void ProcessCancelPromptResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessCancelPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -520,7 +520,7 @@ partial void ProcessCancelPromptResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -565,7 +565,7 @@ partial void ProcessCancelPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.Get.g.cs index 5a139556..9a87f8eb 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.Get.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -449,7 +449,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.GetPrompt.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.GetPrompt.g.cs index 2beb7510..bf1379ef 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.GetPrompt.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.GetPrompt.g.cs @@ -367,13 +367,13 @@ partial void ProcessGetPromptResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -384,7 +384,7 @@ partial void ProcessGetPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -404,13 +404,13 @@ partial void ProcessGetPromptResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -421,7 +421,7 @@ partial void ProcessGetPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -441,13 +441,13 @@ partial void ProcessGetPromptResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -458,7 +458,7 @@ partial void ProcessGetPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -501,7 +501,7 @@ partial void ProcessGetPromptResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -546,7 +546,7 @@ partial void ProcessGetPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.List.g.cs index cf1a9239..0bb1c33a 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.List.g.cs @@ -557,13 +557,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -574,7 +574,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -594,13 +594,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -611,7 +611,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -631,13 +631,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -648,7 +648,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -691,7 +691,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -736,7 +736,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListEvaluations.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListEvaluations.g.cs index 517ab62d..4786a448 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListEvaluations.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListEvaluations.g.cs @@ -382,13 +382,13 @@ partial void ProcessListEvaluationsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessListEvaluationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessListEvaluationsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessListEvaluationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessListEvaluationsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessListEvaluationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -516,7 +516,7 @@ partial void ProcessListEvaluationsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -561,7 +561,7 @@ partial void ProcessListEvaluationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListMemories.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListMemories.g.cs index f6a33188..c7878234 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListMemories.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListMemories.g.cs @@ -378,13 +378,13 @@ partial void ProcessListMemoriesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -415,13 +415,13 @@ partial void ProcessListMemoriesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -432,7 +432,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -452,13 +452,13 @@ partial void ProcessListMemoriesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -469,7 +469,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -512,7 +512,7 @@ partial void ProcessListMemoriesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -557,7 +557,7 @@ partial void ProcessListMemoriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListMessages.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListMessages.g.cs index 1e5fdd99..8489fd8b 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListMessages.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListMessages.g.cs @@ -384,13 +384,13 @@ partial void ProcessListMessagesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -401,7 +401,7 @@ partial void ProcessListMessagesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -421,13 +421,13 @@ partial void ProcessListMessagesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -438,7 +438,7 @@ partial void ProcessListMessagesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -458,13 +458,13 @@ partial void ProcessListMessagesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -475,7 +475,7 @@ partial void ProcessListMessagesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -518,7 +518,7 @@ partial void ProcessListMessagesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -563,7 +563,7 @@ partial void ProcessListMessagesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListRetrievalLog.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListRetrievalLog.g.cs index 840a59e9..bbe8a253 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListRetrievalLog.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListRetrievalLog.g.cs @@ -392,13 +392,13 @@ partial void ProcessListRetrievalLogResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -409,7 +409,7 @@ partial void ProcessListRetrievalLogResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -429,13 +429,13 @@ partial void ProcessListRetrievalLogResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -446,7 +446,7 @@ partial void ProcessListRetrievalLogResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -466,13 +466,13 @@ partial void ProcessListRetrievalLogResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -483,7 +483,7 @@ partial void ProcessListRetrievalLogResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -526,7 +526,7 @@ partial void ProcessListRetrievalLogResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -571,7 +571,7 @@ partial void ProcessListRetrievalLogResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListWebhookDeliveries.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListWebhookDeliveries.g.cs index 6c56cbd8..21beb07a 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListWebhookDeliveries.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.ListWebhookDeliveries.g.cs @@ -402,13 +402,13 @@ partial void ProcessListWebhookDeliveriesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -419,7 +419,7 @@ partial void ProcessListWebhookDeliveriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -439,13 +439,13 @@ partial void ProcessListWebhookDeliveriesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -456,7 +456,7 @@ partial void ProcessListWebhookDeliveriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -476,13 +476,13 @@ partial void ProcessListWebhookDeliveriesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -493,7 +493,7 @@ partial void ProcessListWebhookDeliveriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -536,7 +536,7 @@ partial void ProcessListWebhookDeliveriesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -581,7 +581,7 @@ partial void ProcessListWebhookDeliveriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.Prompt.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.Prompt.g.cs index 12b76879..3833fc0b 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.Prompt.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.Prompt.g.cs @@ -463,13 +463,13 @@ partial void ProcessPromptResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -480,7 +480,7 @@ partial void ProcessPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -500,13 +500,13 @@ partial void ProcessPromptResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -517,7 +517,7 @@ partial void ProcessPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -537,13 +537,13 @@ partial void ProcessPromptResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -554,7 +554,7 @@ partial void ProcessPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -574,13 +574,13 @@ partial void ProcessPromptResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -591,7 +591,7 @@ partial void ProcessPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -611,13 +611,13 @@ partial void ProcessPromptResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -628,7 +628,7 @@ partial void ProcessPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -648,13 +648,13 @@ partial void ProcessPromptResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -665,7 +665,7 @@ partial void ProcessPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -685,13 +685,13 @@ partial void ProcessPromptResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -702,7 +702,7 @@ partial void ProcessPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -745,7 +745,7 @@ partial void ProcessPromptResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -790,7 +790,7 @@ partial void ProcessPromptResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.RecentCallees.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.RecentCallees.g.cs index 540a0485..66fbd56d 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.RecentCallees.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.RecentCallees.g.cs @@ -377,13 +377,13 @@ partial void ProcessRecentCalleesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -394,7 +394,7 @@ partial void ProcessRecentCalleesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -414,13 +414,13 @@ partial void ProcessRecentCalleesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -431,7 +431,7 @@ partial void ProcessRecentCalleesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -474,7 +474,7 @@ partial void ProcessRecentCalleesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -519,7 +519,7 @@ partial void ProcessRecentCalleesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.Stats.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.Stats.g.cs index 6e6e03a5..4680d048 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.Stats.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.Stats.g.cs @@ -521,13 +521,13 @@ partial void ProcessStatsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -538,7 +538,7 @@ partial void ProcessStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -558,13 +558,13 @@ partial void ProcessStatsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -575,7 +575,7 @@ partial void ProcessStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -595,13 +595,13 @@ partial void ProcessStatsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -612,7 +612,7 @@ partial void ProcessStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -655,7 +655,7 @@ partial void ProcessStatsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -700,7 +700,7 @@ partial void ProcessStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ConversationsClient.StreamRecording.g.cs b/src/libs/Speechify/Generated/Speechify.ConversationsClient.StreamRecording.g.cs index 4b7ecf01..edcfea73 100644 --- a/src/libs/Speechify/Generated/Speechify.ConversationsClient.StreamRecording.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ConversationsClient.StreamRecording.g.cs @@ -362,13 +362,13 @@ partial void ProcessStreamRecordingResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -379,7 +379,7 @@ partial void ProcessStreamRecordingResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -399,13 +399,13 @@ partial void ProcessStreamRecordingResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -416,7 +416,7 @@ partial void ProcessStreamRecordingResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -459,7 +459,7 @@ partial void ProcessStreamRecordingResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -771,13 +771,13 @@ partial void ProcessStreamRecordingResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -788,7 +788,7 @@ partial void ProcessStreamRecordingResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -808,13 +808,13 @@ partial void ProcessStreamRecordingResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -825,7 +825,7 @@ partial void ProcessStreamRecordingResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -872,7 +872,7 @@ partial void ProcessStreamRecordingResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1183,13 +1183,13 @@ partial void ProcessStreamRecordingResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1200,7 +1200,7 @@ partial void ProcessStreamRecordingResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1220,13 +1220,13 @@ partial void ProcessStreamRecordingResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1237,7 +1237,7 @@ partial void ProcessStreamRecordingResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -1317,7 +1317,7 @@ partial void ProcessStreamRecordingResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CredentialsClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.CredentialsClient.Create.g.cs index 43dc0a7e..f0722d17 100644 --- a/src/libs/Speechify/Generated/Speechify.CredentialsClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CredentialsClient.Create.g.cs @@ -383,13 +383,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +400,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -420,13 +420,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -437,7 +437,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -457,13 +457,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -474,7 +474,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -517,7 +517,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -562,7 +562,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CredentialsClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.CredentialsClient.Delete.g.cs index 2428bec0..0832bedb 100644 --- a/src/libs/Speechify/Generated/Speechify.CredentialsClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CredentialsClient.Delete.g.cs @@ -358,13 +358,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -432,13 +432,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.CredentialInUseError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.CredentialInUseError.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.CredentialInUseError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.CredentialInUseError.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -490,7 +490,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -533,7 +533,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CredentialsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.CredentialsClient.Get.g.cs index 054eb2d2..55247746 100644 --- a/src/libs/Speechify/Generated/Speechify.CredentialsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CredentialsClient.Get.g.cs @@ -360,13 +360,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -377,7 +377,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -397,13 +397,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -414,7 +414,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -457,7 +457,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -502,7 +502,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CredentialsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.CredentialsClient.List.g.cs index 7c0425bd..79d94a7e 100644 --- a/src/libs/Speechify/Generated/Speechify.CredentialsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CredentialsClient.List.g.cs @@ -389,13 +389,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -426,13 +426,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -463,13 +463,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -480,7 +480,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -523,7 +523,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -568,7 +568,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.CredentialsClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.CredentialsClient.Update.g.cs index 25d49639..99bbe149 100644 --- a/src/libs/Speechify/Generated/Speechify.CredentialsClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.CredentialsClient.Update.g.cs @@ -380,13 +380,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -397,7 +397,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -417,13 +417,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -434,7 +434,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -454,13 +454,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -471,7 +471,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -491,13 +491,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -508,7 +508,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -551,7 +551,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -596,7 +596,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.DocumentsClient.AggregateDocuments.g.cs b/src/libs/Speechify/Generated/Speechify.DocumentsClient.AggregateDocuments.g.cs index d6db478b..014483e3 100644 --- a/src/libs/Speechify/Generated/Speechify.DocumentsClient.AggregateDocuments.g.cs +++ b/src/libs/Speechify/Generated/Speechify.DocumentsClient.AggregateDocuments.g.cs @@ -411,13 +411,13 @@ partial void ProcessAggregateDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -428,7 +428,7 @@ partial void ProcessAggregateDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -448,13 +448,13 @@ partial void ProcessAggregateDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -465,7 +465,7 @@ partial void ProcessAggregateDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -485,13 +485,13 @@ partial void ProcessAggregateDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessAggregateDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -522,13 +522,13 @@ partial void ProcessAggregateDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessAggregateDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -582,7 +582,7 @@ partial void ProcessAggregateDocumentsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -627,7 +627,7 @@ partial void ProcessAggregateDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.DocumentsClient.BatchDocuments.g.cs b/src/libs/Speechify/Generated/Speechify.DocumentsClient.BatchDocuments.g.cs index 877f1d84..0664b821 100644 --- a/src/libs/Speechify/Generated/Speechify.DocumentsClient.BatchDocuments.g.cs +++ b/src/libs/Speechify/Generated/Speechify.DocumentsClient.BatchDocuments.g.cs @@ -406,13 +406,13 @@ partial void ProcessBatchDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -423,7 +423,7 @@ partial void ProcessBatchDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -443,13 +443,13 @@ partial void ProcessBatchDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -460,7 +460,7 @@ partial void ProcessBatchDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -480,13 +480,13 @@ partial void ProcessBatchDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -497,7 +497,7 @@ partial void ProcessBatchDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -517,13 +517,13 @@ partial void ProcessBatchDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -534,7 +534,7 @@ partial void ProcessBatchDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -554,13 +554,13 @@ partial void ProcessBatchDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -571,7 +571,7 @@ partial void ProcessBatchDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -591,13 +591,13 @@ partial void ProcessBatchDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -608,7 +608,7 @@ partial void ProcessBatchDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -651,7 +651,7 @@ partial void ProcessBatchDocumentsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -696,7 +696,7 @@ partial void ProcessBatchDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.DocumentsClient.CreateDocument.g.cs b/src/libs/Speechify/Generated/Speechify.DocumentsClient.CreateDocument.g.cs index 18ba9853..69d98383 100644 --- a/src/libs/Speechify/Generated/Speechify.DocumentsClient.CreateDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.DocumentsClient.CreateDocument.g.cs @@ -408,13 +408,13 @@ partial void ProcessCreateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -425,7 +425,7 @@ partial void ProcessCreateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -445,13 +445,13 @@ partial void ProcessCreateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -462,7 +462,7 @@ partial void ProcessCreateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -482,13 +482,13 @@ partial void ProcessCreateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -499,7 +499,7 @@ partial void ProcessCreateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -519,13 +519,13 @@ partial void ProcessCreateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -536,7 +536,7 @@ partial void ProcessCreateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -556,13 +556,13 @@ partial void ProcessCreateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -573,7 +573,7 @@ partial void ProcessCreateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -593,13 +593,13 @@ partial void ProcessCreateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -610,7 +610,7 @@ partial void ProcessCreateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -653,7 +653,7 @@ partial void ProcessCreateDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -698,7 +698,7 @@ partial void ProcessCreateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.DocumentsClient.DeleteDocument.g.cs b/src/libs/Speechify/Generated/Speechify.DocumentsClient.DeleteDocument.g.cs index cb65b912..1970c3c1 100644 --- a/src/libs/Speechify/Generated/Speechify.DocumentsClient.DeleteDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.DocumentsClient.DeleteDocument.g.cs @@ -387,13 +387,13 @@ partial void ProcessDeleteDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -404,7 +404,7 @@ partial void ProcessDeleteDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -424,13 +424,13 @@ partial void ProcessDeleteDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -441,7 +441,7 @@ partial void ProcessDeleteDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -461,13 +461,13 @@ partial void ProcessDeleteDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -478,7 +478,7 @@ partial void ProcessDeleteDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -498,13 +498,13 @@ partial void ProcessDeleteDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -515,7 +515,7 @@ partial void ProcessDeleteDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -535,13 +535,13 @@ partial void ProcessDeleteDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_412 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_412 = global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); + __value_412 = __content_412 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); } else { __content_412 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_412 = global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); + __value_412 = __content_412 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -552,7 +552,7 @@ partial void ProcessDeleteDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_412 is { Length: > 0 } ? __content_412 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, responseBody: __content_412, responseObject: __value_412, @@ -593,7 +593,7 @@ partial void ProcessDeleteDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -636,7 +636,7 @@ partial void ProcessDeleteDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.DocumentsClient.GetDocument.g.cs b/src/libs/Speechify/Generated/Speechify.DocumentsClient.GetDocument.g.cs index 0e5f720c..2e23b2d5 100644 --- a/src/libs/Speechify/Generated/Speechify.DocumentsClient.GetDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.DocumentsClient.GetDocument.g.cs @@ -372,13 +372,13 @@ partial void ProcessGetDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessGetDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessGetDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessGetDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessGetDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessGetDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -483,13 +483,13 @@ partial void ProcessGetDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessGetDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -543,7 +543,7 @@ partial void ProcessGetDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -588,7 +588,7 @@ partial void ProcessGetDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.DocumentsClient.ListDocuments.g.cs b/src/libs/Speechify/Generated/Speechify.DocumentsClient.ListDocuments.g.cs index 5d044f71..6edbc6e3 100644 --- a/src/libs/Speechify/Generated/Speechify.DocumentsClient.ListDocuments.g.cs +++ b/src/libs/Speechify/Generated/Speechify.DocumentsClient.ListDocuments.g.cs @@ -403,13 +403,13 @@ partial void ProcessListDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessListDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -440,13 +440,13 @@ partial void ProcessListDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -457,7 +457,7 @@ partial void ProcessListDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -477,13 +477,13 @@ partial void ProcessListDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -494,7 +494,7 @@ partial void ProcessListDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -514,13 +514,13 @@ partial void ProcessListDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -531,7 +531,7 @@ partial void ProcessListDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -574,7 +574,7 @@ partial void ProcessListDocumentsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -619,7 +619,7 @@ partial void ProcessListDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.DocumentsClient.PutDocument.g.cs b/src/libs/Speechify/Generated/Speechify.DocumentsClient.PutDocument.g.cs index 5efd784d..f97982b5 100644 --- a/src/libs/Speechify/Generated/Speechify.DocumentsClient.PutDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.DocumentsClient.PutDocument.g.cs @@ -423,13 +423,13 @@ partial void ProcessPutDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessPutDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -460,13 +460,13 @@ partial void ProcessPutDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessPutDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -497,13 +497,13 @@ partial void ProcessPutDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -514,7 +514,7 @@ partial void ProcessPutDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -534,13 +534,13 @@ partial void ProcessPutDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -551,7 +551,7 @@ partial void ProcessPutDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -571,13 +571,13 @@ partial void ProcessPutDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -588,7 +588,7 @@ partial void ProcessPutDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -608,13 +608,13 @@ partial void ProcessPutDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_412 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_412 = global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); + __value_412 = __content_412 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); } else { __content_412 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_412 = global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); + __value_412 = __content_412 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -625,7 +625,7 @@ partial void ProcessPutDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_412 is { Length: > 0 } ? __content_412 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, responseBody: __content_412, responseObject: __value_412, @@ -645,13 +645,13 @@ partial void ProcessPutDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -662,7 +662,7 @@ partial void ProcessPutDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -705,7 +705,7 @@ partial void ProcessPutDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -750,7 +750,7 @@ partial void ProcessPutDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.DocumentsClient.QueryDocuments.g.cs b/src/libs/Speechify/Generated/Speechify.DocumentsClient.QueryDocuments.g.cs index b88e7f46..d3291a42 100644 --- a/src/libs/Speechify/Generated/Speechify.DocumentsClient.QueryDocuments.g.cs +++ b/src/libs/Speechify/Generated/Speechify.DocumentsClient.QueryDocuments.g.cs @@ -395,13 +395,13 @@ partial void ProcessQueryDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessQueryDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -432,13 +432,13 @@ partial void ProcessQueryDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessQueryDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -469,13 +469,13 @@ partial void ProcessQueryDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessQueryDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -506,13 +506,13 @@ partial void ProcessQueryDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -523,7 +523,7 @@ partial void ProcessQueryDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -566,7 +566,7 @@ partial void ProcessQueryDocumentsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -611,7 +611,7 @@ partial void ProcessQueryDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.DocumentsClient.UpdateDocument.g.cs b/src/libs/Speechify/Generated/Speechify.DocumentsClient.UpdateDocument.g.cs index eba192c7..4b3daa39 100644 --- a/src/libs/Speechify/Generated/Speechify.DocumentsClient.UpdateDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.DocumentsClient.UpdateDocument.g.cs @@ -411,13 +411,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -428,7 +428,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -448,13 +448,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -465,7 +465,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -485,13 +485,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -522,13 +522,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -559,13 +559,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_412 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_412 = global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); + __value_412 = __content_412 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); } else { __content_412 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_412 = global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); + __value_412 = __content_412 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_412, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -576,7 +576,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_412 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_412 is { Length: > 0 } ? __content_412 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_412, responseBody: __content_412, responseObject: __value_412, @@ -596,13 +596,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -613,7 +613,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -656,7 +656,7 @@ partial void ProcessUpdateDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -701,7 +701,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.EndpointsClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.EndpointsClient.Create.g.cs index 8ddc0679..c4ca7518 100644 --- a/src/libs/Speechify/Generated/Speechify.EndpointsClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.EndpointsClient.Create.g.cs @@ -375,13 +375,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -392,7 +392,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -412,13 +412,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -429,7 +429,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -449,13 +449,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -466,7 +466,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -486,13 +486,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -503,7 +503,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -523,13 +523,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -540,7 +540,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -583,7 +583,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -628,7 +628,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.EndpointsClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.EndpointsClient.Delete.g.cs index a7f225a7..357c0f78 100644 --- a/src/libs/Speechify/Generated/Speechify.EndpointsClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.EndpointsClient.Delete.g.cs @@ -352,13 +352,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -426,13 +426,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -484,7 +484,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -527,7 +527,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.EndpointsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.EndpointsClient.Get.g.cs index 9afb8729..a22060d6 100644 --- a/src/libs/Speechify/Generated/Speechify.EndpointsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.EndpointsClient.Get.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -449,7 +449,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.EndpointsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.EndpointsClient.List.g.cs index aa392ee0..f3ca1c1b 100644 --- a/src/libs/Speechify/Generated/Speechify.EndpointsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.EndpointsClient.List.g.cs @@ -387,13 +387,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -404,7 +404,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -424,13 +424,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -441,7 +441,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -461,13 +461,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -478,7 +478,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -521,7 +521,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -566,7 +566,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.EndpointsClient.ListDeliveries.g.cs b/src/libs/Speechify/Generated/Speechify.EndpointsClient.ListDeliveries.g.cs index 0810144d..4d275995 100644 --- a/src/libs/Speechify/Generated/Speechify.EndpointsClient.ListDeliveries.g.cs +++ b/src/libs/Speechify/Generated/Speechify.EndpointsClient.ListDeliveries.g.cs @@ -406,13 +406,13 @@ partial void ProcessListDeliveriesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -423,7 +423,7 @@ partial void ProcessListDeliveriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -443,13 +443,13 @@ partial void ProcessListDeliveriesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -460,7 +460,7 @@ partial void ProcessListDeliveriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -480,13 +480,13 @@ partial void ProcessListDeliveriesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -497,7 +497,7 @@ partial void ProcessListDeliveriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -540,7 +540,7 @@ partial void ProcessListDeliveriesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -585,7 +585,7 @@ partial void ProcessListDeliveriesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.EndpointsClient.RotateSecret.g.cs b/src/libs/Speechify/Generated/Speechify.EndpointsClient.RotateSecret.g.cs index 156b1f80..161c8f2b 100644 --- a/src/libs/Speechify/Generated/Speechify.EndpointsClient.RotateSecret.g.cs +++ b/src/libs/Speechify/Generated/Speechify.EndpointsClient.RotateSecret.g.cs @@ -356,13 +356,13 @@ partial void ProcessRotateSecretResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessRotateSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -393,13 +393,13 @@ partial void ProcessRotateSecretResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessRotateSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -430,13 +430,13 @@ partial void ProcessRotateSecretResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -447,7 +447,7 @@ partial void ProcessRotateSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -490,7 +490,7 @@ partial void ProcessRotateSecretResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -535,7 +535,7 @@ partial void ProcessRotateSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.EndpointsClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.EndpointsClient.Update.g.cs index 994a7144..64c35e2e 100644 --- a/src/libs/Speechify/Generated/Speechify.EndpointsClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.EndpointsClient.Update.g.cs @@ -372,13 +372,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -483,13 +483,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -543,7 +543,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -588,7 +588,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FilesClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.FilesClient.Delete.g.cs index e169103f..70d6fe0c 100644 --- a/src/libs/Speechify/Generated/Speechify.FilesClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FilesClient.Delete.g.cs @@ -356,13 +356,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -393,13 +393,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -430,13 +430,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -447,7 +447,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -467,13 +467,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -484,7 +484,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -525,7 +525,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -568,7 +568,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FilesClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.FilesClient.Get.g.cs index ad22666e..9d6b2a64 100644 --- a/src/libs/Speechify/Generated/Speechify.FilesClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FilesClient.Get.g.cs @@ -354,13 +354,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -391,13 +391,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -428,13 +428,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -465,13 +465,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -482,7 +482,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -525,7 +525,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -570,7 +570,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FilesClient.GetContent.g.cs b/src/libs/Speechify/Generated/Speechify.FilesClient.GetContent.g.cs index 21660b57..b3d4dc5c 100644 --- a/src/libs/Speechify/Generated/Speechify.FilesClient.GetContent.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FilesClient.GetContent.g.cs @@ -358,13 +358,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -395,13 +395,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -432,13 +432,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -469,13 +469,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -529,7 +529,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -839,13 +839,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -856,7 +856,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -876,13 +876,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -893,7 +893,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -913,13 +913,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -930,7 +930,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -950,13 +950,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -967,7 +967,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -1014,7 +1014,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1323,13 +1323,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1340,7 +1340,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1360,13 +1360,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1377,7 +1377,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1397,13 +1397,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1414,7 +1414,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -1434,13 +1434,13 @@ partial void ProcessGetContentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1451,7 +1451,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -1531,7 +1531,7 @@ partial void ProcessGetContentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FilesClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.FilesClient.List.g.cs index 6eb77bf0..dc1271bf 100644 --- a/src/libs/Speechify/Generated/Speechify.FilesClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FilesClient.List.g.cs @@ -405,13 +405,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -422,7 +422,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -442,13 +442,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -459,7 +459,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -479,13 +479,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -496,7 +496,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -516,13 +516,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -533,7 +533,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -576,7 +576,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -621,7 +621,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FilesClient.Upload.g.cs b/src/libs/Speechify/Generated/Speechify.FilesClient.Upload.g.cs index 6ca14565..32388df0 100644 --- a/src/libs/Speechify/Generated/Speechify.FilesClient.Upload.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FilesClient.Upload.g.cs @@ -478,13 +478,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -495,7 +495,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -515,13 +515,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -532,7 +532,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -552,13 +552,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -569,7 +569,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -589,13 +589,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -606,7 +606,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -626,13 +626,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -643,7 +643,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -663,13 +663,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -680,7 +680,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -700,13 +700,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -717,7 +717,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -760,7 +760,7 @@ request.Filename is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -805,7 +805,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1361,13 +1361,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1378,7 +1378,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1398,13 +1398,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1415,7 +1415,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1435,13 +1435,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1452,7 +1452,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -1472,13 +1472,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1489,7 +1489,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -1509,13 +1509,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1526,7 +1526,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -1546,13 +1546,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1563,7 +1563,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -1583,13 +1583,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1600,7 +1600,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -1639,7 +1639,7 @@ request.Filename is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1680,7 +1680,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -2136,13 +2136,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2153,7 +2153,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -2173,13 +2173,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2190,7 +2190,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -2210,13 +2210,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2227,7 +2227,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -2247,13 +2247,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2264,7 +2264,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -2284,13 +2284,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2301,7 +2301,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -2321,13 +2321,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2338,7 +2338,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -2358,13 +2358,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2375,7 +2375,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -2418,7 +2418,7 @@ request.Filename is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -2463,7 +2463,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.CloneTemplate.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.CloneTemplate.g.cs index beeb69ee..eabc4ab4 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.CloneTemplate.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.CloneTemplate.g.cs @@ -372,13 +372,13 @@ partial void ProcessCloneTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessCloneTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessCloneTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessCloneTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessCloneTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessCloneTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -483,13 +483,13 @@ partial void ProcessCloneTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessCloneTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -520,13 +520,13 @@ partial void ProcessCloneTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -537,7 +537,7 @@ partial void ProcessCloneTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -580,7 +580,7 @@ partial void ProcessCloneTemplateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -625,7 +625,7 @@ partial void ProcessCloneTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.CreateTemplate.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.CreateTemplate.g.cs index e2c0b484..baa472d8 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.CreateTemplate.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.CreateTemplate.g.cs @@ -363,13 +363,13 @@ partial void ProcessCreateTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessCreateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -400,13 +400,13 @@ partial void ProcessCreateTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessCreateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -437,13 +437,13 @@ partial void ProcessCreateTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -454,7 +454,7 @@ partial void ProcessCreateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -474,13 +474,13 @@ partial void ProcessCreateTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -491,7 +491,7 @@ partial void ProcessCreateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -534,7 +534,7 @@ partial void ProcessCreateTemplateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -579,7 +579,7 @@ partial void ProcessCreateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.Deactivate.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.Deactivate.g.cs index cfabdd2c..38ed452a 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.Deactivate.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.Deactivate.g.cs @@ -352,13 +352,13 @@ partial void ProcessDeactivateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDeactivateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDeactivateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDeactivateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -426,13 +426,13 @@ partial void ProcessDeactivateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessDeactivateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -484,7 +484,7 @@ partial void ProcessDeactivateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -527,7 +527,7 @@ partial void ProcessDeactivateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.DeleteTemplate.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.DeleteTemplate.g.cs index 45dc5afe..f99618eb 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.DeleteTemplate.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.DeleteTemplate.g.cs @@ -352,13 +352,13 @@ partial void ProcessDeleteTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDeleteTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDeleteTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDeleteTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -426,13 +426,13 @@ partial void ProcessDeleteTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessDeleteTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -484,7 +484,7 @@ partial void ProcessDeleteTemplateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -527,7 +527,7 @@ partial void ProcessDeleteTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.DiscardDraft.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.DiscardDraft.g.cs index 65d309a1..159aaeb3 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.DiscardDraft.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.DiscardDraft.g.cs @@ -352,13 +352,13 @@ partial void ProcessDiscardDraftResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDiscardDraftResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDiscardDraftResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDiscardDraftResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -426,13 +426,13 @@ partial void ProcessDiscardDraftResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessDiscardDraftResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -484,7 +484,7 @@ partial void ProcessDiscardDraftResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -527,7 +527,7 @@ partial void ProcessDiscardDraftResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.GetFlow.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.GetFlow.g.cs index 7e4bf06f..06f29567 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.GetFlow.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.GetFlow.g.cs @@ -354,13 +354,13 @@ partial void ProcessGetFlowResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ partial void ProcessGetFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -391,13 +391,13 @@ partial void ProcessGetFlowResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessGetFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -428,13 +428,13 @@ partial void ProcessGetFlowResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessGetFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -488,7 +488,7 @@ partial void ProcessGetFlowResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -533,7 +533,7 @@ partial void ProcessGetFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.GetSchema.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.GetSchema.g.cs index 62ed7ddc..f1219437 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.GetSchema.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.GetSchema.g.cs @@ -345,13 +345,13 @@ partial void ProcessGetSchemaResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -362,7 +362,7 @@ partial void ProcessGetSchemaResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -405,7 +405,7 @@ partial void ProcessGetSchemaResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -450,7 +450,7 @@ partial void ProcessGetSchemaResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.GetTemplate.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.GetTemplate.g.cs index a112c673..5588795b 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.GetTemplate.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.GetTemplate.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -426,13 +426,13 @@ partial void ProcessGetTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessGetTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -486,7 +486,7 @@ partial void ProcessGetTemplateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -531,7 +531,7 @@ partial void ProcessGetTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.GetVersion.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.GetVersion.g.cs index ee1ffb27..2f8c837f 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.GetVersion.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.GetVersion.g.cs @@ -361,13 +361,13 @@ partial void ProcessGetVersionResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessGetVersionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessGetVersionResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessGetVersionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -435,13 +435,13 @@ partial void ProcessGetVersionResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -452,7 +452,7 @@ partial void ProcessGetVersionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -495,7 +495,7 @@ partial void ProcessGetVersionResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -540,7 +540,7 @@ partial void ProcessGetVersionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.ListTemplates.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.ListTemplates.g.cs index 0669fa57..001c82f8 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.ListTemplates.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.ListTemplates.g.cs @@ -373,13 +373,13 @@ partial void ProcessListTemplatesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -390,7 +390,7 @@ partial void ProcessListTemplatesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -410,13 +410,13 @@ partial void ProcessListTemplatesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -427,7 +427,7 @@ partial void ProcessListTemplatesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -447,13 +447,13 @@ partial void ProcessListTemplatesResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -464,7 +464,7 @@ partial void ProcessListTemplatesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -507,7 +507,7 @@ partial void ProcessListTemplatesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -552,7 +552,7 @@ partial void ProcessListTemplatesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.ListVersions.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.ListVersions.g.cs index 3c1776da..bf038f89 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.ListVersions.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.ListVersions.g.cs @@ -382,13 +382,13 @@ partial void ProcessListVersionsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessListVersionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessListVersionsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessListVersionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessListVersionsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessListVersionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -493,13 +493,13 @@ partial void ProcessListVersionsResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -510,7 +510,7 @@ partial void ProcessListVersionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -553,7 +553,7 @@ partial void ProcessListVersionsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -598,7 +598,7 @@ partial void ProcessListVersionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.Publish.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.Publish.g.cs index fc525342..1a86f4eb 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.Publish.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.Publish.g.cs @@ -372,13 +372,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -483,13 +483,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -520,13 +520,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -537,7 +537,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -557,13 +557,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -574,7 +574,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -594,13 +594,13 @@ partial void ProcessPublishResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -611,7 +611,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -654,7 +654,7 @@ partial void ProcessPublishResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -699,7 +699,7 @@ partial void ProcessPublishResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.Rollback.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.Rollback.g.cs index 91f9527b..678720c4 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.Rollback.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.Rollback.g.cs @@ -372,13 +372,13 @@ partial void ProcessRollbackResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessRollbackResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessRollbackResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessRollbackResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessRollbackResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessRollbackResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -483,13 +483,13 @@ partial void ProcessRollbackResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessRollbackResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -520,13 +520,13 @@ partial void ProcessRollbackResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -537,7 +537,7 @@ partial void ProcessRollbackResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -557,13 +557,13 @@ partial void ProcessRollbackResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -574,7 +574,7 @@ partial void ProcessRollbackResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -617,7 +617,7 @@ partial void ProcessRollbackResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -662,7 +662,7 @@ partial void ProcessRollbackResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.UpdateFlow.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.UpdateFlow.g.cs index ea1a6976..20f5f916 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.UpdateFlow.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.UpdateFlow.g.cs @@ -374,13 +374,13 @@ partial void ProcessUpdateFlowResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -391,7 +391,7 @@ partial void ProcessUpdateFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -411,13 +411,13 @@ partial void ProcessUpdateFlowResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -428,7 +428,7 @@ partial void ProcessUpdateFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -448,13 +448,13 @@ partial void ProcessUpdateFlowResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -465,7 +465,7 @@ partial void ProcessUpdateFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -485,13 +485,13 @@ partial void ProcessUpdateFlowResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessUpdateFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -522,13 +522,13 @@ partial void ProcessUpdateFlowResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessUpdateFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -582,7 +582,7 @@ partial void ProcessUpdateFlowResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -627,7 +627,7 @@ partial void ProcessUpdateFlowResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.FlowClient.UpdateTemplate.g.cs b/src/libs/Speechify/Generated/Speechify.FlowClient.UpdateTemplate.g.cs index dbf0564e..f67f761c 100644 --- a/src/libs/Speechify/Generated/Speechify.FlowClient.UpdateTemplate.g.cs +++ b/src/libs/Speechify/Generated/Speechify.FlowClient.UpdateTemplate.g.cs @@ -372,13 +372,13 @@ partial void ProcessUpdateTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.FlowValidationError.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessUpdateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessUpdateTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessUpdateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessUpdateTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessUpdateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -483,13 +483,13 @@ partial void ProcessUpdateTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessUpdateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -520,13 +520,13 @@ partial void ProcessUpdateTemplateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -537,7 +537,7 @@ partial void ProcessUpdateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -580,7 +580,7 @@ partial void ProcessUpdateTemplateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -625,7 +625,7 @@ partial void ProcessUpdateTemplateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.HostedApisClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.HostedApisClient.Create.g.cs index c4b48c58..153cf6c8 100644 --- a/src/libs/Speechify/Generated/Speechify.HostedApisClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.HostedApisClient.Create.g.cs @@ -416,13 +416,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -433,7 +433,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -453,13 +453,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -470,7 +470,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -490,13 +490,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -507,7 +507,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -527,13 +527,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -544,7 +544,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -564,13 +564,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -581,7 +581,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -601,13 +601,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -618,7 +618,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -638,13 +638,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -655,7 +655,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -698,7 +698,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -743,7 +743,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.HostedApisClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.HostedApisClient.Delete.g.cs index 60e2e6a2..1fb23575 100644 --- a/src/libs/Speechify/Generated/Speechify.HostedApisClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.HostedApisClient.Delete.g.cs @@ -354,13 +354,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -391,13 +391,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -428,13 +428,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -465,13 +465,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -482,7 +482,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -502,13 +502,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -519,7 +519,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -539,13 +539,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -556,7 +556,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -597,7 +597,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -640,7 +640,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.HostedApisClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.HostedApisClient.Get.g.cs index 4b08e0cf..df80ac04 100644 --- a/src/libs/Speechify/Generated/Speechify.HostedApisClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.HostedApisClient.Get.g.cs @@ -354,13 +354,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -391,13 +391,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -428,13 +428,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -465,13 +465,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -482,7 +482,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -502,13 +502,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -519,7 +519,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -539,13 +539,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -556,7 +556,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -599,7 +599,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -644,7 +644,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetAnalytics.g.cs b/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetAnalytics.g.cs index a13fb8f1..e0f8c9c0 100644 --- a/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetAnalytics.g.cs +++ b/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetAnalytics.g.cs @@ -414,13 +414,13 @@ partial void ProcessGetAnalyticsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -431,7 +431,7 @@ partial void ProcessGetAnalyticsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -451,13 +451,13 @@ partial void ProcessGetAnalyticsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -468,7 +468,7 @@ partial void ProcessGetAnalyticsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -488,13 +488,13 @@ partial void ProcessGetAnalyticsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -505,7 +505,7 @@ partial void ProcessGetAnalyticsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -525,13 +525,13 @@ partial void ProcessGetAnalyticsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -542,7 +542,7 @@ partial void ProcessGetAnalyticsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -562,13 +562,13 @@ partial void ProcessGetAnalyticsResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -579,7 +579,7 @@ partial void ProcessGetAnalyticsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -599,13 +599,13 @@ partial void ProcessGetAnalyticsResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -616,7 +616,7 @@ partial void ProcessGetAnalyticsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -636,13 +636,13 @@ partial void ProcessGetAnalyticsResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -653,7 +653,7 @@ partial void ProcessGetAnalyticsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -673,13 +673,13 @@ partial void ProcessGetAnalyticsResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -690,7 +690,7 @@ partial void ProcessGetAnalyticsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -733,7 +733,7 @@ partial void ProcessGetAnalyticsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -778,7 +778,7 @@ partial void ProcessGetAnalyticsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetOpenApi.g.cs b/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetOpenApi.g.cs index c4f5c83f..1eccdd13 100644 --- a/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetOpenApi.g.cs +++ b/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetOpenApi.g.cs @@ -366,13 +366,13 @@ partial void ProcessGetOpenApiResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -383,7 +383,7 @@ partial void ProcessGetOpenApiResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -403,13 +403,13 @@ partial void ProcessGetOpenApiResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessGetOpenApiResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -440,13 +440,13 @@ partial void ProcessGetOpenApiResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -457,7 +457,7 @@ partial void ProcessGetOpenApiResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -477,13 +477,13 @@ partial void ProcessGetOpenApiResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -494,7 +494,7 @@ partial void ProcessGetOpenApiResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -514,13 +514,13 @@ partial void ProcessGetOpenApiResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -531,7 +531,7 @@ partial void ProcessGetOpenApiResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -551,13 +551,13 @@ partial void ProcessGetOpenApiResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -568,7 +568,7 @@ partial void ProcessGetOpenApiResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -609,7 +609,7 @@ partial void ProcessGetOpenApiResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -652,7 +652,7 @@ partial void ProcessGetOpenApiResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetUsage.g.cs b/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetUsage.g.cs index 45e0f2ad..70942813 100644 --- a/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetUsage.g.cs +++ b/src/libs/Speechify/Generated/Speechify.HostedApisClient.GetUsage.g.cs @@ -364,13 +364,13 @@ partial void ProcessGetUsageResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -381,7 +381,7 @@ partial void ProcessGetUsageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -401,13 +401,13 @@ partial void ProcessGetUsageResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -418,7 +418,7 @@ partial void ProcessGetUsageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -438,13 +438,13 @@ partial void ProcessGetUsageResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -455,7 +455,7 @@ partial void ProcessGetUsageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -475,13 +475,13 @@ partial void ProcessGetUsageResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -492,7 +492,7 @@ partial void ProcessGetUsageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -512,13 +512,13 @@ partial void ProcessGetUsageResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -529,7 +529,7 @@ partial void ProcessGetUsageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -549,13 +549,13 @@ partial void ProcessGetUsageResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -566,7 +566,7 @@ partial void ProcessGetUsageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -609,7 +609,7 @@ partial void ProcessGetUsageResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -654,7 +654,7 @@ partial void ProcessGetUsageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.HostedApisClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.HostedApisClient.List.g.cs index 7c947eb8..e23ab9a7 100644 --- a/src/libs/Speechify/Generated/Speechify.HostedApisClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.HostedApisClient.List.g.cs @@ -387,13 +387,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -404,7 +404,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -424,13 +424,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -441,7 +441,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -461,13 +461,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -478,7 +478,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -498,13 +498,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -515,7 +515,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -535,13 +535,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -552,7 +552,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -572,13 +572,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -589,7 +589,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -632,7 +632,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -677,7 +677,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.HostedApisClient.RotateUserTokenSecret.g.cs b/src/libs/Speechify/Generated/Speechify.HostedApisClient.RotateUserTokenSecret.g.cs index 38b06c41..568ad197 100644 --- a/src/libs/Speechify/Generated/Speechify.HostedApisClient.RotateUserTokenSecret.g.cs +++ b/src/libs/Speechify/Generated/Speechify.HostedApisClient.RotateUserTokenSecret.g.cs @@ -385,13 +385,13 @@ partial void ProcessRotateUserTokenSecretResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessRotateUserTokenSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -422,13 +422,13 @@ partial void ProcessRotateUserTokenSecretResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -439,7 +439,7 @@ partial void ProcessRotateUserTokenSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -459,13 +459,13 @@ partial void ProcessRotateUserTokenSecretResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +476,7 @@ partial void ProcessRotateUserTokenSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -496,13 +496,13 @@ partial void ProcessRotateUserTokenSecretResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -513,7 +513,7 @@ partial void ProcessRotateUserTokenSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -533,13 +533,13 @@ partial void ProcessRotateUserTokenSecretResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -550,7 +550,7 @@ partial void ProcessRotateUserTokenSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -570,13 +570,13 @@ partial void ProcessRotateUserTokenSecretResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -587,7 +587,7 @@ partial void ProcessRotateUserTokenSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -630,7 +630,7 @@ partial void ProcessRotateUserTokenSecretResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -675,7 +675,7 @@ partial void ProcessRotateUserTokenSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.HostedApisClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.HostedApisClient.Update.g.cs index 219b46c3..8f93dfdf 100644 --- a/src/libs/Speechify/Generated/Speechify.HostedApisClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.HostedApisClient.Update.g.cs @@ -394,13 +394,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -411,7 +411,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -431,13 +431,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -448,7 +448,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -468,13 +468,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -485,7 +485,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -505,13 +505,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -522,7 +522,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -542,13 +542,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -559,7 +559,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -579,13 +579,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -596,7 +596,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -639,7 +639,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -684,7 +684,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.Get.g.cs index 8231224c..4c091a82 100644 --- a/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.Get.g.cs @@ -356,13 +356,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -393,13 +393,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -453,7 +453,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -498,7 +498,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.Invalidate.g.cs b/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.Invalidate.g.cs index 8c43961c..0c5b8467 100644 --- a/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.Invalidate.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.Invalidate.g.cs @@ -382,13 +382,13 @@ partial void ProcessInvalidateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessInvalidateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -419,13 +419,13 @@ partial void ProcessInvalidateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessInvalidateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -477,7 +477,7 @@ partial void ProcessInvalidateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -520,7 +520,7 @@ partial void ProcessInvalidateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.List.g.cs index afb217ae..9b52f6db 100644 --- a/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.List.g.cs @@ -391,13 +391,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -428,13 +428,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -488,7 +488,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -533,7 +533,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.UpdateLabel.g.cs b/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.UpdateLabel.g.cs index 2b798316..990b631f 100644 --- a/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.UpdateLabel.g.cs +++ b/src/libs/Speechify/Generated/Speechify.IvrMemoryClient.UpdateLabel.g.cs @@ -380,13 +380,13 @@ partial void ProcessUpdateLabelResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -397,7 +397,7 @@ partial void ProcessUpdateLabelResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -417,13 +417,13 @@ partial void ProcessUpdateLabelResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -434,7 +434,7 @@ partial void ProcessUpdateLabelResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -454,13 +454,13 @@ partial void ProcessUpdateLabelResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -471,7 +471,7 @@ partial void ProcessUpdateLabelResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -514,7 +514,7 @@ partial void ProcessUpdateLabelResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -559,7 +559,7 @@ partial void ProcessUpdateLabelResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KeysClient.CreateKey.g.cs b/src/libs/Speechify/Generated/Speechify.KeysClient.CreateKey.g.cs index 4b7348cd..de07fe3a 100644 --- a/src/libs/Speechify/Generated/Speechify.KeysClient.CreateKey.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KeysClient.CreateKey.g.cs @@ -395,13 +395,13 @@ partial void ProcessCreateKeyResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessCreateKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -432,13 +432,13 @@ partial void ProcessCreateKeyResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessCreateKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -469,13 +469,13 @@ partial void ProcessCreateKeyResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessCreateKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -506,13 +506,13 @@ partial void ProcessCreateKeyResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -523,7 +523,7 @@ partial void ProcessCreateKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -543,13 +543,13 @@ partial void ProcessCreateKeyResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -560,7 +560,7 @@ partial void ProcessCreateKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -580,13 +580,13 @@ partial void ProcessCreateKeyResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -597,7 +597,7 @@ partial void ProcessCreateKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -617,13 +617,13 @@ partial void ProcessCreateKeyResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -634,7 +634,7 @@ partial void ProcessCreateKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -677,7 +677,7 @@ partial void ProcessCreateKeyResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -722,7 +722,7 @@ partial void ProcessCreateKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KeysClient.ListKeys.g.cs b/src/libs/Speechify/Generated/Speechify.KeysClient.ListKeys.g.cs index 3cc3e485..cd8f095a 100644 --- a/src/libs/Speechify/Generated/Speechify.KeysClient.ListKeys.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KeysClient.ListKeys.g.cs @@ -380,13 +380,13 @@ partial void ProcessListKeysResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -397,7 +397,7 @@ partial void ProcessListKeysResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -417,13 +417,13 @@ partial void ProcessListKeysResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -434,7 +434,7 @@ partial void ProcessListKeysResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -454,13 +454,13 @@ partial void ProcessListKeysResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -471,7 +471,7 @@ partial void ProcessListKeysResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -491,13 +491,13 @@ partial void ProcessListKeysResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -508,7 +508,7 @@ partial void ProcessListKeysResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -528,13 +528,13 @@ partial void ProcessListKeysResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -545,7 +545,7 @@ partial void ProcessListKeysResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -565,13 +565,13 @@ partial void ProcessListKeysResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -582,7 +582,7 @@ partial void ProcessListKeysResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -625,7 +625,7 @@ partial void ProcessListKeysResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -670,7 +670,7 @@ partial void ProcessListKeysResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KeysClient.RevokeKey.g.cs b/src/libs/Speechify/Generated/Speechify.KeysClient.RevokeKey.g.cs index 416b129e..66edc8db 100644 --- a/src/libs/Speechify/Generated/Speechify.KeysClient.RevokeKey.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KeysClient.RevokeKey.g.cs @@ -363,13 +363,13 @@ partial void ProcessRevokeKeyResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessRevokeKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -400,13 +400,13 @@ partial void ProcessRevokeKeyResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessRevokeKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -437,13 +437,13 @@ partial void ProcessRevokeKeyResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -454,7 +454,7 @@ partial void ProcessRevokeKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -474,13 +474,13 @@ partial void ProcessRevokeKeyResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -491,7 +491,7 @@ partial void ProcessRevokeKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -511,13 +511,13 @@ partial void ProcessRevokeKeyResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -528,7 +528,7 @@ partial void ProcessRevokeKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -548,13 +548,13 @@ partial void ProcessRevokeKeyResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -565,7 +565,7 @@ partial void ProcessRevokeKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -608,7 +608,7 @@ partial void ProcessRevokeKeyResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -653,7 +653,7 @@ partial void ProcessRevokeKeyResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.BatchDeleteDocuments.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.BatchDeleteDocuments.g.cs index 527c27f6..9f91090d 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.BatchDeleteDocuments.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.BatchDeleteDocuments.g.cs @@ -378,13 +378,13 @@ partial void ProcessBatchDeleteDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -395,7 +395,7 @@ partial void ProcessBatchDeleteDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -415,13 +415,13 @@ partial void ProcessBatchDeleteDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -432,7 +432,7 @@ partial void ProcessBatchDeleteDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -452,13 +452,13 @@ partial void ProcessBatchDeleteDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -469,7 +469,7 @@ partial void ProcessBatchDeleteDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -510,7 +510,7 @@ partial void ProcessBatchDeleteDocumentsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -553,7 +553,7 @@ partial void ProcessBatchDeleteDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.BatchMoveDocuments.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.BatchMoveDocuments.g.cs index 46f6e74e..253b7897 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.BatchMoveDocuments.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.BatchMoveDocuments.g.cs @@ -376,13 +376,13 @@ partial void ProcessBatchMoveDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -393,7 +393,7 @@ partial void ProcessBatchMoveDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -413,13 +413,13 @@ partial void ProcessBatchMoveDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -430,7 +430,7 @@ partial void ProcessBatchMoveDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -450,13 +450,13 @@ partial void ProcessBatchMoveDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -467,7 +467,7 @@ partial void ProcessBatchMoveDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -510,7 +510,7 @@ partial void ProcessBatchMoveDocumentsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -555,7 +555,7 @@ partial void ProcessBatchMoveDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CancelEvaluation.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CancelEvaluation.g.cs index 3c203d47..04d8e0aa 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CancelEvaluation.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CancelEvaluation.g.cs @@ -363,13 +363,13 @@ partial void ProcessCancelEvaluationResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessCancelEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -400,13 +400,13 @@ partial void ProcessCancelEvaluationResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessCancelEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -460,7 +460,7 @@ partial void ProcessCancelEvaluationResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -505,7 +505,7 @@ partial void ProcessCancelEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CancelImportJob.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CancelImportJob.g.cs index b75f7859..ed2b88fc 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CancelImportJob.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CancelImportJob.g.cs @@ -373,13 +373,13 @@ partial void ProcessCancelImportJobResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -390,7 +390,7 @@ partial void ProcessCancelImportJobResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -410,13 +410,13 @@ partial void ProcessCancelImportJobResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -427,7 +427,7 @@ partial void ProcessCancelImportJobResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -470,7 +470,7 @@ partial void ProcessCancelImportJobResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -515,7 +515,7 @@ partial void ProcessCancelImportJobResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Create.g.cs index 6126c45f..c0c8f024 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Create.g.cs @@ -363,13 +363,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -400,13 +400,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -460,7 +460,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -505,7 +505,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateCrawlImport.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateCrawlImport.g.cs index d51cc095..3debcec1 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateCrawlImport.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateCrawlImport.g.cs @@ -391,13 +391,13 @@ partial void ProcessCreateCrawlImportResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessCreateCrawlImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -428,13 +428,13 @@ partial void ProcessCreateCrawlImportResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessCreateCrawlImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -465,13 +465,13 @@ partial void ProcessCreateCrawlImportResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -482,7 +482,7 @@ partial void ProcessCreateCrawlImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -502,13 +502,13 @@ partial void ProcessCreateCrawlImportResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -519,7 +519,7 @@ partial void ProcessCreateCrawlImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -562,7 +562,7 @@ partial void ProcessCreateCrawlImportResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -607,7 +607,7 @@ partial void ProcessCreateCrawlImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateEvalCase.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateEvalCase.g.cs index 54d3e89e..2b58cf7e 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateEvalCase.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateEvalCase.g.cs @@ -395,13 +395,13 @@ partial void ProcessCreateEvalCaseResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessCreateEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -432,13 +432,13 @@ partial void ProcessCreateEvalCaseResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessCreateEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -469,13 +469,13 @@ partial void ProcessCreateEvalCaseResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessCreateEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -506,13 +506,13 @@ partial void ProcessCreateEvalCaseResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -523,7 +523,7 @@ partial void ProcessCreateEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -566,7 +566,7 @@ partial void ProcessCreateEvalCaseResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -611,7 +611,7 @@ partial void ProcessCreateEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateFolder.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateFolder.g.cs index e1a830a3..3ca151a2 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateFolder.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateFolder.g.cs @@ -372,13 +372,13 @@ partial void ProcessCreateFolderResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessCreateFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessCreateFolderResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessCreateFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessCreateFolderResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessCreateFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -506,7 +506,7 @@ partial void ProcessCreateFolderResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -551,7 +551,7 @@ partial void ProcessCreateFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateSitemapImport.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateSitemapImport.g.cs index 8738873d..536f1314 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateSitemapImport.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateSitemapImport.g.cs @@ -391,13 +391,13 @@ partial void ProcessCreateSitemapImportResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessCreateSitemapImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -428,13 +428,13 @@ partial void ProcessCreateSitemapImportResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessCreateSitemapImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -465,13 +465,13 @@ partial void ProcessCreateSitemapImportResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -482,7 +482,7 @@ partial void ProcessCreateSitemapImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -502,13 +502,13 @@ partial void ProcessCreateSitemapImportResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -519,7 +519,7 @@ partial void ProcessCreateSitemapImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -562,7 +562,7 @@ partial void ProcessCreateSitemapImportResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -607,7 +607,7 @@ partial void ProcessCreateSitemapImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateTextDocument.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateTextDocument.g.cs index f6b4dd92..5b57a0fb 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateTextDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateTextDocument.g.cs @@ -391,13 +391,13 @@ partial void ProcessCreateTextDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessCreateTextDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -428,13 +428,13 @@ partial void ProcessCreateTextDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessCreateTextDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -465,13 +465,13 @@ partial void ProcessCreateTextDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -482,7 +482,7 @@ partial void ProcessCreateTextDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -502,13 +502,13 @@ partial void ProcessCreateTextDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -519,7 +519,7 @@ partial void ProcessCreateTextDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -562,7 +562,7 @@ partial void ProcessCreateTextDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -607,7 +607,7 @@ partial void ProcessCreateTextDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateURLBatchImport.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateURLBatchImport.g.cs index 49af6b76..9f950845 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateURLBatchImport.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateURLBatchImport.g.cs @@ -397,13 +397,13 @@ partial void ProcessCreateURLBatchImportResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -414,7 +414,7 @@ partial void ProcessCreateURLBatchImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -434,13 +434,13 @@ partial void ProcessCreateURLBatchImportResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -451,7 +451,7 @@ partial void ProcessCreateURLBatchImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -471,13 +471,13 @@ partial void ProcessCreateURLBatchImportResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -488,7 +488,7 @@ partial void ProcessCreateURLBatchImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -508,13 +508,13 @@ partial void ProcessCreateURLBatchImportResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -525,7 +525,7 @@ partial void ProcessCreateURLBatchImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -568,7 +568,7 @@ partial void ProcessCreateURLBatchImportResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -613,7 +613,7 @@ partial void ProcessCreateURLBatchImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateURLDocument.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateURLDocument.g.cs index a0d8c978..ec9d1153 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateURLDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.CreateURLDocument.g.cs @@ -395,13 +395,13 @@ partial void ProcessCreateURLDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessCreateURLDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -432,13 +432,13 @@ partial void ProcessCreateURLDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessCreateURLDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -469,13 +469,13 @@ partial void ProcessCreateURLDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessCreateURLDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -506,13 +506,13 @@ partial void ProcessCreateURLDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -523,7 +523,7 @@ partial void ProcessCreateURLDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -566,7 +566,7 @@ partial void ProcessCreateURLDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -611,7 +611,7 @@ partial void ProcessCreateURLDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Delete.g.cs index 672a970d..da61dc03 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Delete.g.cs @@ -352,13 +352,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -447,7 +447,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -490,7 +490,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteDocument.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteDocument.g.cs index dca1ccc7..4b7f34c8 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteDocument.g.cs @@ -361,13 +361,13 @@ partial void ProcessDeleteDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessDeleteDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessDeleteDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessDeleteDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -456,7 +456,7 @@ partial void ProcessDeleteDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -499,7 +499,7 @@ partial void ProcessDeleteDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteEvalCase.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteEvalCase.g.cs index 3ba159a9..d6dbbb38 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteEvalCase.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteEvalCase.g.cs @@ -363,13 +363,13 @@ partial void ProcessDeleteEvalCaseResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessDeleteEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -400,13 +400,13 @@ partial void ProcessDeleteEvalCaseResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessDeleteEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -458,7 +458,7 @@ partial void ProcessDeleteEvalCaseResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -501,7 +501,7 @@ partial void ProcessDeleteEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteFolder.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteFolder.g.cs index cfbb8bba..3f431caf 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteFolder.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.DeleteFolder.g.cs @@ -379,13 +379,13 @@ partial void ProcessDeleteFolderResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -396,7 +396,7 @@ partial void ProcessDeleteFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -416,13 +416,13 @@ partial void ProcessDeleteFolderResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -433,7 +433,7 @@ partial void ProcessDeleteFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -453,13 +453,13 @@ partial void ProcessDeleteFolderResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -470,7 +470,7 @@ partial void ProcessDeleteFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -511,7 +511,7 @@ partial void ProcessDeleteFolderResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -554,7 +554,7 @@ partial void ProcessDeleteFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Get.g.cs index 8c1b861d..a4d86b3f 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Get.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -449,7 +449,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetCoverage.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetCoverage.g.cs index 9f7dba69..b3a660c3 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetCoverage.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetCoverage.g.cs @@ -382,13 +382,13 @@ partial void ProcessGetCoverageResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessGetCoverageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessGetCoverageResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessGetCoverageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessGetCoverageResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessGetCoverageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -516,7 +516,7 @@ partial void ProcessGetCoverageResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -561,7 +561,7 @@ partial void ProcessGetCoverageResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetDocument.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetDocument.g.cs index 16979c8c..1a1a38bd 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetDocument.g.cs @@ -361,13 +361,13 @@ partial void ProcessGetDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessGetDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessGetDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessGetDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -458,7 +458,7 @@ partial void ProcessGetDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -503,7 +503,7 @@ partial void ProcessGetDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetEvaluation.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetEvaluation.g.cs index 541c0b72..9e27ecb6 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetEvaluation.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetEvaluation.g.cs @@ -363,13 +363,13 @@ partial void ProcessGetEvaluationResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessGetEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -400,13 +400,13 @@ partial void ProcessGetEvaluationResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessGetEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -460,7 +460,7 @@ partial void ProcessGetEvaluationResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -505,7 +505,7 @@ partial void ProcessGetEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetImportJob.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetImportJob.g.cs index 16782a5b..6404c278 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetImportJob.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.GetImportJob.g.cs @@ -365,13 +365,13 @@ partial void ProcessGetImportJobResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -382,7 +382,7 @@ partial void ProcessGetImportJobResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -402,13 +402,13 @@ partial void ProcessGetImportJobResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -419,7 +419,7 @@ partial void ProcessGetImportJobResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -462,7 +462,7 @@ partial void ProcessGetImportJobResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -507,7 +507,7 @@ partial void ProcessGetImportJobResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.List.g.cs index 05a0f37e..3282e4af 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.List.g.cs @@ -385,13 +385,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -422,13 +422,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -439,7 +439,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -482,7 +482,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -527,7 +527,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListChunks.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListChunks.g.cs index 68133eb6..b6c82958 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListChunks.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListChunks.g.cs @@ -391,13 +391,13 @@ partial void ProcessListChunksResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessListChunksResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -428,13 +428,13 @@ partial void ProcessListChunksResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessListChunksResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -488,7 +488,7 @@ partial void ProcessListChunksResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -533,7 +533,7 @@ partial void ProcessListChunksResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListDocuments.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListDocuments.g.cs index cded6228..ce38e7e0 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListDocuments.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListDocuments.g.cs @@ -412,13 +412,13 @@ partial void ProcessListDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -429,7 +429,7 @@ partial void ProcessListDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -449,13 +449,13 @@ partial void ProcessListDocumentsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -466,7 +466,7 @@ partial void ProcessListDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -509,7 +509,7 @@ partial void ProcessListDocumentsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -554,7 +554,7 @@ partial void ProcessListDocumentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvalCases.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvalCases.g.cs index 691c488c..36795a50 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvalCases.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvalCases.g.cs @@ -382,13 +382,13 @@ partial void ProcessListEvalCasesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessListEvalCasesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessListEvalCasesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessListEvalCasesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessListEvalCasesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessListEvalCasesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -516,7 +516,7 @@ partial void ProcessListEvalCasesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -561,7 +561,7 @@ partial void ProcessListEvalCasesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvaluationResults.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvaluationResults.g.cs index 46ced45b..ed59043e 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvaluationResults.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvaluationResults.g.cs @@ -391,13 +391,13 @@ partial void ProcessListEvaluationResultsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessListEvaluationResultsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -428,13 +428,13 @@ partial void ProcessListEvaluationResultsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessListEvaluationResultsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -465,13 +465,13 @@ partial void ProcessListEvaluationResultsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -482,7 +482,7 @@ partial void ProcessListEvaluationResultsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -525,7 +525,7 @@ partial void ProcessListEvaluationResultsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -570,7 +570,7 @@ partial void ProcessListEvaluationResultsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvaluations.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvaluations.g.cs index c7ba6bd3..5913f38f 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvaluations.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListEvaluations.g.cs @@ -382,13 +382,13 @@ partial void ProcessListEvaluationsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessListEvaluationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessListEvaluationsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessListEvaluationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessListEvaluationsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessListEvaluationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -516,7 +516,7 @@ partial void ProcessListEvaluationsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -561,7 +561,7 @@ partial void ProcessListEvaluationsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListFolders.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListFolders.g.cs index bec482b2..72f849e1 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListFolders.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListFolders.g.cs @@ -388,13 +388,13 @@ partial void ProcessListFoldersResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +405,7 @@ partial void ProcessListFoldersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -425,13 +425,13 @@ partial void ProcessListFoldersResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessListFoldersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -485,7 +485,7 @@ partial void ProcessListFoldersResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -530,7 +530,7 @@ partial void ProcessListFoldersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListImportJobs.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListImportJobs.g.cs index ff4b0230..486d526d 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListImportJobs.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListImportJobs.g.cs @@ -384,13 +384,13 @@ partial void ProcessListImportJobsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -401,7 +401,7 @@ partial void ProcessListImportJobsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -421,13 +421,13 @@ partial void ProcessListImportJobsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -438,7 +438,7 @@ partial void ProcessListImportJobsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -458,13 +458,13 @@ partial void ProcessListImportJobsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -475,7 +475,7 @@ partial void ProcessListImportJobsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -518,7 +518,7 @@ partial void ProcessListImportJobsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -563,7 +563,7 @@ partial void ProcessListImportJobsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListRefreshHistory.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListRefreshHistory.g.cs index 9a7243c9..ca220ce1 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListRefreshHistory.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.ListRefreshHistory.g.cs @@ -393,13 +393,13 @@ partial void ProcessListRefreshHistoryResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessListRefreshHistoryResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -430,13 +430,13 @@ partial void ProcessListRefreshHistoryResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -447,7 +447,7 @@ partial void ProcessListRefreshHistoryResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -467,13 +467,13 @@ partial void ProcessListRefreshHistoryResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -484,7 +484,7 @@ partial void ProcessListRefreshHistoryResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -527,7 +527,7 @@ partial void ProcessListRefreshHistoryResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -572,7 +572,7 @@ partial void ProcessListRefreshHistoryResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Search.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Search.g.cs index f9faacdd..a25d218d 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Search.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Search.g.cs @@ -367,13 +367,13 @@ partial void ProcessSearchResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -384,7 +384,7 @@ partial void ProcessSearchResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -404,13 +404,13 @@ partial void ProcessSearchResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -421,7 +421,7 @@ partial void ProcessSearchResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -464,7 +464,7 @@ partial void ProcessSearchResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -509,7 +509,7 @@ partial void ProcessSearchResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.StartEvaluation.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.StartEvaluation.g.cs index 8f7f0655..f7d7ba7f 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.StartEvaluation.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.StartEvaluation.g.cs @@ -397,13 +397,13 @@ partial void ProcessStartEvaluationResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -414,7 +414,7 @@ partial void ProcessStartEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -434,13 +434,13 @@ partial void ProcessStartEvaluationResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -451,7 +451,7 @@ partial void ProcessStartEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -471,13 +471,13 @@ partial void ProcessStartEvaluationResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -488,7 +488,7 @@ partial void ProcessStartEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -508,13 +508,13 @@ partial void ProcessStartEvaluationResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -525,7 +525,7 @@ partial void ProcessStartEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -545,13 +545,13 @@ partial void ProcessStartEvaluationResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -562,7 +562,7 @@ partial void ProcessStartEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -605,7 +605,7 @@ partial void ProcessStartEvaluationResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -650,7 +650,7 @@ partial void ProcessStartEvaluationResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Update.g.cs index 3887fdd4..38c481a9 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.Update.g.cs @@ -372,13 +372,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -483,13 +483,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -543,7 +543,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -588,7 +588,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateDocument.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateDocument.g.cs index 034b8965..d6332b15 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateDocument.g.cs @@ -389,13 +389,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -426,13 +426,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -463,13 +463,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -480,7 +480,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -500,13 +500,13 @@ partial void ProcessUpdateDocumentResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -517,7 +517,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -560,7 +560,7 @@ partial void ProcessUpdateDocumentResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -605,7 +605,7 @@ partial void ProcessUpdateDocumentResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateEvalCase.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateEvalCase.g.cs index 1e93fc6a..b57d0ab8 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateEvalCase.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateEvalCase.g.cs @@ -383,13 +383,13 @@ partial void ProcessUpdateEvalCaseResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +400,7 @@ partial void ProcessUpdateEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -420,13 +420,13 @@ partial void ProcessUpdateEvalCaseResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -437,7 +437,7 @@ partial void ProcessUpdateEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -457,13 +457,13 @@ partial void ProcessUpdateEvalCaseResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -474,7 +474,7 @@ partial void ProcessUpdateEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -517,7 +517,7 @@ partial void ProcessUpdateEvalCaseResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -562,7 +562,7 @@ partial void ProcessUpdateEvalCaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateFolder.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateFolder.g.cs index ed92484b..d8ac8684 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateFolder.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateFolder.g.cs @@ -383,13 +383,13 @@ partial void ProcessUpdateFolderResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +400,7 @@ partial void ProcessUpdateFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -420,13 +420,13 @@ partial void ProcessUpdateFolderResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -437,7 +437,7 @@ partial void ProcessUpdateFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -457,13 +457,13 @@ partial void ProcessUpdateFolderResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -474,7 +474,7 @@ partial void ProcessUpdateFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -517,7 +517,7 @@ partial void ProcessUpdateFolderResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -562,7 +562,7 @@ partial void ProcessUpdateFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateRefreshConfig.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateRefreshConfig.g.cs index 7efc9180..190184f8 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateRefreshConfig.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UpdateRefreshConfig.g.cs @@ -385,13 +385,13 @@ partial void ProcessUpdateRefreshConfigResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessUpdateRefreshConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -422,13 +422,13 @@ partial void ProcessUpdateRefreshConfigResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -439,7 +439,7 @@ partial void ProcessUpdateRefreshConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -459,13 +459,13 @@ partial void ProcessUpdateRefreshConfigResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +476,7 @@ partial void ProcessUpdateRefreshConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -519,7 +519,7 @@ partial void ProcessUpdateRefreshConfigResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -564,7 +564,7 @@ partial void ProcessUpdateRefreshConfigResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UploadDocument.g.cs b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UploadDocument.g.cs index 4e1d5eed..d047f3b8 100644 --- a/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UploadDocument.g.cs +++ b/src/libs/Speechify/Generated/Speechify.KnowledgeBasesClient.UploadDocument.g.cs @@ -414,13 +414,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -431,7 +431,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -451,13 +451,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -468,7 +468,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -488,13 +488,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -505,7 +505,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -525,13 +525,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -542,7 +542,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -562,13 +562,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -579,7 +579,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -622,7 +622,7 @@ request.Filename is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -667,7 +667,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1065,13 +1065,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1082,7 +1082,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1102,13 +1102,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1119,7 +1119,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1139,13 +1139,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1156,7 +1156,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -1176,13 +1176,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1193,7 +1193,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -1213,13 +1213,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1230,7 +1230,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -1269,7 +1269,7 @@ request.Filename is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1310,7 +1310,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1672,13 +1672,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1689,7 +1689,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1709,13 +1709,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1726,7 +1726,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1746,13 +1746,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1763,7 +1763,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -1783,13 +1783,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1800,7 +1800,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -1820,13 +1820,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1837,7 +1837,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -1880,7 +1880,7 @@ request.Filename is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1925,7 +1925,7 @@ request.Filename is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.MemoriesClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.MemoriesClient.Delete.g.cs index 30441175..a488ba89 100644 --- a/src/libs/Speechify/Generated/Speechify.MemoriesClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.MemoriesClient.Delete.g.cs @@ -352,13 +352,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -447,7 +447,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -490,7 +490,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ModelsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.ModelsClient.List.g.cs index 19b7238d..aab2372a 100644 --- a/src/libs/Speechify/Generated/Speechify.ModelsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ModelsClient.List.g.cs @@ -359,13 +359,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -376,7 +376,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -396,13 +396,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -413,7 +413,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -433,13 +433,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -450,7 +450,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -470,13 +470,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -487,7 +487,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -507,13 +507,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -524,7 +524,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -567,7 +567,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -612,7 +612,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.OutboundCallsClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.OutboundCallsClient.Create.g.cs index 6aca3a22..d9c37d81 100644 --- a/src/libs/Speechify/Generated/Speechify.OutboundCallsClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.OutboundCallsClient.Create.g.cs @@ -430,13 +430,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -447,7 +447,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -467,13 +467,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -484,7 +484,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -504,13 +504,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -521,7 +521,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -541,13 +541,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -558,7 +558,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -578,13 +578,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -595,7 +595,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -615,13 +615,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -632,7 +632,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -652,13 +652,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -669,7 +669,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -689,13 +689,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -706,7 +706,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -749,7 +749,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -794,7 +794,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Delete.g.cs index 773d77dc..ff2c5fcf 100644 --- a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Delete.g.cs @@ -356,13 +356,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -393,13 +393,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -451,7 +451,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Get.g.cs index 8457dd57..41a5eb47 100644 --- a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Get.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -449,7 +449,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Import.g.cs b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Import.g.cs index c193d41d..fcbb1e19 100644 --- a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Import.g.cs +++ b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Import.g.cs @@ -381,13 +381,13 @@ partial void ProcessImportResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -398,7 +398,7 @@ partial void ProcessImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -418,13 +418,13 @@ partial void ProcessImportResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -435,7 +435,7 @@ partial void ProcessImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -455,13 +455,13 @@ partial void ProcessImportResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -472,7 +472,7 @@ partial void ProcessImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -515,7 +515,7 @@ partial void ProcessImportResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -560,7 +560,7 @@ partial void ProcessImportResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.List.g.cs index 54d029e7..8b482beb 100644 --- a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.List.g.cs @@ -383,13 +383,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +400,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -420,13 +420,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -437,7 +437,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -457,13 +457,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -474,7 +474,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -517,7 +517,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -562,7 +562,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Purchase.g.cs b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Purchase.g.cs index a4f6b6ec..9cc6c63b 100644 --- a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Purchase.g.cs +++ b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Purchase.g.cs @@ -422,13 +422,13 @@ partial void ProcessPurchaseResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -439,7 +439,7 @@ partial void ProcessPurchaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -459,13 +459,13 @@ partial void ProcessPurchaseResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +476,7 @@ partial void ProcessPurchaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -496,13 +496,13 @@ partial void ProcessPurchaseResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -513,7 +513,7 @@ partial void ProcessPurchaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -533,13 +533,13 @@ partial void ProcessPurchaseResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -550,7 +550,7 @@ partial void ProcessPurchaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -570,13 +570,13 @@ partial void ProcessPurchaseResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -587,7 +587,7 @@ partial void ProcessPurchaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -607,13 +607,13 @@ partial void ProcessPurchaseResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -624,7 +624,7 @@ partial void ProcessPurchaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -644,13 +644,13 @@ partial void ProcessPurchaseResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -661,7 +661,7 @@ partial void ProcessPurchaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -704,7 +704,7 @@ partial void ProcessPurchaseResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -749,7 +749,7 @@ partial void ProcessPurchaseResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.SearchAvailable.g.cs b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.SearchAvailable.g.cs index 4172aad2..888769a0 100644 --- a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.SearchAvailable.g.cs +++ b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.SearchAvailable.g.cs @@ -393,13 +393,13 @@ partial void ProcessSearchAvailableResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessSearchAvailableResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -430,13 +430,13 @@ partial void ProcessSearchAvailableResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -447,7 +447,7 @@ partial void ProcessSearchAvailableResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -467,13 +467,13 @@ partial void ProcessSearchAvailableResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -484,7 +484,7 @@ partial void ProcessSearchAvailableResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -527,7 +527,7 @@ partial void ProcessSearchAvailableResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -572,7 +572,7 @@ partial void ProcessSearchAvailableResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Update.g.cs index cd0380c4..df654451 100644 --- a/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.PhoneNumbersClient.Update.g.cs @@ -390,13 +390,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -407,7 +407,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -427,13 +427,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -444,7 +444,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -464,13 +464,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -481,7 +481,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -501,13 +501,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -518,7 +518,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -538,13 +538,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -555,7 +555,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -598,7 +598,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -643,7 +643,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Archive.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Archive.g.cs index a69fd661..0d050928 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Archive.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Archive.g.cs @@ -370,13 +370,13 @@ partial void ProcessArchiveResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -387,7 +387,7 @@ partial void ProcessArchiveResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -407,13 +407,13 @@ partial void ProcessArchiveResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -424,7 +424,7 @@ partial void ProcessArchiveResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -444,13 +444,13 @@ partial void ProcessArchiveResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -461,7 +461,7 @@ partial void ProcessArchiveResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -502,7 +502,7 @@ partial void ProcessArchiveResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -545,7 +545,7 @@ partial void ProcessArchiveResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Audit.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Audit.g.cs index cc32ba40..3b7bf17b 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Audit.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Audit.g.cs @@ -398,13 +398,13 @@ partial void ProcessAuditResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessAuditResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -435,13 +435,13 @@ partial void ProcessAuditResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -452,7 +452,7 @@ partial void ProcessAuditResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -472,13 +472,13 @@ partial void ProcessAuditResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -489,7 +489,7 @@ partial void ProcessAuditResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -509,13 +509,13 @@ partial void ProcessAuditResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -526,7 +526,7 @@ partial void ProcessAuditResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -546,13 +546,13 @@ partial void ProcessAuditResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -563,7 +563,7 @@ partial void ProcessAuditResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -606,7 +606,7 @@ partial void ProcessAuditResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -651,7 +651,7 @@ partial void ProcessAuditResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Create.g.cs index 744142e3..0df2bc6d 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Create.g.cs @@ -369,13 +369,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -386,7 +386,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -406,13 +406,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -423,7 +423,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -443,13 +443,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -460,7 +460,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -503,7 +503,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -548,7 +548,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Delete.g.cs index 173223c9..7a5ce546 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Delete.g.cs @@ -490,13 +490,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -507,7 +507,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -527,13 +527,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -544,7 +544,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -564,13 +564,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -581,7 +581,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -601,13 +601,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -618,7 +618,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -659,7 +659,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -702,7 +702,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Get.g.cs index cc79a7af..d212254c 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Get.g.cs @@ -356,13 +356,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -393,13 +393,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -453,7 +453,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -498,7 +498,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.GrantMember.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.GrantMember.g.cs index 23b62327..498a3594 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.GrantMember.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.GrantMember.g.cs @@ -382,13 +382,13 @@ partial void ProcessGrantMemberResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessGrantMemberResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessGrantMemberResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessGrantMemberResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessGrantMemberResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessGrantMemberResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -493,13 +493,13 @@ partial void ProcessGrantMemberResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -510,7 +510,7 @@ partial void ProcessGrantMemberResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -551,7 +551,7 @@ partial void ProcessGrantMemberResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -594,7 +594,7 @@ partial void ProcessGrantMemberResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.List.g.cs index eeec2a3f..cab0d6fe 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.List.g.cs @@ -409,13 +409,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -446,13 +446,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -506,7 +506,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -551,7 +551,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.ListMembers.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.ListMembers.g.cs index 253e204e..26f54a42 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.ListMembers.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.ListMembers.g.cs @@ -386,13 +386,13 @@ partial void ProcessListMembersResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessListMembersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -423,13 +423,13 @@ partial void ProcessListMembersResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessListMembersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -460,13 +460,13 @@ partial void ProcessListMembersResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessListMembersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -520,7 +520,7 @@ partial void ProcessListMembersResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -565,7 +565,7 @@ partial void ProcessListMembersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Promote.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Promote.g.cs index 8d37901b..abeabbb6 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Promote.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Promote.g.cs @@ -447,13 +447,13 @@ partial void ProcessPromoteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -464,7 +464,7 @@ partial void ProcessPromoteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -484,13 +484,13 @@ partial void ProcessPromoteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -501,7 +501,7 @@ partial void ProcessPromoteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -521,13 +521,13 @@ partial void ProcessPromoteResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -538,7 +538,7 @@ partial void ProcessPromoteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -558,13 +558,13 @@ partial void ProcessPromoteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -575,7 +575,7 @@ partial void ProcessPromoteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -595,13 +595,13 @@ partial void ProcessPromoteResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -612,7 +612,7 @@ partial void ProcessPromoteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -655,7 +655,7 @@ partial void ProcessPromoteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -700,7 +700,7 @@ partial void ProcessPromoteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Restore.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Restore.g.cs index cf74c80a..077388a5 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Restore.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Restore.g.cs @@ -396,13 +396,13 @@ partial void ProcessRestoreResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -413,7 +413,7 @@ partial void ProcessRestoreResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -433,13 +433,13 @@ partial void ProcessRestoreResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -450,7 +450,7 @@ partial void ProcessRestoreResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -470,13 +470,13 @@ partial void ProcessRestoreResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -487,7 +487,7 @@ partial void ProcessRestoreResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -507,13 +507,13 @@ partial void ProcessRestoreResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -524,7 +524,7 @@ partial void ProcessRestoreResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -567,7 +567,7 @@ partial void ProcessRestoreResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -612,7 +612,7 @@ partial void ProcessRestoreResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.RevokeMember.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.RevokeMember.g.cs index 26ff590d..a0f6203b 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.RevokeMember.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.RevokeMember.g.cs @@ -369,13 +369,13 @@ partial void ProcessRevokeMemberResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -386,7 +386,7 @@ partial void ProcessRevokeMemberResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -406,13 +406,13 @@ partial void ProcessRevokeMemberResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -423,7 +423,7 @@ partial void ProcessRevokeMemberResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -443,13 +443,13 @@ partial void ProcessRevokeMemberResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -460,7 +460,7 @@ partial void ProcessRevokeMemberResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -501,7 +501,7 @@ partial void ProcessRevokeMemberResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -544,7 +544,7 @@ partial void ProcessRevokeMemberResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Stats.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Stats.g.cs index 22b8bbf1..165a61ef 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Stats.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Stats.g.cs @@ -366,13 +366,13 @@ partial void ProcessStatsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -383,7 +383,7 @@ partial void ProcessStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -403,13 +403,13 @@ partial void ProcessStatsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -463,7 +463,7 @@ partial void ProcessStatsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -508,7 +508,7 @@ partial void ProcessStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Teardown.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Teardown.g.cs index 8af15ab7..bc5775a7 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Teardown.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Teardown.g.cs @@ -364,13 +364,13 @@ partial void ProcessTeardownResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -381,7 +381,7 @@ partial void ProcessTeardownResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -401,13 +401,13 @@ partial void ProcessTeardownResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -418,7 +418,7 @@ partial void ProcessTeardownResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -438,13 +438,13 @@ partial void ProcessTeardownResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -455,7 +455,7 @@ partial void ProcessTeardownResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -498,7 +498,7 @@ partial void ProcessTeardownResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -543,7 +543,7 @@ partial void ProcessTeardownResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Unarchive.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Unarchive.g.cs index ed89a736..3d554f15 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Unarchive.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Unarchive.g.cs @@ -354,13 +354,13 @@ partial void ProcessUnarchiveResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ partial void ProcessUnarchiveResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -391,13 +391,13 @@ partial void ProcessUnarchiveResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessUnarchiveResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -428,13 +428,13 @@ partial void ProcessUnarchiveResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessUnarchiveResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -486,7 +486,7 @@ partial void ProcessUnarchiveResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -529,7 +529,7 @@ partial void ProcessUnarchiveResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Update.g.cs index 03fb7f29..a47a59eb 100644 --- a/src/libs/Speechify/Generated/Speechify.ProjectsClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ProjectsClient.Update.g.cs @@ -382,13 +382,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -493,13 +493,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -510,7 +510,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -553,7 +553,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -598,7 +598,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.PublishGateClient.Latest.g.cs b/src/libs/Speechify/Generated/Speechify.PublishGateClient.Latest.g.cs index fcfcbc64..f27c7425 100644 --- a/src/libs/Speechify/Generated/Speechify.PublishGateClient.Latest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.PublishGateClient.Latest.g.cs @@ -366,13 +366,13 @@ partial void ProcessLatestResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -383,7 +383,7 @@ partial void ProcessLatestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -403,13 +403,13 @@ partial void ProcessLatestResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessLatestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -440,13 +440,13 @@ partial void ProcessLatestResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -457,7 +457,7 @@ partial void ProcessLatestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -477,13 +477,13 @@ partial void ProcessLatestResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -494,7 +494,7 @@ partial void ProcessLatestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -537,7 +537,7 @@ partial void ProcessLatestResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -582,7 +582,7 @@ partial void ProcessLatestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RoutesClient.CreateRoute.g.cs b/src/libs/Speechify/Generated/Speechify.RoutesClient.CreateRoute.g.cs index 50d898bd..1886491b 100644 --- a/src/libs/Speechify/Generated/Speechify.RoutesClient.CreateRoute.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RoutesClient.CreateRoute.g.cs @@ -467,13 +467,13 @@ partial void ProcessCreateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -484,7 +484,7 @@ partial void ProcessCreateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -504,13 +504,13 @@ partial void ProcessCreateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -521,7 +521,7 @@ partial void ProcessCreateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -541,13 +541,13 @@ partial void ProcessCreateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -558,7 +558,7 @@ partial void ProcessCreateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -578,13 +578,13 @@ partial void ProcessCreateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -595,7 +595,7 @@ partial void ProcessCreateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -615,13 +615,13 @@ partial void ProcessCreateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -632,7 +632,7 @@ partial void ProcessCreateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -652,13 +652,13 @@ partial void ProcessCreateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -669,7 +669,7 @@ partial void ProcessCreateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -689,13 +689,13 @@ partial void ProcessCreateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -706,7 +706,7 @@ partial void ProcessCreateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -749,7 +749,7 @@ partial void ProcessCreateRouteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -794,7 +794,7 @@ partial void ProcessCreateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RoutesClient.DeleteRoute.g.cs b/src/libs/Speechify/Generated/Speechify.RoutesClient.DeleteRoute.g.cs index 8526d1ff..9dabc596 100644 --- a/src/libs/Speechify/Generated/Speechify.RoutesClient.DeleteRoute.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RoutesClient.DeleteRoute.g.cs @@ -363,13 +363,13 @@ partial void ProcessDeleteRouteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessDeleteRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -400,13 +400,13 @@ partial void ProcessDeleteRouteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessDeleteRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -437,13 +437,13 @@ partial void ProcessDeleteRouteResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -454,7 +454,7 @@ partial void ProcessDeleteRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -474,13 +474,13 @@ partial void ProcessDeleteRouteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -491,7 +491,7 @@ partial void ProcessDeleteRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -511,13 +511,13 @@ partial void ProcessDeleteRouteResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -528,7 +528,7 @@ partial void ProcessDeleteRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -548,13 +548,13 @@ partial void ProcessDeleteRouteResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -565,7 +565,7 @@ partial void ProcessDeleteRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -606,7 +606,7 @@ partial void ProcessDeleteRouteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -649,7 +649,7 @@ partial void ProcessDeleteRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RoutesClient.GetRoute.g.cs b/src/libs/Speechify/Generated/Speechify.RoutesClient.GetRoute.g.cs index ac9934c2..63b88ce9 100644 --- a/src/libs/Speechify/Generated/Speechify.RoutesClient.GetRoute.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RoutesClient.GetRoute.g.cs @@ -363,13 +363,13 @@ partial void ProcessGetRouteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessGetRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -400,13 +400,13 @@ partial void ProcessGetRouteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessGetRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -437,13 +437,13 @@ partial void ProcessGetRouteResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -454,7 +454,7 @@ partial void ProcessGetRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -474,13 +474,13 @@ partial void ProcessGetRouteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -491,7 +491,7 @@ partial void ProcessGetRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -511,13 +511,13 @@ partial void ProcessGetRouteResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -528,7 +528,7 @@ partial void ProcessGetRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -548,13 +548,13 @@ partial void ProcessGetRouteResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -565,7 +565,7 @@ partial void ProcessGetRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -608,7 +608,7 @@ partial void ProcessGetRouteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -653,7 +653,7 @@ partial void ProcessGetRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RoutesClient.ListRoutes.g.cs b/src/libs/Speechify/Generated/Speechify.RoutesClient.ListRoutes.g.cs index 91b83d5c..7ca2f404 100644 --- a/src/libs/Speechify/Generated/Speechify.RoutesClient.ListRoutes.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RoutesClient.ListRoutes.g.cs @@ -380,13 +380,13 @@ partial void ProcessListRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -397,7 +397,7 @@ partial void ProcessListRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -417,13 +417,13 @@ partial void ProcessListRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -434,7 +434,7 @@ partial void ProcessListRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -454,13 +454,13 @@ partial void ProcessListRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -471,7 +471,7 @@ partial void ProcessListRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -491,13 +491,13 @@ partial void ProcessListRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -508,7 +508,7 @@ partial void ProcessListRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -528,13 +528,13 @@ partial void ProcessListRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -545,7 +545,7 @@ partial void ProcessListRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -565,13 +565,13 @@ partial void ProcessListRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -582,7 +582,7 @@ partial void ProcessListRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -625,7 +625,7 @@ partial void ProcessListRoutesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -670,7 +670,7 @@ partial void ProcessListRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RoutesClient.MountRoutes.g.cs b/src/libs/Speechify/Generated/Speechify.RoutesClient.MountRoutes.g.cs index 7705e7d5..193cb4b1 100644 --- a/src/libs/Speechify/Generated/Speechify.RoutesClient.MountRoutes.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RoutesClient.MountRoutes.g.cs @@ -475,13 +475,13 @@ partial void ProcessMountRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -492,7 +492,7 @@ partial void ProcessMountRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -512,13 +512,13 @@ partial void ProcessMountRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -529,7 +529,7 @@ partial void ProcessMountRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -549,13 +549,13 @@ partial void ProcessMountRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -566,7 +566,7 @@ partial void ProcessMountRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -586,13 +586,13 @@ partial void ProcessMountRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -603,7 +603,7 @@ partial void ProcessMountRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -623,13 +623,13 @@ partial void ProcessMountRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.HostedAPIMountConflictError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.HostedAPIMountConflictError.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.HostedAPIMountConflictError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.HostedAPIMountConflictError.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -640,7 +640,7 @@ partial void ProcessMountRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -660,13 +660,13 @@ partial void ProcessMountRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -677,7 +677,7 @@ partial void ProcessMountRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -697,13 +697,13 @@ partial void ProcessMountRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -714,7 +714,7 @@ partial void ProcessMountRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -757,7 +757,7 @@ partial void ProcessMountRoutesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -802,7 +802,7 @@ partial void ProcessMountRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RoutesClient.UpdateRoute.g.cs b/src/libs/Speechify/Generated/Speechify.RoutesClient.UpdateRoute.g.cs index 6988a568..8b12ba32 100644 --- a/src/libs/Speechify/Generated/Speechify.RoutesClient.UpdateRoute.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RoutesClient.UpdateRoute.g.cs @@ -383,13 +383,13 @@ partial void ProcessUpdateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +400,7 @@ partial void ProcessUpdateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -420,13 +420,13 @@ partial void ProcessUpdateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -437,7 +437,7 @@ partial void ProcessUpdateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -457,13 +457,13 @@ partial void ProcessUpdateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -474,7 +474,7 @@ partial void ProcessUpdateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -494,13 +494,13 @@ partial void ProcessUpdateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -511,7 +511,7 @@ partial void ProcessUpdateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -531,13 +531,13 @@ partial void ProcessUpdateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -548,7 +548,7 @@ partial void ProcessUpdateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -568,13 +568,13 @@ partial void ProcessUpdateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -585,7 +585,7 @@ partial void ProcessUpdateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -605,13 +605,13 @@ partial void ProcessUpdateRouteResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -622,7 +622,7 @@ partial void ProcessUpdateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -665,7 +665,7 @@ partial void ProcessUpdateRouteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -710,7 +710,7 @@ partial void ProcessUpdateRouteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.CancelRun.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.CancelRun.g.cs index 1bc89aa3..2294d3ab 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.CancelRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.CancelRun.g.cs @@ -388,13 +388,13 @@ partial void ProcessCancelRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +405,7 @@ partial void ProcessCancelRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -425,13 +425,13 @@ partial void ProcessCancelRunResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessCancelRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -462,13 +462,13 @@ partial void ProcessCancelRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -479,7 +479,7 @@ partial void ProcessCancelRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -522,7 +522,7 @@ partial void ProcessCancelRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -567,7 +567,7 @@ partial void ProcessCancelRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.CreateRun.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.CreateRun.g.cs index 090b9574..48904fa0 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.CreateRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.CreateRun.g.cs @@ -483,13 +483,13 @@ partial void ProcessCreateRunResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessCreateRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -520,13 +520,13 @@ partial void ProcessCreateRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -537,7 +537,7 @@ partial void ProcessCreateRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -557,13 +557,13 @@ partial void ProcessCreateRunResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -574,7 +574,7 @@ partial void ProcessCreateRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -594,13 +594,13 @@ partial void ProcessCreateRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -611,7 +611,7 @@ partial void ProcessCreateRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -631,13 +631,13 @@ partial void ProcessCreateRunResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -648,7 +648,7 @@ partial void ProcessCreateRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -668,13 +668,13 @@ partial void ProcessCreateRunResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -685,7 +685,7 @@ partial void ProcessCreateRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -705,13 +705,13 @@ partial void ProcessCreateRunResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -722,7 +722,7 @@ partial void ProcessCreateRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -765,7 +765,7 @@ partial void ProcessCreateRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -810,7 +810,7 @@ partial void ProcessCreateRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.Get.g.cs index 2028860a..09f4d2ab 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.Get.g.cs @@ -372,13 +372,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -409,13 +409,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -446,13 +446,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -506,7 +506,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -551,7 +551,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.GetRun.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.GetRun.g.cs index 5d370a26..1fb96966 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.GetRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.GetRun.g.cs @@ -367,13 +367,13 @@ partial void ProcessGetRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -384,7 +384,7 @@ partial void ProcessGetRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -404,13 +404,13 @@ partial void ProcessGetRunResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -421,7 +421,7 @@ partial void ProcessGetRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -441,13 +441,13 @@ partial void ProcessGetRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -458,7 +458,7 @@ partial void ProcessGetRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -501,7 +501,7 @@ partial void ProcessGetRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -546,7 +546,7 @@ partial void ProcessGetRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.List.g.cs index 52b1a174..2268d0d7 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.List.g.cs @@ -439,13 +439,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -456,7 +456,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -476,13 +476,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -493,7 +493,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -513,13 +513,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -530,7 +530,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -550,13 +550,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -567,7 +567,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -610,7 +610,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -655,7 +655,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.ListRunChildren.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.ListRunChildren.g.cs index a794d5f3..88240ab6 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.ListRunChildren.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.ListRunChildren.g.cs @@ -407,13 +407,13 @@ partial void ProcessListRunChildrenResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -424,7 +424,7 @@ partial void ProcessListRunChildrenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -444,13 +444,13 @@ partial void ProcessListRunChildrenResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -461,7 +461,7 @@ partial void ProcessListRunChildrenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -481,13 +481,13 @@ partial void ProcessListRunChildrenResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -498,7 +498,7 @@ partial void ProcessListRunChildrenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -518,13 +518,13 @@ partial void ProcessListRunChildrenResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -535,7 +535,7 @@ partial void ProcessListRunChildrenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -578,7 +578,7 @@ partial void ProcessListRunChildrenResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -623,7 +623,7 @@ partial void ProcessListRunChildrenResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.ListRunSteps.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.ListRunSteps.g.cs index 98b33ddc..812e2f20 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.ListRunSteps.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.ListRunSteps.g.cs @@ -415,13 +415,13 @@ partial void ProcessListRunStepsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -432,7 +432,7 @@ partial void ProcessListRunStepsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -452,13 +452,13 @@ partial void ProcessListRunStepsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -469,7 +469,7 @@ partial void ProcessListRunStepsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -489,13 +489,13 @@ partial void ProcessListRunStepsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -506,7 +506,7 @@ partial void ProcessListRunStepsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -526,13 +526,13 @@ partial void ProcessListRunStepsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -543,7 +543,7 @@ partial void ProcessListRunStepsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -586,7 +586,7 @@ partial void ProcessListRunStepsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -631,7 +631,7 @@ partial void ProcessListRunStepsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.ListRuns.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.ListRuns.g.cs index 27d6296a..721e8ca8 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.ListRuns.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.ListRuns.g.cs @@ -408,13 +408,13 @@ partial void ProcessListRunsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -425,7 +425,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -445,13 +445,13 @@ partial void ProcessListRunsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -462,7 +462,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -482,13 +482,13 @@ partial void ProcessListRunsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -499,7 +499,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -519,13 +519,13 @@ partial void ProcessListRunsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -536,7 +536,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -579,7 +579,7 @@ partial void ProcessListRunsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -624,7 +624,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.StreamEvents.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.StreamEvents.g.cs index 8748a56d..53c01aee 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.StreamEvents.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.StreamEvents.g.cs @@ -392,13 +392,13 @@ partial void ProcessStreamEventsResponse( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -409,7 +409,7 @@ partial void ProcessStreamEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -429,13 +429,13 @@ partial void ProcessStreamEventsResponse( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -446,7 +446,7 @@ partial void ProcessStreamEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -466,13 +466,13 @@ partial void ProcessStreamEventsResponse( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -483,7 +483,7 @@ partial void ProcessStreamEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -514,7 +514,7 @@ partial void ProcessStreamEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.StreamProjectEvents.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.StreamProjectEvents.g.cs index f270171b..f21196a2 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.StreamProjectEvents.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.StreamProjectEvents.g.cs @@ -374,13 +374,13 @@ partial void ProcessStreamProjectEventsResponse( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -391,7 +391,7 @@ partial void ProcessStreamProjectEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -411,13 +411,13 @@ partial void ProcessStreamProjectEventsResponse( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -428,7 +428,7 @@ partial void ProcessStreamProjectEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -448,13 +448,13 @@ partial void ProcessStreamProjectEventsResponse( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -465,7 +465,7 @@ partial void ProcessStreamProjectEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -485,13 +485,13 @@ partial void ProcessStreamProjectEventsResponse( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessStreamProjectEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -522,13 +522,13 @@ partial void ProcessStreamProjectEventsResponse( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessStreamProjectEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -570,7 +570,7 @@ partial void ProcessStreamProjectEventsResponse( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.RunsClient.SubmitRun.g.cs b/src/libs/Speechify/Generated/Speechify.RunsClient.SubmitRun.g.cs index 964b9444..c8d7cd55 100644 --- a/src/libs/Speechify/Generated/Speechify.RunsClient.SubmitRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.RunsClient.SubmitRun.g.cs @@ -434,13 +434,13 @@ partial void ProcessSubmitRunResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -451,7 +451,7 @@ partial void ProcessSubmitRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -471,13 +471,13 @@ partial void ProcessSubmitRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -488,7 +488,7 @@ partial void ProcessSubmitRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -508,13 +508,13 @@ partial void ProcessSubmitRunResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -525,7 +525,7 @@ partial void ProcessSubmitRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -545,13 +545,13 @@ partial void ProcessSubmitRunResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -562,7 +562,7 @@ partial void ProcessSubmitRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -582,13 +582,13 @@ partial void ProcessSubmitRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -599,7 +599,7 @@ partial void ProcessSubmitRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -619,13 +619,13 @@ partial void ProcessSubmitRunResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -636,7 +636,7 @@ partial void ProcessSubmitRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -679,7 +679,7 @@ partial void ProcessSubmitRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -724,7 +724,7 @@ partial void ProcessSubmitRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Create.g.cs index 802fcc68..f4bc649a 100644 --- a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Create.g.cs @@ -409,13 +409,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -446,13 +446,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -483,13 +483,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -520,13 +520,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -537,7 +537,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -557,13 +557,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -574,7 +574,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -617,7 +617,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -662,7 +662,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.CreateSession.g.cs b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.CreateSession.g.cs index 277ad75d..a539d65e 100644 --- a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.CreateSession.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.CreateSession.g.cs @@ -387,13 +387,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -404,7 +404,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -424,13 +424,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -441,7 +441,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -461,13 +461,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -478,7 +478,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -498,13 +498,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -515,7 +515,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -535,13 +535,13 @@ partial void ProcessCreateSessionResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -552,7 +552,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -595,7 +595,7 @@ partial void ProcessCreateSessionResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -640,7 +640,7 @@ partial void ProcessCreateSessionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.List.g.cs index a2e15fdd..26ddd305 100644 --- a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.List.g.cs @@ -388,13 +388,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +405,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -425,13 +425,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -485,7 +485,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -530,7 +530,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Preview.g.cs b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Preview.g.cs index 7756d2f6..529a99db 100644 --- a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Preview.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Preview.g.cs @@ -383,13 +383,13 @@ partial void ProcessPreviewResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +400,7 @@ partial void ProcessPreviewResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -420,13 +420,13 @@ partial void ProcessPreviewResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -437,7 +437,7 @@ partial void ProcessPreviewResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -480,7 +480,7 @@ partial void ProcessPreviewResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -525,7 +525,7 @@ partial void ProcessPreviewResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Reveal.g.cs b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Reveal.g.cs index 2232a93d..26458c9f 100644 --- a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Reveal.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Reveal.g.cs @@ -375,13 +375,13 @@ partial void ProcessRevealResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -392,7 +392,7 @@ partial void ProcessRevealResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -412,13 +412,13 @@ partial void ProcessRevealResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -429,7 +429,7 @@ partial void ProcessRevealResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -449,13 +449,13 @@ partial void ProcessRevealResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -466,7 +466,7 @@ partial void ProcessRevealResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -486,13 +486,13 @@ partial void ProcessRevealResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -503,7 +503,7 @@ partial void ProcessRevealResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -546,7 +546,7 @@ partial void ProcessRevealResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -591,7 +591,7 @@ partial void ProcessRevealResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Revoke.g.cs b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Revoke.g.cs index 6eb23739..feb007ce 100644 --- a/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Revoke.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ShareLinksClient.Revoke.g.cs @@ -373,13 +373,13 @@ partial void ProcessRevokeResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -390,7 +390,7 @@ partial void ProcessRevokeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -410,13 +410,13 @@ partial void ProcessRevokeResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -427,7 +427,7 @@ partial void ProcessRevokeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -447,13 +447,13 @@ partial void ProcessRevokeResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -464,7 +464,7 @@ partial void ProcessRevokeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -505,7 +505,7 @@ partial void ProcessRevokeResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -548,7 +548,7 @@ partial void ProcessRevokeResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Create.g.cs index 1a1f8c4e..1c516fe4 100644 --- a/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Create.g.cs @@ -371,13 +371,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -388,7 +388,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -408,13 +408,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -425,7 +425,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -445,13 +445,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -462,7 +462,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -505,7 +505,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -550,7 +550,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Delete.g.cs index 3333c22a..c09639da 100644 --- a/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Delete.g.cs @@ -358,13 +358,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -453,7 +453,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -496,7 +496,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Get.g.cs index 035acfc3..63b9b54a 100644 --- a/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SipTrunksClient.Get.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -449,7 +449,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SipTrunksClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.SipTrunksClient.List.g.cs index 0c671ecf..ff6e27da 100644 --- a/src/libs/Speechify/Generated/Speechify.SipTrunksClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SipTrunksClient.List.g.cs @@ -377,13 +377,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -394,7 +394,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -414,13 +414,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -431,7 +431,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -474,7 +474,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -519,7 +519,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SkillsClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.SkillsClient.Create.g.cs index d0789801..784cae9e 100644 --- a/src/libs/Speechify/Generated/Speechify.SkillsClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SkillsClient.Create.g.cs @@ -388,13 +388,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +405,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -425,13 +425,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -462,13 +462,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -479,7 +479,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -499,13 +499,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -516,7 +516,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -536,13 +536,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -553,7 +553,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -596,7 +596,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -641,7 +641,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SkillsClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.SkillsClient.Delete.g.cs index 9b2d6ed3..d2a3c551 100644 --- a/src/libs/Speechify/Generated/Speechify.SkillsClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SkillsClient.Delete.g.cs @@ -358,13 +358,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -432,13 +432,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -469,13 +469,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -527,7 +527,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -570,7 +570,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SkillsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.SkillsClient.Get.g.cs index 32836371..b159330e 100644 --- a/src/libs/Speechify/Generated/Speechify.SkillsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SkillsClient.Get.g.cs @@ -372,13 +372,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -483,13 +483,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -500,7 +500,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -543,7 +543,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -588,7 +588,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SkillsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.SkillsClient.List.g.cs index 343a8ec8..51adc319 100644 --- a/src/libs/Speechify/Generated/Speechify.SkillsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SkillsClient.List.g.cs @@ -389,13 +389,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -426,13 +426,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -463,13 +463,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -480,7 +480,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -500,13 +500,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -517,7 +517,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -560,7 +560,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -605,7 +605,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SkillsClient.ListVersions.g.cs b/src/libs/Speechify/Generated/Speechify.SkillsClient.ListVersions.g.cs index 4bcf56b2..77daffab 100644 --- a/src/libs/Speechify/Generated/Speechify.SkillsClient.ListVersions.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SkillsClient.ListVersions.g.cs @@ -386,13 +386,13 @@ partial void ProcessListVersionsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessListVersionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -423,13 +423,13 @@ partial void ProcessListVersionsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessListVersionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -460,13 +460,13 @@ partial void ProcessListVersionsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessListVersionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -520,7 +520,7 @@ partial void ProcessListVersionsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -565,7 +565,7 @@ partial void ProcessListVersionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.SkillsClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.SkillsClient.Update.g.cs index 0718fbce..39134749 100644 --- a/src/libs/Speechify/Generated/Speechify.SkillsClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.SkillsClient.Update.g.cs @@ -386,13 +386,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -423,13 +423,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -460,13 +460,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -497,13 +497,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -514,7 +514,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -534,13 +534,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -551,7 +551,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -594,7 +594,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -639,7 +639,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.StoresClient.Attach.g.cs b/src/libs/Speechify/Generated/Speechify.StoresClient.Attach.g.cs index 20d51bc1..c201f0b1 100644 --- a/src/libs/Speechify/Generated/Speechify.StoresClient.Attach.g.cs +++ b/src/libs/Speechify/Generated/Speechify.StoresClient.Attach.g.cs @@ -365,13 +365,13 @@ partial void ProcessAttachResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -382,7 +382,7 @@ partial void ProcessAttachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -402,13 +402,13 @@ partial void ProcessAttachResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -419,7 +419,7 @@ partial void ProcessAttachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -439,13 +439,13 @@ partial void ProcessAttachResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -456,7 +456,7 @@ partial void ProcessAttachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -476,13 +476,13 @@ partial void ProcessAttachResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -493,7 +493,7 @@ partial void ProcessAttachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -513,13 +513,13 @@ partial void ProcessAttachResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -530,7 +530,7 @@ partial void ProcessAttachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -571,7 +571,7 @@ partial void ProcessAttachResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -614,7 +614,7 @@ partial void ProcessAttachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.StoresClient.Collections.g.cs b/src/libs/Speechify/Generated/Speechify.StoresClient.Collections.g.cs index 1920ee32..97230ffd 100644 --- a/src/libs/Speechify/Generated/Speechify.StoresClient.Collections.g.cs +++ b/src/libs/Speechify/Generated/Speechify.StoresClient.Collections.g.cs @@ -358,13 +358,13 @@ partial void ProcessCollectionsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessCollectionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -395,13 +395,13 @@ partial void ProcessCollectionsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessCollectionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -432,13 +432,13 @@ partial void ProcessCollectionsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessCollectionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -469,13 +469,13 @@ partial void ProcessCollectionsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessCollectionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -529,7 +529,7 @@ partial void ProcessCollectionsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -574,7 +574,7 @@ partial void ProcessCollectionsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.StoresClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.StoresClient.Create.g.cs index dd930485..668e8566 100644 --- a/src/libs/Speechify/Generated/Speechify.StoresClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.StoresClient.Create.g.cs @@ -392,13 +392,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -409,7 +409,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -429,13 +429,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -446,7 +446,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -466,13 +466,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -483,7 +483,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -503,13 +503,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -520,7 +520,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -540,13 +540,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -557,7 +557,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -577,13 +577,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -594,7 +594,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -637,7 +637,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -682,7 +682,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.StoresClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.StoresClient.Delete.g.cs index c6cd6fc6..e30b9992 100644 --- a/src/libs/Speechify/Generated/Speechify.StoresClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.StoresClient.Delete.g.cs @@ -356,13 +356,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -393,13 +393,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -430,13 +430,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -447,7 +447,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -467,13 +467,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -484,7 +484,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -525,7 +525,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -568,7 +568,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.StoresClient.Detach.g.cs b/src/libs/Speechify/Generated/Speechify.StoresClient.Detach.g.cs index f782ba55..24a4188e 100644 --- a/src/libs/Speechify/Generated/Speechify.StoresClient.Detach.g.cs +++ b/src/libs/Speechify/Generated/Speechify.StoresClient.Detach.g.cs @@ -363,13 +363,13 @@ partial void ProcessDetachResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessDetachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -400,13 +400,13 @@ partial void ProcessDetachResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessDetachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -437,13 +437,13 @@ partial void ProcessDetachResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -454,7 +454,7 @@ partial void ProcessDetachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -474,13 +474,13 @@ partial void ProcessDetachResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -491,7 +491,7 @@ partial void ProcessDetachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -532,7 +532,7 @@ partial void ProcessDetachResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -575,7 +575,7 @@ partial void ProcessDetachResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.StoresClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.StoresClient.Get.g.cs index 01eaf369..050dd309 100644 --- a/src/libs/Speechify/Generated/Speechify.StoresClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.StoresClient.Get.g.cs @@ -354,13 +354,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -391,13 +391,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -428,13 +428,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -465,13 +465,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -482,7 +482,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -525,7 +525,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -570,7 +570,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.StoresClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.StoresClient.List.g.cs index 5b176686..92cb4399 100644 --- a/src/libs/Speechify/Generated/Speechify.StoresClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.StoresClient.List.g.cs @@ -399,13 +399,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -416,7 +416,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -436,13 +436,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -453,7 +453,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -473,13 +473,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -490,7 +490,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -510,13 +510,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -527,7 +527,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -570,7 +570,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -615,7 +615,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.StoresClient.ListAttached.g.cs b/src/libs/Speechify/Generated/Speechify.StoresClient.ListAttached.g.cs index 86496632..ffc6983d 100644 --- a/src/libs/Speechify/Generated/Speechify.StoresClient.ListAttached.g.cs +++ b/src/libs/Speechify/Generated/Speechify.StoresClient.ListAttached.g.cs @@ -382,13 +382,13 @@ partial void ProcessListAttachedResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessListAttachedResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessListAttachedResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessListAttachedResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessListAttachedResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessListAttachedResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -493,13 +493,13 @@ partial void ProcessListAttachedResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -510,7 +510,7 @@ partial void ProcessListAttachedResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -553,7 +553,7 @@ partial void ProcessListAttachedResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -598,7 +598,7 @@ partial void ProcessListAttachedResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.StoresClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.StoresClient.Update.g.cs index 46ad426c..fb4b4ab0 100644 --- a/src/libs/Speechify/Generated/Speechify.StoresClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.StoresClient.Update.g.cs @@ -374,13 +374,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -391,7 +391,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -411,13 +411,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -428,7 +428,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -448,13 +448,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -465,7 +465,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -485,13 +485,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -545,7 +545,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -590,7 +590,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TeamsClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.TeamsClient.Create.g.cs index 93f96a12..1d102b27 100644 --- a/src/libs/Speechify/Generated/Speechify.TeamsClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TeamsClient.Create.g.cs @@ -384,13 +384,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -401,7 +401,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -421,13 +421,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -438,7 +438,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -458,13 +458,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -475,7 +475,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -518,7 +518,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -563,7 +563,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TeamsClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.TeamsClient.Delete.g.cs index 92e12aee..d4cef64e 100644 --- a/src/libs/Speechify/Generated/Speechify.TeamsClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TeamsClient.Delete.g.cs @@ -352,13 +352,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -447,7 +447,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -490,7 +490,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TeamsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.TeamsClient.Get.g.cs index e8dbb898..397764db 100644 --- a/src/libs/Speechify/Generated/Speechify.TeamsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TeamsClient.Get.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -449,7 +449,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TeamsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.TeamsClient.List.g.cs index 8b9bdb29..f511a74e 100644 --- a/src/libs/Speechify/Generated/Speechify.TeamsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TeamsClient.List.g.cs @@ -375,13 +375,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -392,7 +392,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -412,13 +412,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -429,7 +429,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -472,7 +472,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -517,7 +517,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TeamsClient.ListRuns.g.cs b/src/libs/Speechify/Generated/Speechify.TeamsClient.ListRuns.g.cs index 21f84e11..864ce28c 100644 --- a/src/libs/Speechify/Generated/Speechify.TeamsClient.ListRuns.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TeamsClient.ListRuns.g.cs @@ -388,13 +388,13 @@ partial void ProcessListRunsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +405,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -425,13 +425,13 @@ partial void ProcessListRunsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -462,13 +462,13 @@ partial void ProcessListRunsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -479,7 +479,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -499,13 +499,13 @@ partial void ProcessListRunsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -516,7 +516,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -559,7 +559,7 @@ partial void ProcessListRunsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -604,7 +604,7 @@ partial void ProcessListRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TeamsClient.Run.g.cs b/src/libs/Speechify/Generated/Speechify.TeamsClient.Run.g.cs index 9bc0a305..359caa9c 100644 --- a/src/libs/Speechify/Generated/Speechify.TeamsClient.Run.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TeamsClient.Run.g.cs @@ -439,13 +439,13 @@ partial void ProcessRunResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -456,7 +456,7 @@ partial void ProcessRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -476,13 +476,13 @@ partial void ProcessRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -493,7 +493,7 @@ partial void ProcessRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -513,13 +513,13 @@ partial void ProcessRunResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -530,7 +530,7 @@ partial void ProcessRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -550,13 +550,13 @@ partial void ProcessRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -567,7 +567,7 @@ partial void ProcessRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -587,13 +587,13 @@ partial void ProcessRunResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -604,7 +604,7 @@ partial void ProcessRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -624,13 +624,13 @@ partial void ProcessRunResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -641,7 +641,7 @@ partial void ProcessRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -661,13 +661,13 @@ partial void ProcessRunResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -678,7 +678,7 @@ partial void ProcessRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -721,7 +721,7 @@ partial void ProcessRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -766,7 +766,7 @@ partial void ProcessRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TeamsClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.TeamsClient.Update.g.cs index a140f2c5..700604c9 100644 --- a/src/libs/Speechify/Generated/Speechify.TeamsClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TeamsClient.Update.g.cs @@ -376,13 +376,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -393,7 +393,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -413,13 +413,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -430,7 +430,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -450,13 +450,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -467,7 +467,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -510,7 +510,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -555,7 +555,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.CancelSuiteRun.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.CancelSuiteRun.g.cs index 0e8df1e5..cb582a38 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.CancelSuiteRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.CancelSuiteRun.g.cs @@ -358,13 +358,13 @@ partial void ProcessCancelSuiteRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessCancelSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessCancelSuiteRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessCancelSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -455,7 +455,7 @@ partial void ProcessCancelSuiteRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -500,7 +500,7 @@ partial void ProcessCancelSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.CancelTestRun.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.CancelTestRun.g.cs index 61bc53f5..58c53d37 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.CancelTestRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.CancelTestRun.g.cs @@ -356,13 +356,13 @@ partial void ProcessCancelTestRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessCancelTestRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -393,13 +393,13 @@ partial void ProcessCancelTestRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessCancelTestRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -453,7 +453,7 @@ partial void ProcessCancelTestRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -498,7 +498,7 @@ partial void ProcessCancelTestRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.CreateTest.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.CreateTest.g.cs index f4bd2207..6bdab887 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.CreateTest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.CreateTest.g.cs @@ -392,13 +392,13 @@ partial void ProcessCreateTestResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -409,7 +409,7 @@ partial void ProcessCreateTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -429,13 +429,13 @@ partial void ProcessCreateTestResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -446,7 +446,7 @@ partial void ProcessCreateTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -466,13 +466,13 @@ partial void ProcessCreateTestResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -483,7 +483,7 @@ partial void ProcessCreateTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -503,13 +503,13 @@ partial void ProcessCreateTestResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -520,7 +520,7 @@ partial void ProcessCreateTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -563,7 +563,7 @@ partial void ProcessCreateTestResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -608,7 +608,7 @@ partial void ProcessCreateTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.CreateTestFolder.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.CreateTestFolder.g.cs index a81092fd..62074f93 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.CreateTestFolder.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.CreateTestFolder.g.cs @@ -363,13 +363,13 @@ partial void ProcessCreateTestFolderResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessCreateTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -400,13 +400,13 @@ partial void ProcessCreateTestFolderResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessCreateTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -460,7 +460,7 @@ partial void ProcessCreateTestFolderResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -505,7 +505,7 @@ partial void ProcessCreateTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.DeleteTest.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.DeleteTest.g.cs index 99520f91..8f8e9b0a 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.DeleteTest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.DeleteTest.g.cs @@ -352,13 +352,13 @@ partial void ProcessDeleteTestResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDeleteTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDeleteTestResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDeleteTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -447,7 +447,7 @@ partial void ProcessDeleteTestResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -490,7 +490,7 @@ partial void ProcessDeleteTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.DeleteTestFolder.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.DeleteTestFolder.g.cs index 41ae271e..14fff7fc 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.DeleteTestFolder.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.DeleteTestFolder.g.cs @@ -352,13 +352,13 @@ partial void ProcessDeleteTestFolderResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDeleteTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDeleteTestFolderResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDeleteTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -447,7 +447,7 @@ partial void ProcessDeleteTestFolderResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -490,7 +490,7 @@ partial void ProcessDeleteTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.GetSuiteRun.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.GetSuiteRun.g.cs index 67f079e8..94c023d2 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.GetSuiteRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.GetSuiteRun.g.cs @@ -354,13 +354,13 @@ partial void ProcessGetSuiteRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -371,7 +371,7 @@ partial void ProcessGetSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -391,13 +391,13 @@ partial void ProcessGetSuiteRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessGetSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -451,7 +451,7 @@ partial void ProcessGetSuiteRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -496,7 +496,7 @@ partial void ProcessGetSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.GetTest.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.GetTest.g.cs index 4e873311..309fd78e 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.GetTest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.GetTest.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetTestResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetTestResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -449,7 +449,7 @@ partial void ProcessGetTestResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessGetTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.GetTestRun.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.GetTestRun.g.cs index 916c5664..6ecbadfa 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.GetTestRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.GetTestRun.g.cs @@ -358,13 +358,13 @@ partial void ProcessGetTestRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessGetTestRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -395,13 +395,13 @@ partial void ProcessGetTestRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessGetTestRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -455,7 +455,7 @@ partial void ProcessGetTestRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -500,7 +500,7 @@ partial void ProcessGetTestRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.GetTestStats.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.GetTestStats.g.cs index eae80340..d32f6bf7 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.GetTestStats.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.GetTestStats.g.cs @@ -375,13 +375,13 @@ partial void ProcessGetTestStatsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -392,7 +392,7 @@ partial void ProcessGetTestStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -412,13 +412,13 @@ partial void ProcessGetTestStatsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -429,7 +429,7 @@ partial void ProcessGetTestStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -472,7 +472,7 @@ partial void ProcessGetTestStatsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -517,7 +517,7 @@ partial void ProcessGetTestStatsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.ListAllTests.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.ListAllTests.g.cs index 390d3dae..a9aeca6a 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.ListAllTests.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.ListAllTests.g.cs @@ -463,13 +463,13 @@ partial void ProcessListAllTestsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -480,7 +480,7 @@ partial void ProcessListAllTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -500,13 +500,13 @@ partial void ProcessListAllTestsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -517,7 +517,7 @@ partial void ProcessListAllTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -560,7 +560,7 @@ partial void ProcessListAllTestsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -605,7 +605,7 @@ partial void ProcessListAllTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.ListSuiteRuns.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.ListSuiteRuns.g.cs index e5df4b64..203a3abd 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.ListSuiteRuns.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.ListSuiteRuns.g.cs @@ -395,13 +395,13 @@ partial void ProcessListSuiteRunsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessListSuiteRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -432,13 +432,13 @@ partial void ProcessListSuiteRunsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessListSuiteRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -469,13 +469,13 @@ partial void ProcessListSuiteRunsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessListSuiteRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -529,7 +529,7 @@ partial void ProcessListSuiteRunsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -574,7 +574,7 @@ partial void ProcessListSuiteRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.ListTestFolders.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.ListTestFolders.g.cs index 48d982b4..a1fa0569 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.ListTestFolders.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.ListTestFolders.g.cs @@ -393,13 +393,13 @@ partial void ProcessListTestFoldersResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessListTestFoldersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -430,13 +430,13 @@ partial void ProcessListTestFoldersResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -447,7 +447,7 @@ partial void ProcessListTestFoldersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -467,13 +467,13 @@ partial void ProcessListTestFoldersResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -484,7 +484,7 @@ partial void ProcessListTestFoldersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -527,7 +527,7 @@ partial void ProcessListTestFoldersResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -572,7 +572,7 @@ partial void ProcessListTestFoldersResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.ListTestRuns.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.ListTestRuns.g.cs index 42f4a692..3d7727e5 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.ListTestRuns.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.ListTestRuns.g.cs @@ -380,13 +380,13 @@ partial void ProcessListTestRunsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -397,7 +397,7 @@ partial void ProcessListTestRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -417,13 +417,13 @@ partial void ProcessListTestRunsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -434,7 +434,7 @@ partial void ProcessListTestRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -454,13 +454,13 @@ partial void ProcessListTestRunsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -471,7 +471,7 @@ partial void ProcessListTestRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -514,7 +514,7 @@ partial void ProcessListTestRunsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -559,7 +559,7 @@ partial void ProcessListTestRunsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.ResubmitSuiteRun.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.ResubmitSuiteRun.g.cs index 5e9153eb..98c88f62 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.ResubmitSuiteRun.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.ResubmitSuiteRun.g.cs @@ -381,13 +381,13 @@ partial void ProcessResubmitSuiteRunResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -398,7 +398,7 @@ partial void ProcessResubmitSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -418,13 +418,13 @@ partial void ProcessResubmitSuiteRunResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -435,7 +435,7 @@ partial void ProcessResubmitSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -455,13 +455,13 @@ partial void ProcessResubmitSuiteRunResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -472,7 +472,7 @@ partial void ProcessResubmitSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -492,13 +492,13 @@ partial void ProcessResubmitSuiteRunResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -509,7 +509,7 @@ partial void ProcessResubmitSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -529,13 +529,13 @@ partial void ProcessResubmitSuiteRunResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -546,7 +546,7 @@ partial void ProcessResubmitSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -589,7 +589,7 @@ partial void ProcessResubmitSuiteRunResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -634,7 +634,7 @@ partial void ProcessResubmitSuiteRunResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.RunTargetedTests.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.RunTargetedTests.g.cs index eefb8499..4fc3bf66 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.RunTargetedTests.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.RunTargetedTests.g.cs @@ -392,13 +392,13 @@ partial void ProcessRunTargetedTestsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -409,7 +409,7 @@ partial void ProcessRunTargetedTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -429,13 +429,13 @@ partial void ProcessRunTargetedTestsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -446,7 +446,7 @@ partial void ProcessRunTargetedTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -466,13 +466,13 @@ partial void ProcessRunTargetedTestsResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -483,7 +483,7 @@ partial void ProcessRunTargetedTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -503,13 +503,13 @@ partial void ProcessRunTargetedTestsResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -520,7 +520,7 @@ partial void ProcessRunTargetedTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -540,13 +540,13 @@ partial void ProcessRunTargetedTestsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -557,7 +557,7 @@ partial void ProcessRunTargetedTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -577,13 +577,13 @@ partial void ProcessRunTargetedTestsResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -594,7 +594,7 @@ partial void ProcessRunTargetedTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -637,7 +637,7 @@ partial void ProcessRunTargetedTestsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -682,7 +682,7 @@ partial void ProcessRunTargetedTestsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.RunTest.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.RunTest.g.cs index 28bc8bdb..f913786a 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.RunTest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.RunTest.g.cs @@ -413,13 +413,13 @@ partial void ProcessRunTestResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -430,7 +430,7 @@ partial void ProcessRunTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -450,13 +450,13 @@ partial void ProcessRunTestResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -467,7 +467,7 @@ partial void ProcessRunTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -487,13 +487,13 @@ partial void ProcessRunTestResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -504,7 +504,7 @@ partial void ProcessRunTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -524,13 +524,13 @@ partial void ProcessRunTestResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -541,7 +541,7 @@ partial void ProcessRunTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -561,13 +561,13 @@ partial void ProcessRunTestResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -578,7 +578,7 @@ partial void ProcessRunTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -621,7 +621,7 @@ partial void ProcessRunTestResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -666,7 +666,7 @@ partial void ProcessRunTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.RunTestsBatch.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.RunTestsBatch.g.cs index 37963a0f..41e0c975 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.RunTestsBatch.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.RunTestsBatch.g.cs @@ -388,13 +388,13 @@ partial void ProcessRunTestsBatchResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -405,7 +405,7 @@ partial void ProcessRunTestsBatchResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -425,13 +425,13 @@ partial void ProcessRunTestsBatchResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -442,7 +442,7 @@ partial void ProcessRunTestsBatchResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -462,13 +462,13 @@ partial void ProcessRunTestsBatchResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -479,7 +479,7 @@ partial void ProcessRunTestsBatchResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -499,13 +499,13 @@ partial void ProcessRunTestsBatchResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -516,7 +516,7 @@ partial void ProcessRunTestsBatchResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -559,7 +559,7 @@ partial void ProcessRunTestsBatchResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -604,7 +604,7 @@ partial void ProcessRunTestsBatchResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.UpdateTest.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.UpdateTest.g.cs index 70338964..fc2aef61 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.UpdateTest.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.UpdateTest.g.cs @@ -372,13 +372,13 @@ partial void ProcessUpdateTestResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessUpdateTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessUpdateTestResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessUpdateTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessUpdateTestResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessUpdateTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -506,7 +506,7 @@ partial void ProcessUpdateTestResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -551,7 +551,7 @@ partial void ProcessUpdateTestResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TestsClient.UpdateTestFolder.g.cs b/src/libs/Speechify/Generated/Speechify.TestsClient.UpdateTestFolder.g.cs index d038869c..db5f8799 100644 --- a/src/libs/Speechify/Generated/Speechify.TestsClient.UpdateTestFolder.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TestsClient.UpdateTestFolder.g.cs @@ -372,13 +372,13 @@ partial void ProcessUpdateTestFolderResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessUpdateTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -409,13 +409,13 @@ partial void ProcessUpdateTestFolderResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessUpdateTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -446,13 +446,13 @@ partial void ProcessUpdateTestFolderResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessUpdateTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -506,7 +506,7 @@ partial void ProcessUpdateTestFolderResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -551,7 +551,7 @@ partial void ProcessUpdateTestFolderResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Create.g.cs index fee27da1..41d88e75 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Create.g.cs @@ -403,13 +403,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -420,7 +420,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -440,13 +440,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -457,7 +457,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -477,13 +477,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.ToolNameTakenError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.ToolNameTakenError.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.ToolNameTakenError.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.ToolNameTakenError.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -494,7 +494,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -537,7 +537,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -582,7 +582,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Delete.g.cs index 2224f236..05980740 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Delete.g.cs @@ -352,13 +352,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -447,7 +447,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -490,7 +490,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Get.g.cs index 4294c707..542ac848 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Get.g.cs @@ -352,13 +352,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -389,13 +389,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -449,7 +449,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -494,7 +494,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ImportOpenAPI.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ImportOpenAPI.g.cs index 136157fe..cfdad17e 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ImportOpenAPI.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ImportOpenAPI.g.cs @@ -433,13 +433,13 @@ partial void ProcessImportOpenAPIResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -450,7 +450,7 @@ partial void ProcessImportOpenAPIResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -470,13 +470,13 @@ partial void ProcessImportOpenAPIResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -487,7 +487,7 @@ partial void ProcessImportOpenAPIResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -507,13 +507,13 @@ partial void ProcessImportOpenAPIResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -524,7 +524,7 @@ partial void ProcessImportOpenAPIResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -567,7 +567,7 @@ partial void ProcessImportOpenAPIResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -612,7 +612,7 @@ partial void ProcessImportOpenAPIResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.List.g.cs index 7250b9e4..3745941e 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.List.g.cs @@ -385,13 +385,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -422,13 +422,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -439,7 +439,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -459,13 +459,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +476,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -519,7 +519,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -564,7 +564,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ListApiRoutes.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ListApiRoutes.g.cs index f9aa1b94..82da3d2c 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ListApiRoutes.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ListApiRoutes.g.cs @@ -404,13 +404,13 @@ partial void ProcessListApiRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -421,7 +421,7 @@ partial void ProcessListApiRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -441,13 +441,13 @@ partial void ProcessListApiRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -458,7 +458,7 @@ partial void ProcessListApiRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -478,13 +478,13 @@ partial void ProcessListApiRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -495,7 +495,7 @@ partial void ProcessListApiRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -515,13 +515,13 @@ partial void ProcessListApiRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -532,7 +532,7 @@ partial void ProcessListApiRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -552,13 +552,13 @@ partial void ProcessListApiRoutesResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -569,7 +569,7 @@ partial void ProcessListApiRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -612,7 +612,7 @@ partial void ProcessListApiRoutesResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -657,7 +657,7 @@ partial void ProcessListApiRoutesResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ListAttachedAgents.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ListAttachedAgents.g.cs index 38215cb2..b3566780 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ListAttachedAgents.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.ListAttachedAgents.g.cs @@ -386,13 +386,13 @@ partial void ProcessListAttachedAgentsResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -403,7 +403,7 @@ partial void ProcessListAttachedAgentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -423,13 +423,13 @@ partial void ProcessListAttachedAgentsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -440,7 +440,7 @@ partial void ProcessListAttachedAgentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -460,13 +460,13 @@ partial void ProcessListAttachedAgentsResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -477,7 +477,7 @@ partial void ProcessListAttachedAgentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -520,7 +520,7 @@ partial void ProcessListAttachedAgentsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -565,7 +565,7 @@ partial void ProcessListAttachedAgentsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.RotateSecret.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.RotateSecret.g.cs index 3254ef89..b26b2d88 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.RotateSecret.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.RotateSecret.g.cs @@ -362,13 +362,13 @@ partial void ProcessRotateSecretResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -379,7 +379,7 @@ partial void ProcessRotateSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -399,13 +399,13 @@ partial void ProcessRotateSecretResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -416,7 +416,7 @@ partial void ProcessRotateSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -436,13 +436,13 @@ partial void ProcessRotateSecretResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -453,7 +453,7 @@ partial void ProcessRotateSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -496,7 +496,7 @@ partial void ProcessRotateSecretResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -541,7 +541,7 @@ partial void ProcessRotateSecretResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestMCPConnection.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestMCPConnection.g.cs index 3ba7a2ff..a3c24482 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestMCPConnection.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestMCPConnection.g.cs @@ -385,13 +385,13 @@ partial void ProcessTestMCPConnectionResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessTestMCPConnectionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -422,13 +422,13 @@ partial void ProcessTestMCPConnectionResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -439,7 +439,7 @@ partial void ProcessTestMCPConnectionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -459,13 +459,13 @@ partial void ProcessTestMCPConnectionResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +476,7 @@ partial void ProcessTestMCPConnectionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -519,7 +519,7 @@ partial void ProcessTestMCPConnectionResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -564,7 +564,7 @@ partial void ProcessTestMCPConnectionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestOpenAPICall.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestOpenAPICall.g.cs index e71b09d9..bb7e6629 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestOpenAPICall.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestOpenAPICall.g.cs @@ -411,13 +411,13 @@ partial void ProcessTestOpenAPICallResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -428,7 +428,7 @@ partial void ProcessTestOpenAPICallResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -448,13 +448,13 @@ partial void ProcessTestOpenAPICallResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -465,7 +465,7 @@ partial void ProcessTestOpenAPICallResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -485,13 +485,13 @@ partial void ProcessTestOpenAPICallResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessTestOpenAPICallResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -522,13 +522,13 @@ partial void ProcessTestOpenAPICallResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessTestOpenAPICallResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -582,7 +582,7 @@ partial void ProcessTestOpenAPICallResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -627,7 +627,7 @@ partial void ProcessTestOpenAPICallResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestWebhookConnection.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestWebhookConnection.g.cs index af9898a2..4ebefa23 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestWebhookConnection.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.TestWebhookConnection.g.cs @@ -391,13 +391,13 @@ partial void ProcessTestWebhookConnectionResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -408,7 +408,7 @@ partial void ProcessTestWebhookConnectionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -428,13 +428,13 @@ partial void ProcessTestWebhookConnectionResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -445,7 +445,7 @@ partial void ProcessTestWebhookConnectionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -465,13 +465,13 @@ partial void ProcessTestWebhookConnectionResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -482,7 +482,7 @@ partial void ProcessTestWebhookConnectionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -525,7 +525,7 @@ partial void ProcessTestWebhookConnectionResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -570,7 +570,7 @@ partial void ProcessTestWebhookConnectionResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Update.g.cs index 85033e1d..0fb94404 100644 --- a/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.ToolDefinitionsClient.Update.g.cs @@ -394,13 +394,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -411,7 +411,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -431,13 +431,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -448,7 +448,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -468,13 +468,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -485,7 +485,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -505,13 +505,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -522,7 +522,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -565,7 +565,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -610,7 +610,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TriggersClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.TriggersClient.Create.g.cs index 89073731..63f1ba95 100644 --- a/src/libs/Speechify/Generated/Speechify.TriggersClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TriggersClient.Create.g.cs @@ -407,13 +407,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -424,7 +424,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -444,13 +444,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -461,7 +461,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -481,13 +481,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -498,7 +498,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -518,13 +518,13 @@ partial void ProcessCreateResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -535,7 +535,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -578,7 +578,7 @@ partial void ProcessCreateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -623,7 +623,7 @@ partial void ProcessCreateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TriggersClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.TriggersClient.Delete.g.cs index 45227e00..016dc5a7 100644 --- a/src/libs/Speechify/Generated/Speechify.TriggersClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TriggersClient.Delete.g.cs @@ -361,13 +361,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -456,7 +456,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -499,7 +499,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TriggersClient.Fire.g.cs b/src/libs/Speechify/Generated/Speechify.TriggersClient.Fire.g.cs index 9c428a21..9609e881 100644 --- a/src/libs/Speechify/Generated/Speechify.TriggersClient.Fire.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TriggersClient.Fire.g.cs @@ -419,13 +419,13 @@ partial void ProcessFireResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessFireResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -456,13 +456,13 @@ partial void ProcessFireResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessFireResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -493,13 +493,13 @@ partial void ProcessFireResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -510,7 +510,7 @@ partial void ProcessFireResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -530,13 +530,13 @@ partial void ProcessFireResponseContent( if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -547,7 +547,7 @@ partial void ProcessFireResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -567,13 +567,13 @@ partial void ProcessFireResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -584,7 +584,7 @@ partial void ProcessFireResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -627,7 +627,7 @@ partial void ProcessFireResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -672,7 +672,7 @@ partial void ProcessFireResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TriggersClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.TriggersClient.Get.g.cs index fa2eda3d..655ae554 100644 --- a/src/libs/Speechify/Generated/Speechify.TriggersClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TriggersClient.Get.g.cs @@ -361,13 +361,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -378,7 +378,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -398,13 +398,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -415,7 +415,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -458,7 +458,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -503,7 +503,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TriggersClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.TriggersClient.List.g.cs index 60e95895..e751ad57 100644 --- a/src/libs/Speechify/Generated/Speechify.TriggersClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TriggersClient.List.g.cs @@ -382,13 +382,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -399,7 +399,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -419,13 +419,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -436,7 +436,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -456,13 +456,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -473,7 +473,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -516,7 +516,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -561,7 +561,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.TriggersClient.Update.g.cs b/src/libs/Speechify/Generated/Speechify.TriggersClient.Update.g.cs index ed54aa1b..8065ed29 100644 --- a/src/libs/Speechify/Generated/Speechify.TriggersClient.Update.g.cs +++ b/src/libs/Speechify/Generated/Speechify.TriggersClient.Update.g.cs @@ -397,13 +397,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -414,7 +414,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -434,13 +434,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -451,7 +451,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -471,13 +471,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -488,7 +488,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -531,7 +531,7 @@ partial void ProcessUpdateResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -576,7 +576,7 @@ partial void ProcessUpdateResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.VoicesClient.Create.g.cs b/src/libs/Speechify/Generated/Speechify.VoicesClient.Create.g.cs index 27bd9fad..9b1c024b 100644 --- a/src/libs/Speechify/Generated/Speechify.VoicesClient.Create.g.cs +++ b/src/libs/Speechify/Generated/Speechify.VoicesClient.Create.g.cs @@ -522,13 +522,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -559,13 +559,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -576,7 +576,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -596,13 +596,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -613,7 +613,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -633,13 +633,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -650,7 +650,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -670,13 +670,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -687,7 +687,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -707,13 +707,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -724,7 +724,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -744,13 +744,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -761,7 +761,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -781,13 +781,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -798,7 +798,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -818,13 +818,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -835,7 +835,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -855,13 +855,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -872,7 +872,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -892,13 +892,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -909,7 +909,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -952,7 +952,7 @@ request.ConsentRecordingname is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -997,7 +997,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1620,13 +1620,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1637,7 +1637,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1657,13 +1657,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1674,7 +1674,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1694,13 +1694,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1711,7 +1711,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -1731,13 +1731,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1748,7 +1748,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -1768,13 +1768,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1785,7 +1785,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -1805,13 +1805,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1822,7 +1822,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -1842,13 +1842,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1859,7 +1859,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -1879,13 +1879,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1896,7 +1896,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -1916,13 +1916,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1933,7 +1933,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -1953,13 +1953,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1970,7 +1970,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -1990,13 +1990,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2007,7 +2007,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -2046,7 +2046,7 @@ request.ConsentRecordingname is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -2087,7 +2087,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -2613,13 +2613,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2630,7 +2630,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -2650,13 +2650,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2667,7 +2667,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -2687,13 +2687,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2704,7 +2704,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -2724,13 +2724,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2741,7 +2741,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -2761,13 +2761,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } else { __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_409 = global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); + __value_409 = __content_409 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_409, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2778,7 +2778,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_409 is { Length: > 0 } ? __content_409 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_409, responseBody: __content_409, responseObject: __value_409, @@ -2798,13 +2798,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2815,7 +2815,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -2835,13 +2835,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2852,7 +2852,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -2872,13 +2872,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2889,7 +2889,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -2909,13 +2909,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2926,7 +2926,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -2946,13 +2946,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2963,7 +2963,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -2983,13 +2983,13 @@ request.ConsentRecordingname is null if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3000,7 +3000,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -3043,7 +3043,7 @@ request.ConsentRecordingname is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -3088,7 +3088,7 @@ request.ConsentRecordingname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.VoicesClient.Delete.g.cs b/src/libs/Speechify/Generated/Speechify.VoicesClient.Delete.g.cs index 1a0dc861..2e63f3c8 100644 --- a/src/libs/Speechify/Generated/Speechify.VoicesClient.Delete.g.cs +++ b/src/libs/Speechify/Generated/Speechify.VoicesClient.Delete.g.cs @@ -356,13 +356,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -373,7 +373,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -393,13 +393,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -410,7 +410,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -430,13 +430,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -447,7 +447,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -467,13 +467,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -484,7 +484,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -504,13 +504,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -521,7 +521,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -541,13 +541,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -558,7 +558,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -578,13 +578,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -595,7 +595,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -615,13 +615,13 @@ partial void ProcessDeleteResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -632,7 +632,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -673,7 +673,7 @@ partial void ProcessDeleteResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -716,7 +716,7 @@ partial void ProcessDeleteResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.VoicesClient.DownloadSample.g.cs b/src/libs/Speechify/Generated/Speechify.VoicesClient.DownloadSample.g.cs index ff4d436e..a61a050c 100644 --- a/src/libs/Speechify/Generated/Speechify.VoicesClient.DownloadSample.g.cs +++ b/src/libs/Speechify/Generated/Speechify.VoicesClient.DownloadSample.g.cs @@ -352,13 +352,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -369,7 +369,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -389,13 +389,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -406,7 +406,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -426,13 +426,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -443,7 +443,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -463,13 +463,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -480,7 +480,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -500,13 +500,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -517,7 +517,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -537,13 +537,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -554,7 +554,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -574,13 +574,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -591,7 +591,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -611,13 +611,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -628,7 +628,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -671,7 +671,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -978,13 +978,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -995,7 +995,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1015,13 +1015,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1032,7 +1032,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1052,13 +1052,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1069,7 +1069,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -1089,13 +1089,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1106,7 +1106,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -1126,13 +1126,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1143,7 +1143,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -1163,13 +1163,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1180,7 +1180,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -1200,13 +1200,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1217,7 +1217,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -1237,13 +1237,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1254,7 +1254,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -1301,7 +1301,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1607,13 +1607,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1624,7 +1624,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1644,13 +1644,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1661,7 +1661,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1681,13 +1681,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1698,7 +1698,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -1718,13 +1718,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1735,7 +1735,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -1755,13 +1755,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1772,7 +1772,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -1792,13 +1792,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1809,7 +1809,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -1829,13 +1829,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1846,7 +1846,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -1866,13 +1866,13 @@ partial void ProcessDownloadSampleResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1883,7 +1883,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -1963,7 +1963,7 @@ partial void ProcessDownloadSampleResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.VoicesClient.Get.g.cs b/src/libs/Speechify/Generated/Speechify.VoicesClient.Get.g.cs index 295af177..b6f75ad3 100644 --- a/src/libs/Speechify/Generated/Speechify.VoicesClient.Get.g.cs +++ b/src/libs/Speechify/Generated/Speechify.VoicesClient.Get.g.cs @@ -358,13 +358,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -375,7 +375,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -395,13 +395,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -412,7 +412,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -432,13 +432,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); + __value_404 = __content_404 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -449,7 +449,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_404 is { Length: > 0 } ? __content_404 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, responseBody: __content_404, responseObject: __value_404, @@ -469,13 +469,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -486,7 +486,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -506,13 +506,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -523,7 +523,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -543,13 +543,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -560,7 +560,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -580,13 +580,13 @@ partial void ProcessGetResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -597,7 +597,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -640,7 +640,7 @@ partial void ProcessGetResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -685,7 +685,7 @@ partial void ProcessGetResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.VoicesClient.List.g.cs b/src/libs/Speechify/Generated/Speechify.VoicesClient.List.g.cs index 5e76a9ad..78e0a674 100644 --- a/src/libs/Speechify/Generated/Speechify.VoicesClient.List.g.cs +++ b/src/libs/Speechify/Generated/Speechify.VoicesClient.List.g.cs @@ -445,13 +445,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -462,7 +462,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -482,13 +482,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -499,7 +499,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -519,13 +519,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -536,7 +536,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -556,13 +556,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -573,7 +573,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -593,13 +593,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -610,7 +610,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -653,7 +653,7 @@ partial void ProcessListResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -698,7 +698,7 @@ partial void ProcessListResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.WatermarkClient.Detect.g.cs b/src/libs/Speechify/Generated/Speechify.WatermarkClient.Detect.g.cs index 6f4f0f61..162d8c9f 100644 --- a/src/libs/Speechify/Generated/Speechify.WatermarkClient.Detect.g.cs +++ b/src/libs/Speechify/Generated/Speechify.WatermarkClient.Detect.g.cs @@ -421,13 +421,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -438,7 +438,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -458,13 +458,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -475,7 +475,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -495,13 +495,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -512,7 +512,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -532,13 +532,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -549,7 +549,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -569,13 +569,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -586,7 +586,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -606,13 +606,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -623,7 +623,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -643,13 +643,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -660,7 +660,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -680,13 +680,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -697,7 +697,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -740,7 +740,7 @@ request.Audioname is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -785,7 +785,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1210,13 +1210,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1227,7 +1227,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1247,13 +1247,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1264,7 +1264,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -1284,13 +1284,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1301,7 +1301,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -1321,13 +1321,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1338,7 +1338,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -1358,13 +1358,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1375,7 +1375,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -1395,13 +1395,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1412,7 +1412,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -1432,13 +1432,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1449,7 +1449,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -1469,13 +1469,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1486,7 +1486,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -1525,7 +1525,7 @@ request.Audioname is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1566,7 +1566,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1940,13 +1940,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1957,7 +1957,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1977,13 +1977,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1994,7 +1994,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -2014,13 +2014,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2031,7 +2031,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -2051,13 +2051,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2068,7 +2068,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -2088,13 +2088,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2105,7 +2105,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -2125,13 +2125,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2142,7 +2142,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -2162,13 +2162,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2179,7 +2179,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -2199,13 +2199,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2216,7 +2216,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -2259,7 +2259,7 @@ request.Audioname is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -2304,7 +2304,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.WatermarkClient.Verify.g.cs b/src/libs/Speechify/Generated/Speechify.WatermarkClient.Verify.g.cs index 2af9449a..95c17b4f 100644 --- a/src/libs/Speechify/Generated/Speechify.WatermarkClient.Verify.g.cs +++ b/src/libs/Speechify/Generated/Speechify.WatermarkClient.Verify.g.cs @@ -445,13 +445,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -462,7 +462,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -482,13 +482,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -499,7 +499,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -519,13 +519,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -536,7 +536,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -556,13 +556,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -573,7 +573,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -593,13 +593,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -610,7 +610,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -630,13 +630,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -647,7 +647,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -690,7 +690,7 @@ request.Audioname is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -735,7 +735,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1180,13 +1180,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1197,7 +1197,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1217,13 +1217,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1234,7 +1234,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -1254,13 +1254,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1271,7 +1271,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -1291,13 +1291,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1308,7 +1308,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -1328,13 +1328,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1345,7 +1345,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -1365,13 +1365,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1382,7 +1382,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -1421,7 +1421,7 @@ request.Audioname is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1462,7 +1462,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1846,13 +1846,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1863,7 +1863,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1883,13 +1883,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); + __value_413 = __content_413 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1900,7 +1900,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_413 is { Length: > 0 } ? __content_413 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, responseBody: __content_413, responseObject: __value_413, @@ -1920,13 +1920,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1937,7 +1937,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -1957,13 +1957,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); + __value_429 = __content_429 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1974,7 +1974,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_429 is { Length: > 0 } ? __content_429 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, responseBody: __content_429, responseObject: __value_429, @@ -1994,13 +1994,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2011,7 +2011,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -2031,13 +2031,13 @@ request.Audioname is null if (__effectiveReadResponseAsString) { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } else { __content_502 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_502 = global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); + __value_502 = __content_502 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_502, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2048,7 +2048,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_502 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_502 is { Length: > 0 } ? __content_502 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_502, responseBody: __content_502, responseObject: __value_502, @@ -2091,7 +2091,7 @@ request.Audioname is null { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -2136,7 +2136,7 @@ request.Audioname is null throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Speechify/Generated/Speechify.WorkspacesClient.GetEntitlements.g.cs b/src/libs/Speechify/Generated/Speechify.WorkspacesClient.GetEntitlements.g.cs index 5badda94..34d63a83 100644 --- a/src/libs/Speechify/Generated/Speechify.WorkspacesClient.GetEntitlements.g.cs +++ b/src/libs/Speechify/Generated/Speechify.WorkspacesClient.GetEntitlements.g.cs @@ -359,13 +359,13 @@ partial void ProcessGetEntitlementsResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Speechify.Error.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -376,7 +376,7 @@ partial void ProcessGetEntitlementsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -419,7 +419,7 @@ partial void ProcessGetEntitlementsResponseContent( { throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -464,7 +464,7 @@ partial void ProcessGetEntitlementsResponseContent( throw global::Speechify.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary(