From 7fbbb553dc574b034e924e8858b197080c53b44f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 28 Sep 2026 04:53:43 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/Vapi/Generated/Vapi.AllOf.2.g.cs | 32 +- ...lyticsClient.AnalyticsControllerQuery.g.cs | 10 +- src/libs/Vapi/Generated/Vapi.AnyOf.2.g.cs | 32 +- ...tantsClient.AssistantControllerCreate.g.cs | 10 +- ...antsClient.AssistantControllerFindAll.g.cs | 10 +- ...antsClient.AssistantControllerFindOne.g.cs | 12 +- ...tantsClient.AssistantControllerRemove.g.cs | 12 +- ...tantsClient.AssistantControllerUpdate.g.cs | 12 +- ...tControllerValidateBackgroundSoundUrl.g.cs | 10 +- .../Generated/Vapi.AutoSDKHttpResponse.g.cs | 4 +- ...api.BoardClient.BoardControllerCreate.g.cs | 10 +- ...pi.BoardClient.BoardControllerFindAll.g.cs | 10 +- ...pi.BoardClient.BoardControllerFindOne.g.cs | 12 +- ....BoardControllerMetricsOverviewEnsure.g.cs | 10 +- ...api.BoardClient.BoardControllerRemove.g.cs | 12 +- ...api.BoardClient.BoardControllerUpdate.g.cs | 12 +- ...tControllerAssistantRecordingDownload.g.cs | 12 +- ...allArtifactControllerCallLogsDownload.g.cs | 12 +- ...ctControllerCustomerRecordingDownload.g.cs | 12 +- ...tifactControllerMonoRecordingDownload.g.cs | 12 +- ...nt.CallArtifactControllerPcapDownload.g.cs | 12 +- ...factControllerStereoRecordingDownload.g.cs | 12 +- ...ifactControllerVideoRecordingDownload.g.cs | 12 +- ...Vapi.CallsClient.CallControllerCreate.g.cs | 10 +- ...lsClient.CallControllerDeleteCallData.g.cs | 12 +- ...api.CallsClient.CallControllerFindAll.g.cs | 10 +- ...api.CallsClient.CallControllerFindOne.g.cs | 12 +- ...Vapi.CallsClient.CallControllerUpdate.g.cs | 12 +- ...paignsClient.CampaignControllerCreate.g.cs | 10 +- ...ignsClient.CampaignControllerCreateV2.g.cs | 10 +- ...aignsClient.CampaignControllerFindAll.g.cs | 10 +- ...gnsClient.CampaignControllerFindAllV2.g.cs | 10 +- ...aignsClient.CampaignControllerFindOne.g.cs | 12 +- ...gnsClient.CampaignControllerFindOneV2.g.cs | 12 +- ...mpaignControllerGetCampaignV2Contacts.g.cs | 12 +- ...paignsClient.CampaignControllerRemove.g.cs | 12 +- ...ignsClient.CampaignControllerRemoveV2.g.cs | 12 +- ...paignsClient.CampaignControllerUpdate.g.cs | 12 +- ...ignsClient.CampaignControllerUpdateV2.g.cs | 12 +- ....ChatsClient.ChatControllerCreateChat.g.cs | 10 +- ...Client.ChatControllerCreateOpenAIChat.g.cs | 10 +- ....ChatsClient.ChatControllerDeleteChat.g.cs | 12 +- ...api.ChatsClient.ChatControllerGetChat.g.cs | 12 +- ...i.ChatsClient.ChatControllerListChats.g.cs | 10 +- .../Vapi.EvalClient.EvalControllerCreate.g.cs | 10 +- .../Vapi.EvalClient.EvalControllerGet.g.cs | 12 +- ...EvalClient.EvalControllerGetPaginated.g.cs | 10 +- .../Vapi.EvalClient.EvalControllerGetRun.g.cs | 12 +- ...Client.EvalControllerGetRunsPaginated.g.cs | 10 +- .../Vapi.EvalClient.EvalControllerRemove.g.cs | 12 +- ...pi.EvalClient.EvalControllerRemoveRun.g.cs | 12 +- .../Vapi.EvalClient.EvalControllerRun.g.cs | 10 +- .../Vapi.EvalClient.EvalControllerUpdate.g.cs | 12 +- ...Vapi.FilesClient.FileControllerCreate.g.cs | 30 +- ...api.FilesClient.FileControllerFindAll.g.cs | 10 +- ...api.FilesClient.FileControllerFindOne.g.cs | 12 +- ...Vapi.FilesClient.FileControllerRemove.g.cs | 12 +- ...Vapi.FilesClient.FileControllerUpdate.g.cs | 12 +- ...InsightClient.InsightControllerCreate.g.cs | 10 +- ...nsightClient.InsightControllerFindAll.g.cs | 10 +- ...nsightClient.InsightControllerFindOne.g.cs | 12 +- ...nsightClient.InsightControllerPreview.g.cs | 10 +- ...InsightClient.InsightControllerRemove.g.cs | 12 +- ...pi.InsightClient.InsightControllerRun.g.cs | 12 +- ...InsightClient.InsightControllerUpdate.g.cs | 12 +- .../Generated/Vapi.JsonConverters.AllOf2.g.cs | 4 +- .../Generated/Vapi.JsonConverters.AnyOf2.g.cs | 4 +- ...pi.JsonConverters.AuthenticationPlan2.g.cs | 6 +- ...pi.JsonConverters.AuthenticationPlan4.g.cs | 6 +- ...pi.JsonConverters.AuthenticationPlan5.g.cs | 6 +- ...pi.JsonConverters.AuthenticationPlan6.g.cs | 6 +- ...pi.JsonConverters.AuthenticationPlan8.g.cs | 6 +- ...pi.JsonConverters.AuthenticationPlan9.g.cs | 6 +- .../Vapi.JsonConverters.CredentialsItem.g.cs | 114 +-- ...Vapi.JsonConverters.CredentialsItem10.g.cs | 114 +-- ...Vapi.JsonConverters.CredentialsItem11.g.cs | 114 +-- ...Vapi.JsonConverters.CredentialsItem12.g.cs | 114 +-- .../Vapi.JsonConverters.CredentialsItem2.g.cs | 114 +-- .../Vapi.JsonConverters.CredentialsItem3.g.cs | 114 +-- .../Vapi.JsonConverters.CredentialsItem4.g.cs | 114 +-- .../Vapi.JsonConverters.CredentialsItem5.g.cs | 114 +-- .../Vapi.JsonConverters.CredentialsItem6.g.cs | 114 +-- .../Vapi.JsonConverters.CredentialsItem7.g.cs | 114 +-- .../Vapi.JsonConverters.CredentialsItem8.g.cs | 114 +-- .../Vapi.JsonConverters.CredentialsItem9.g.cs | 114 +-- ...erters.InsightControllerCreateRequest.g.cs | 8 +- ...rters.InsightControllerCreateResponse.g.cs | 8 +- ...ters.InsightControllerFindOneResponse.g.cs | 8 +- ...rters.InsightControllerPreviewRequest.g.cs | 8 +- ...rters.InsightControllerRemoveResponse.g.cs | 8 +- ...erters.InsightControllerUpdateRequest.g.cs | 8 +- ...rters.InsightControllerUpdateResponse.g.cs | 8 +- .../Vapi.JsonConverters.OneOf13.g.cs | 26 +- .../Vapi.JsonConverters.OneOf14.g.cs | 28 +- .../Vapi.JsonConverters.OneOf17.g.cs | 34 +- .../Vapi.JsonConverters.OneOf19.g.cs | 38 +- .../Generated/Vapi.JsonConverters.OneOf2.g.cs | 4 +- .../Vapi.JsonConverters.OneOf20.g.cs | 40 +- .../Vapi.JsonConverters.OneOf22.g.cs | 44 +- .../Vapi.JsonConverters.OneOf23.g.cs | 46 +- .../Vapi.JsonConverters.OneOf29.g.cs | 58 +- .../Generated/Vapi.JsonConverters.OneOf3.g.cs | 6 +- .../Generated/Vapi.JsonConverters.OneOf4.g.cs | 8 +- .../Generated/Vapi.JsonConverters.OneOf5.g.cs | 10 +- .../Generated/Vapi.JsonConverters.OneOf6.g.cs | 12 +- .../Generated/Vapi.JsonConverters.OneOf7.g.cs | 14 +- .../Generated/Vapi.JsonConverters.OneOf8.g.cs | 16 +- .../Generated/Vapi.JsonConverters.OneOf9.g.cs | 18 +- ...rs.PhoneNumberControllerCreateRequest.g.cs | 10 +- ...s.PhoneNumberControllerCreateResponse.g.cs | 10 +- ...neNumberControllerFindAllResponseItem.g.cs | 10 +- ....PhoneNumberControllerFindOneResponse.g.cs | 10 +- ...s.PhoneNumberControllerRemoveResponse.g.cs | 10 +- ...rs.PhoneNumberControllerUpdateRequest.g.cs | 10 +- ...s.PhoneNumberControllerUpdateResponse.g.cs | 10 +- ...i.JsonConverters.RecordingConsentPlan.g.cs | 4 +- .../Generated/Vapi.JsonConverters.Timing.g.cs | 4 +- .../Vapi.JsonConverters.Timing2.g.cs | 4 +- ...onverters.ToolControllerCreateRequest.g.cs | 46 +- ...nverters.ToolControllerCreateResponse.g.cs | 50 +- ...ers.ToolControllerFindAllResponseItem.g.cs | 50 +- ...verters.ToolControllerFindOneResponse.g.cs | 50 +- ...nverters.ToolControllerRemoveResponse.g.cs | 50 +- ...verters.ToolControllerRemoveResponse2.g.cs | 4 +- ...onverters.ToolControllerUpdateRequest.g.cs | 48 +- ...nverters.ToolControllerUpdateResponse.g.cs | 50 +- ...lient.KnowledgeBaseV2ControllerCreate.g.cs | 10 +- ...t.KnowledgeBaseV2ControllerFileAttach.g.cs | 12 +- ...t.KnowledgeBaseV2ControllerFileDetach.g.cs | 14 +- ...nt.KnowledgeBaseV2ControllerFileRetry.g.cs | 14 +- ...ent.KnowledgeBaseV2ControllerFilesGet.g.cs | 12 +- ...ient.KnowledgeBaseV2ControllerFindAll.g.cs | 10 +- ...ient.KnowledgeBaseV2ControllerFindOne.g.cs | 12 +- ...lient.KnowledgeBaseV2ControllerRemove.g.cs | 12 +- ...lient.KnowledgeBaseV2ControllerUpdate.g.cs | 12 +- .../Vapi.Models.AuthenticationPlan2.g.cs | 48 +- .../Vapi.Models.AuthenticationPlan4.g.cs | 48 +- .../Vapi.Models.AuthenticationPlan5.g.cs | 48 +- .../Vapi.Models.AuthenticationPlan6.g.cs | 48 +- .../Vapi.Models.AuthenticationPlan8.g.cs | 48 +- .../Vapi.Models.AuthenticationPlan9.g.cs | 48 +- .../Vapi.Models.CredentialsItem.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem10.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem11.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem12.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem2.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem3.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem4.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem5.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem6.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem7.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem8.g.cs | 912 +++++++++--------- .../Vapi.Models.CredentialsItem9.g.cs | 912 +++++++++--------- ...Models.InsightControllerCreateRequest.g.cs | 64 +- ...odels.InsightControllerCreateResponse.g.cs | 64 +- ...dels.InsightControllerFindOneResponse.g.cs | 64 +- ...odels.InsightControllerPreviewRequest.g.cs | 64 +- ...odels.InsightControllerRemoveResponse.g.cs | 64 +- ...Models.InsightControllerUpdateRequest.g.cs | 64 +- ...odels.InsightControllerUpdateResponse.g.cs | 64 +- ...ls.PhoneNumberControllerCreateRequest.g.cs | 80 +- ...s.PhoneNumberControllerCreateResponse.g.cs | 80 +- ...neNumberControllerFindAllResponseItem.g.cs | 80 +- ....PhoneNumberControllerFindOneResponse.g.cs | 80 +- ...s.PhoneNumberControllerRemoveResponse.g.cs | 80 +- ...ls.PhoneNumberControllerUpdateRequest.g.cs | 80 +- ...s.PhoneNumberControllerUpdateResponse.g.cs | 80 +- .../Vapi.Models.RecordingConsentPlan.g.cs | 32 +- .../Vapi/Generated/Vapi.Models.Timing.g.cs | 32 +- .../Vapi/Generated/Vapi.Models.Timing2.g.cs | 32 +- ...pi.Models.ToolControllerCreateRequest.g.cs | 368 +++---- ...i.Models.ToolControllerCreateResponse.g.cs | 400 ++++---- ...els.ToolControllerFindAllResponseItem.g.cs | 400 ++++---- ....Models.ToolControllerFindOneResponse.g.cs | 400 ++++---- ...i.Models.ToolControllerRemoveResponse.g.cs | 400 ++++---- ....Models.ToolControllerRemoveResponse2.g.cs | 32 +- ...pi.Models.ToolControllerUpdateRequest.g.cs | 384 ++++---- ...i.Models.ToolControllerUpdateResponse.g.cs | 400 ++++---- ...ecardClient.ScorecardControllerCreate.g.cs | 10 +- ...corecardClient.ScorecardControllerGet.g.cs | 12 +- ...lient.ScorecardControllerGetPaginated.g.cs | 10 +- ...ecardClient.ScorecardControllerRemove.g.cs | 12 +- ...ecardClient.ScorecardControllerUpdate.g.cs | 12 +- src/libs/Vapi/Generated/Vapi.OneOf.13.g.cs | 208 ++-- src/libs/Vapi/Generated/Vapi.OneOf.14.g.cs | 224 ++--- src/libs/Vapi/Generated/Vapi.OneOf.17.g.cs | 272 +++--- src/libs/Vapi/Generated/Vapi.OneOf.19.g.cs | 304 +++--- src/libs/Vapi/Generated/Vapi.OneOf.2.g.cs | 32 +- src/libs/Vapi/Generated/Vapi.OneOf.20.g.cs | 320 +++--- src/libs/Vapi/Generated/Vapi.OneOf.22.g.cs | 352 +++---- src/libs/Vapi/Generated/Vapi.OneOf.23.g.cs | 368 +++---- src/libs/Vapi/Generated/Vapi.OneOf.29.g.cs | 464 ++++----- src/libs/Vapi/Generated/Vapi.OneOf.3.g.cs | 48 +- src/libs/Vapi/Generated/Vapi.OneOf.4.g.cs | 64 +- src/libs/Vapi/Generated/Vapi.OneOf.5.g.cs | 80 +- src/libs/Vapi/Generated/Vapi.OneOf.6.g.cs | 96 +- src/libs/Vapi/Generated/Vapi.OneOf.7.g.cs | 112 +-- src/libs/Vapi/Generated/Vapi.OneOf.8.g.cs | 128 +-- src/libs/Vapi/Generated/Vapi.OneOf.9.g.cs | 144 +-- ...ersClient.PhoneNumberControllerCreate.g.cs | 10 +- ...rsClient.PhoneNumberControllerFindAll.g.cs | 10 +- ...PhoneNumberControllerFindAllPaginated.g.cs | 10 +- ...rsClient.PhoneNumberControllerFindOne.g.cs | 12 +- ...ersClient.PhoneNumberControllerRemove.g.cs | 12 +- ...ersClient.PhoneNumberControllerUpdate.g.cs | 12 +- ...ourceControllerCreateProviderResource.g.cs | 16 +- ...ourceControllerDeleteProviderResource.g.cs | 16 +- ...ResourceControllerGetProviderResource.g.cs | 16 +- ...ntrollerGetProviderResourcesPaginated.g.cs | 14 +- ...ourceControllerUpdateProviderResource.g.cs | 16 +- ...essionsClient.SessionControllerCreate.g.cs | 10 +- ...ent.SessionControllerFindAllPaginated.g.cs | 10 +- ...ssionsClient.SessionControllerFindOne.g.cs | 12 +- ...essionsClient.SessionControllerRemove.g.cs | 12 +- ...essionsClient.SessionControllerUpdate.g.cs | 12 +- ...iesClient.PersonalityControllerCreate.g.cs | 10 +- ...esClient.PersonalityControllerFindAll.g.cs | 10 +- ...esClient.PersonalityControllerFindOne.g.cs | 12 +- ...iesClient.PersonalityControllerRemove.g.cs | 12 +- ...iesClient.PersonalityControllerUpdate.g.cs | 12 +- ...ent.SimulationRunControllerCancelItem.g.cs | 14 +- ...lient.SimulationRunControllerFindItem.g.cs | 14 +- ...ient.SimulationRunControllerFindItems.g.cs | 12 +- ...ationRunControllerGenerateSuggestions.g.cs | 16 +- ...nt.SimulationRunControllerCancelGroup.g.cs | 12 +- ...sClient.SimulationRunControllerCreate.g.cs | 10 +- ...Client.SimulationRunControllerFindAll.g.cs | 10 +- ...Client.SimulationRunControllerFindOne.g.cs | 12 +- ...nariosClient.ScenarioControllerCreate.g.cs | 10 +- ...ariosClient.ScenarioControllerFindAll.g.cs | 10 +- ...ariosClient.ScenarioControllerFindOne.g.cs | 12 +- ...nariosClient.ScenarioControllerRemove.g.cs | 12 +- ...nariosClient.ScenarioControllerUpdate.g.cs | 12 +- ...lient.SimulationSuiteControllerCreate.g.cs | 10 +- ...nt.SimulationSuiteControllerDuplicate.g.cs | 12 +- ...ient.SimulationSuiteControllerFindAll.g.cs | 10 +- ...ient.SimulationSuiteControllerFindOne.g.cs | 12 +- ...lient.SimulationSuiteControllerRemove.g.cs | 12 +- ...lient.SimulationSuiteControllerUpdate.g.cs | 12 +- ...ionsClient.SimulationControllerCreate.g.cs | 10 +- ...onsClient.SimulationControllerFindAll.g.cs | 10 +- ...onsClient.SimulationControllerFindOne.g.cs | 12 +- ...nt.SimulationControllerGetConcurrency.g.cs | 10 +- ...ionsClient.SimulationControllerRemove.g.cs | 12 +- ...ionsClient.SimulationControllerUpdate.g.cs | 12 +- ....SimulationGenerateControllerGenerate.g.cs | 10 +- ...pi.SquadsClient.SquadControllerCreate.g.cs | 10 +- ...i.SquadsClient.SquadControllerFindAll.g.cs | 10 +- ...i.SquadsClient.SquadControllerFindOne.g.cs | 12 +- ...pi.SquadsClient.SquadControllerRemove.g.cs | 12 +- ...pi.SquadsClient.SquadControllerUpdate.g.cs | 12 +- ...ient.StructuredOutputControllerCreate.g.cs | 10 +- ...ent.StructuredOutputControllerFindAll.g.cs | 10 +- ...ent.StructuredOutputControllerFindOne.g.cs | 12 +- ...ient.StructuredOutputControllerRemove.g.cs | 12 +- ...sClient.StructuredOutputControllerRun.g.cs | 10 +- ...ient.StructuredOutputControllerUpdate.g.cs | 14 +- ...Vapi.ToolsClient.ToolControllerCreate.g.cs | 10 +- ...api.ToolsClient.ToolControllerFindAll.g.cs | 10 +- ...api.ToolsClient.ToolControllerFindOne.g.cs | 12 +- ...Vapi.ToolsClient.ToolControllerRemove.g.cs | 12 +- ...Vapi.ToolsClient.ToolControllerUpdate.g.cs | 12 +- 262 files changed, 11159 insertions(+), 11159 deletions(-) diff --git a/src/libs/Vapi/Generated/Vapi.AllOf.2.g.cs b/src/libs/Vapi/Generated/Vapi.AllOf.2.g.cs index 99171e0c..a60c5d12 100644 --- a/src/libs/Vapi/Generated/Vapi.AllOf.2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AllOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -190,13 +190,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -216,13 +216,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -239,13 +239,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs b/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs index 567e2292..2c9a2b69 100644 --- a/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs @@ -178,7 +178,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent( pathTemplate: "\"/analytics\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent( pathTemplate: "\"/analytics\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent( pathTemplate: "\"/analytics\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent( pathTemplate: "\"/analytics\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent( pathTemplate: "\"/analytics\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.AnyOf.2.g.cs b/src/libs/Vapi/Generated/Vapi.AnyOf.2.g.cs index 8276ab40..9390dbd1 100644 --- a/src/libs/Vapi/Generated/Vapi.AnyOf.2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AnyOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs index b301bfef..5fab7b66 100644 --- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessAssistantControllerCreateResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessAssistantControllerCreateResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessAssistantControllerCreateResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessAssistantControllerCreateResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessAssistantControllerCreateResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs index 6665f229..aa548b35 100644 --- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs @@ -250,7 +250,7 @@ partial void ProcessAssistantControllerFindAllResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -284,7 +284,7 @@ partial void ProcessAssistantControllerFindAllResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessAssistantControllerFindAllResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -373,7 +373,7 @@ partial void ProcessAssistantControllerFindAllResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -395,7 +395,7 @@ partial void ProcessAssistantControllerFindAllResponseContent( pathTemplate: "\"/assistant\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs index 320c856f..cee0aecd 100644 --- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessAssistantControllerFindOneResponseContent( PrepareAssistantControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessAssistantControllerFindOneResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessAssistantControllerFindOneResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessAssistantControllerFindOneResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessAssistantControllerFindOneResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessAssistantControllerFindOneResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs index c4f5304f..1cddacbc 100644 --- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessAssistantControllerRemoveResponseContent( PrepareAssistantControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessAssistantControllerRemoveResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessAssistantControllerRemoveResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessAssistantControllerRemoveResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessAssistantControllerRemoveResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessAssistantControllerRemoveResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs index caab1298..b7fc64af 100644 --- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessAssistantControllerUpdateResponseContent( PrepareAssistantControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessAssistantControllerUpdateResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessAssistantControllerUpdateResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessAssistantControllerUpdateResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessAssistantControllerUpdateResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessAssistantControllerUpdateResponseContent( pathTemplate: "$\"/assistant/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerValidateBackgroundSoundUrl.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerValidateBackgroundSoundUrl.g.cs index 26ab4fd3..5d02b0a0 100644 --- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerValidateBackgroundSoundUrl.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerValidateBackgroundSoundUrl.g.cs @@ -178,7 +178,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent pathTemplate: "\"/assistant/background-sound/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent pathTemplate: "\"/assistant/background-sound/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent pathTemplate: "\"/assistant/background-sound/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent pathTemplate: "\"/assistant/background-sound/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent pathTemplate: "\"/assistant/background-sound/validate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.AutoSDKHttpResponse.g.cs b/src/libs/Vapi/Generated/Vapi.AutoSDKHttpResponse.g.cs index 421bd243..186d4690 100644 --- a/src/libs/Vapi/Generated/Vapi.AutoSDKHttpResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.AutoSDKHttpResponse.g.cs @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests { send = send ?? throw new global::System.ArgumentNullException(nameof(send)); requestOptions = CloneRequestOptions(requestOptions); - if (!string.IsNullOrWhiteSpace(entityTag)) + if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag)) { - requestOptions.Headers["If-None-Match"] = entityTag!; + requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag; } try diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerCreate.g.cs index 6e7fc7ed..9e27666d 100644 --- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessBoardControllerCreateResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessBoardControllerCreateResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessBoardControllerCreateResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessBoardControllerCreateResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessBoardControllerCreateResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindAll.g.cs index 27470db0..fa3de449 100644 --- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindAll.g.cs @@ -280,7 +280,7 @@ partial void ProcessBoardControllerFindAllResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessBoardControllerFindAllResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -355,7 +355,7 @@ partial void ProcessBoardControllerFindAllResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -403,7 +403,7 @@ partial void ProcessBoardControllerFindAllResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -425,7 +425,7 @@ partial void ProcessBoardControllerFindAllResponseContent( pathTemplate: "\"/reporting/board\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindOne.g.cs index 8d6ef3d4..a99be746 100644 --- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessBoardControllerFindOneResponseContent( PrepareBoardControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessBoardControllerFindOneResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessBoardControllerFindOneResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessBoardControllerFindOneResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessBoardControllerFindOneResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessBoardControllerFindOneResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerMetricsOverviewEnsure.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerMetricsOverviewEnsure.g.cs index 70aa3cd5..1780d28f 100644 --- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerMetricsOverviewEnsure.g.cs +++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerMetricsOverviewEnsure.g.cs @@ -158,7 +158,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent( pathTemplate: "\"/reporting/board/default/metrics-overview\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -192,7 +192,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent( pathTemplate: "\"/reporting/board/default/metrics-overview\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent( pathTemplate: "\"/reporting/board/default/metrics-overview\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -281,7 +281,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent( pathTemplate: "\"/reporting/board/default/metrics-overview\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent( pathTemplate: "\"/reporting/board/default/metrics-overview\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerRemove.g.cs index 727a4e00..6c3cb7a0 100644 --- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessBoardControllerRemoveResponseContent( PrepareBoardControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessBoardControllerRemoveResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessBoardControllerRemoveResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessBoardControllerRemoveResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessBoardControllerRemoveResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessBoardControllerRemoveResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerUpdate.g.cs index 40fc8aeb..c008e342 100644 --- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessBoardControllerUpdateResponseContent( PrepareBoardControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessBoardControllerUpdateResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessBoardControllerUpdateResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessBoardControllerUpdateResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessBoardControllerUpdateResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessBoardControllerUpdateResponseContent( pathTemplate: "$\"/reporting/board/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs index c281086a..972bea4f 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs @@ -138,7 +138,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync( PrepareCallArtifactControllerAssistantRecordingDownloadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -160,7 +160,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/assistant-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/assistant-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/assistant-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/assistant-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/assistant-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs index 5d45e784..2593bc52 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs @@ -138,7 +138,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync( PrepareCallArtifactControllerCallLogsDownloadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -160,7 +160,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/call-logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/call-logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/call-logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/call-logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/call-logs\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs index 908dfc2a..5e4e81b1 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs @@ -138,7 +138,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync( PrepareCallArtifactControllerCustomerRecordingDownloadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -160,7 +160,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/customer-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/customer-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/customer-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/customer-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/customer-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs index 3a3d8f93..1ebec217 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs @@ -138,7 +138,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync( PrepareCallArtifactControllerMonoRecordingDownloadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -160,7 +160,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/mono-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/mono-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/mono-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/mono-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/mono-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs index 7c0ccd40..2ec1e223 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs @@ -138,7 +138,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync( PrepareCallArtifactControllerPcapDownloadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -160,7 +160,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/pcap\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/pcap\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/pcap\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/pcap\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/pcap\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs index 5f4557c5..c8c26b9c 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs @@ -138,7 +138,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync( PrepareCallArtifactControllerStereoRecordingDownloadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -160,7 +160,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/stereo-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/stereo-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/stereo-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/stereo-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/stereo-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs index 85787e24..d18fb5f4 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs @@ -138,7 +138,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync( PrepareCallArtifactControllerVideoRecordingDownloadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -160,7 +160,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/video-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -194,7 +194,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/video-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -235,7 +235,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/video-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -283,7 +283,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/video-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -305,7 +305,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync( pathTemplate: "$\"/call/{id}/video-recording\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs index 792e5198..0aa015ed 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessCallControllerCreateResponseContent( pathTemplate: "\"/call\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessCallControllerCreateResponseContent( pathTemplate: "\"/call\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessCallControllerCreateResponseContent( pathTemplate: "\"/call\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessCallControllerCreateResponseContent( pathTemplate: "\"/call\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessCallControllerCreateResponseContent( pathTemplate: "\"/call\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs index d470d895..3cb9f57e 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs @@ -164,7 +164,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent( PrepareCallControllerDeleteCallDataRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs index 20f7e79c..6906de74 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs @@ -280,7 +280,7 @@ partial void ProcessCallControllerFindAllResponseContent( pathTemplate: "\"/call\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessCallControllerFindAllResponseContent( pathTemplate: "\"/call\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -355,7 +355,7 @@ partial void ProcessCallControllerFindAllResponseContent( pathTemplate: "\"/call\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -403,7 +403,7 @@ partial void ProcessCallControllerFindAllResponseContent( pathTemplate: "\"/call\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -425,7 +425,7 @@ partial void ProcessCallControllerFindAllResponseContent( pathTemplate: "\"/call\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs index 5e0271fa..95333afe 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessCallControllerFindOneResponseContent( PrepareCallControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessCallControllerFindOneResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessCallControllerFindOneResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessCallControllerFindOneResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessCallControllerFindOneResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessCallControllerFindOneResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs index 6a9d9440..d32cf6ee 100644 --- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessCallControllerUpdateResponseContent( PrepareCallControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessCallControllerUpdateResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessCallControllerUpdateResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessCallControllerUpdateResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessCallControllerUpdateResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessCallControllerUpdateResponseContent( pathTemplate: "$\"/call/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs index 2b087d65..62ffa3e3 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessCampaignControllerCreateResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessCampaignControllerCreateResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessCampaignControllerCreateResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessCampaignControllerCreateResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessCampaignControllerCreateResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreateV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreateV2.g.cs index 77ad440b..b580f5a2 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreateV2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreateV2.g.cs @@ -178,7 +178,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs index 670e2671..e39d0ef0 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs @@ -300,7 +300,7 @@ partial void ProcessCampaignControllerFindAllResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessCampaignControllerFindAllResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -375,7 +375,7 @@ partial void ProcessCampaignControllerFindAllResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -423,7 +423,7 @@ partial void ProcessCampaignControllerFindAllResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -445,7 +445,7 @@ partial void ProcessCampaignControllerFindAllResponseContent( pathTemplate: "\"/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAllV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAllV2.g.cs index 7eb58fa2..6417ea95 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAllV2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAllV2.g.cs @@ -310,7 +310,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -344,7 +344,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -385,7 +385,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -433,7 +433,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -455,7 +455,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent( pathTemplate: "\"/v2/campaign\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs index a9e3f692..73a68894 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessCampaignControllerFindOneResponseContent( PrepareCampaignControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessCampaignControllerFindOneResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessCampaignControllerFindOneResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessCampaignControllerFindOneResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessCampaignControllerFindOneResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessCampaignControllerFindOneResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOneV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOneV2.g.cs index 6922bacb..2fcb7efd 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOneV2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOneV2.g.cs @@ -156,7 +156,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent( PrepareCampaignControllerFindOneV2Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, includeCounters: includeCounters); return __httpRequest; @@ -179,7 +179,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -213,7 +213,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -254,7 +254,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -302,7 +302,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerGetCampaignV2Contacts.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerGetCampaignV2Contacts.g.cs index 5d248b06..7d513828 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerGetCampaignV2Contacts.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerGetCampaignV2Contacts.g.cs @@ -183,7 +183,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent( PrepareCampaignControllerGetCampaignV2ContactsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, status: status, limit: limit, sortBy: sortBy, @@ -209,7 +209,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent( pathTemplate: "$\"/v2/campaign/{id}/contacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -243,7 +243,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent( pathTemplate: "$\"/v2/campaign/{id}/contacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -284,7 +284,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent( pathTemplate: "$\"/v2/campaign/{id}/contacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent( pathTemplate: "$\"/v2/campaign/{id}/contacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -354,7 +354,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent( pathTemplate: "$\"/v2/campaign/{id}/contacts\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs index 7fbb61a4..5dfc99de 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessCampaignControllerRemoveResponseContent( PrepareCampaignControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessCampaignControllerRemoveResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessCampaignControllerRemoveResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessCampaignControllerRemoveResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessCampaignControllerRemoveResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessCampaignControllerRemoveResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemoveV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemoveV2.g.cs index 143111f8..0406616b 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemoveV2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemoveV2.g.cs @@ -145,7 +145,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent( PrepareCampaignControllerRemoveV2Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs index 873c3373..c6d992ee 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessCampaignControllerUpdateResponseContent( PrepareCampaignControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessCampaignControllerUpdateResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessCampaignControllerUpdateResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessCampaignControllerUpdateResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessCampaignControllerUpdateResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessCampaignControllerUpdateResponseContent( pathTemplate: "$\"/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdateV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdateV2.g.cs index e107aea4..d496b245 100644 --- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdateV2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdateV2.g.cs @@ -164,7 +164,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent( PrepareCampaignControllerUpdateV2Request( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent( pathTemplate: "$\"/v2/campaign/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs index c2f4effc..b48fc707 100644 --- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs @@ -180,7 +180,7 @@ partial void ProcessChatControllerCreateChatResponseContent( pathTemplate: "\"/chat\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessChatControllerCreateChatResponseContent( pathTemplate: "\"/chat\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessChatControllerCreateChatResponseContent( pathTemplate: "\"/chat\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessChatControllerCreateChatResponseContent( pathTemplate: "\"/chat\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessChatControllerCreateChatResponseContent( pathTemplate: "\"/chat\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs index c2e2a7df..558f8f6e 100644 --- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs @@ -178,7 +178,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent( pathTemplate: "\"/chat/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent( pathTemplate: "\"/chat/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent( pathTemplate: "\"/chat/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent( pathTemplate: "\"/chat/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent( pathTemplate: "\"/chat/responses\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs index f530bac3..2b190df1 100644 --- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs @@ -145,7 +145,7 @@ partial void ProcessChatControllerDeleteChatResponseContent( PrepareChatControllerDeleteChatRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessChatControllerDeleteChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessChatControllerDeleteChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessChatControllerDeleteChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessChatControllerDeleteChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessChatControllerDeleteChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs index 2615e728..0ac533de 100644 --- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs @@ -145,7 +145,7 @@ partial void ProcessChatControllerGetChatResponseContent( PrepareChatControllerGetChatRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessChatControllerGetChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessChatControllerGetChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessChatControllerGetChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessChatControllerGetChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessChatControllerGetChatResponseContent( pathTemplate: "$\"/chat/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs index eee2b920..c60aa38c 100644 --- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs @@ -354,7 +354,7 @@ partial void ProcessChatControllerListChatsResponseContent( pathTemplate: "\"/chat\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -388,7 +388,7 @@ partial void ProcessChatControllerListChatsResponseContent( pathTemplate: "\"/chat\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -429,7 +429,7 @@ partial void ProcessChatControllerListChatsResponseContent( pathTemplate: "\"/chat\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -477,7 +477,7 @@ partial void ProcessChatControllerListChatsResponseContent( pathTemplate: "\"/chat\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -499,7 +499,7 @@ partial void ProcessChatControllerListChatsResponseContent( pathTemplate: "\"/chat\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs index 37bb4086..d41ec386 100644 --- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessEvalControllerCreateResponseContent( pathTemplate: "\"/eval\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessEvalControllerCreateResponseContent( pathTemplate: "\"/eval\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessEvalControllerCreateResponseContent( pathTemplate: "\"/eval\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessEvalControllerCreateResponseContent( pathTemplate: "\"/eval\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessEvalControllerCreateResponseContent( pathTemplate: "\"/eval\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs index a721e298..e24e0f30 100644 --- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs +++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs @@ -145,7 +145,7 @@ partial void ProcessEvalControllerGetResponseContent( PrepareEvalControllerGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessEvalControllerGetResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessEvalControllerGetResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessEvalControllerGetResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessEvalControllerGetResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessEvalControllerGetResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs index 2db54351..c17f0468 100644 --- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs +++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs @@ -290,7 +290,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent( pathTemplate: "\"/eval\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent( pathTemplate: "\"/eval\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -365,7 +365,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent( pathTemplate: "\"/eval\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent( pathTemplate: "\"/eval\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -435,7 +435,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent( pathTemplate: "\"/eval\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs index 9c3b8ef1..7361ee28 100644 --- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs +++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs @@ -145,7 +145,7 @@ partial void ProcessEvalControllerGetRunResponseContent( PrepareEvalControllerGetRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessEvalControllerGetRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessEvalControllerGetRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessEvalControllerGetRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessEvalControllerGetRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessEvalControllerGetRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs index 3c06ca4a..1f4fb4ac 100644 --- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs +++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs @@ -300,7 +300,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -375,7 +375,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -423,7 +423,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -445,7 +445,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs index d7891717..f4197cc6 100644 --- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessEvalControllerRemoveResponseContent( PrepareEvalControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessEvalControllerRemoveResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessEvalControllerRemoveResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessEvalControllerRemoveResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessEvalControllerRemoveResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessEvalControllerRemoveResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs index 674ffdcf..60a2c42a 100644 --- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs +++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs @@ -145,7 +145,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent( PrepareEvalControllerRemoveRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent( pathTemplate: "$\"/eval/run/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs index 1a0a002f..eddb534f 100644 --- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs +++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs @@ -178,7 +178,7 @@ partial void ProcessEvalControllerRunResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessEvalControllerRunResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessEvalControllerRunResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessEvalControllerRunResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessEvalControllerRunResponseContent( pathTemplate: "\"/eval/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs index 0b56f261..b05c3265 100644 --- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessEvalControllerUpdateResponseContent( PrepareEvalControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessEvalControllerUpdateResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessEvalControllerUpdateResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessEvalControllerUpdateResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessEvalControllerUpdateResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessEvalControllerUpdateResponseContent( pathTemplate: "$\"/eval/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs index 2819170f..cf068d57 100644 --- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs @@ -231,7 +231,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -265,7 +265,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -306,7 +306,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -354,7 +354,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -376,7 +376,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -744,7 +744,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -778,7 +778,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -819,7 +819,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -867,7 +867,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -889,7 +889,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1209,7 +1209,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -1243,7 +1243,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -1284,7 +1284,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1332,7 +1332,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -1354,7 +1354,7 @@ request.Filename is null pathTemplate: "\"/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs index a874ceb6..c13982cb 100644 --- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs @@ -170,7 +170,7 @@ partial void ProcessFileControllerFindAllResponseContent( pathTemplate: "\"/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -204,7 +204,7 @@ partial void ProcessFileControllerFindAllResponseContent( pathTemplate: "\"/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -245,7 +245,7 @@ partial void ProcessFileControllerFindAllResponseContent( pathTemplate: "\"/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -293,7 +293,7 @@ partial void ProcessFileControllerFindAllResponseContent( pathTemplate: "\"/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -315,7 +315,7 @@ partial void ProcessFileControllerFindAllResponseContent( pathTemplate: "\"/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs index b5be8695..daba0155 100644 --- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessFileControllerFindOneResponseContent( PrepareFileControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessFileControllerFindOneResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessFileControllerFindOneResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessFileControllerFindOneResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessFileControllerFindOneResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessFileControllerFindOneResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs index 2351c21c..82e23475 100644 --- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessFileControllerRemoveResponseContent( PrepareFileControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessFileControllerRemoveResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessFileControllerRemoveResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessFileControllerRemoveResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessFileControllerRemoveResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessFileControllerRemoveResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs index 1f19e409..f6850fc5 100644 --- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessFileControllerUpdateResponseContent( PrepareFileControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessFileControllerUpdateResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessFileControllerUpdateResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessFileControllerUpdateResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessFileControllerUpdateResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessFileControllerUpdateResponseContent( pathTemplate: "$\"/file/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs index 731d91c8..842ca018 100644 --- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs @@ -176,7 +176,7 @@ partial void ProcessInsightControllerCreateResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessInsightControllerCreateResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessInsightControllerCreateResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessInsightControllerCreateResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessInsightControllerCreateResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs index 50eef93e..56bb227d 100644 --- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs @@ -290,7 +290,7 @@ partial void ProcessInsightControllerFindAllResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ partial void ProcessInsightControllerFindAllResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -365,7 +365,7 @@ partial void ProcessInsightControllerFindAllResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessInsightControllerFindAllResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -435,7 +435,7 @@ partial void ProcessInsightControllerFindAllResponseContent( pathTemplate: "\"/reporting/insight\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs index 53bbbc45..aa7d78c7 100644 --- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessInsightControllerFindOneResponseContent( PrepareInsightControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessInsightControllerFindOneResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessInsightControllerFindOneResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessInsightControllerFindOneResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessInsightControllerFindOneResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessInsightControllerFindOneResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs index 36277560..8ca46fa0 100644 --- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs +++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs @@ -176,7 +176,7 @@ partial void ProcessInsightControllerPreviewResponseContent( pathTemplate: "\"/reporting/insight/preview\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessInsightControllerPreviewResponseContent( pathTemplate: "\"/reporting/insight/preview\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessInsightControllerPreviewResponseContent( pathTemplate: "\"/reporting/insight/preview\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessInsightControllerPreviewResponseContent( pathTemplate: "\"/reporting/insight/preview\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessInsightControllerPreviewResponseContent( pathTemplate: "\"/reporting/insight/preview\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs index 4af0a636..e8e9a0ab 100644 --- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessInsightControllerRemoveResponseContent( PrepareInsightControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessInsightControllerRemoveResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessInsightControllerRemoveResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessInsightControllerRemoveResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessInsightControllerRemoveResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessInsightControllerRemoveResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs index bc09e4d9..dbf17691 100644 --- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs +++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs @@ -164,7 +164,7 @@ partial void ProcessInsightControllerRunResponseContent( PrepareInsightControllerRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessInsightControllerRunResponseContent( pathTemplate: "$\"/reporting/insight/{id}/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessInsightControllerRunResponseContent( pathTemplate: "$\"/reporting/insight/{id}/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessInsightControllerRunResponseContent( pathTemplate: "$\"/reporting/insight/{id}/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessInsightControllerRunResponseContent( pathTemplate: "$\"/reporting/insight/{id}/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessInsightControllerRunResponseContent( pathTemplate: "$\"/reporting/insight/{id}/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs index 469f5920..873d92b7 100644 --- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs @@ -162,7 +162,7 @@ partial void ProcessInsightControllerUpdateResponseContent( PrepareInsightControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -185,7 +185,7 @@ partial void ProcessInsightControllerUpdateResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessInsightControllerUpdateResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessInsightControllerUpdateResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -308,7 +308,7 @@ partial void ProcessInsightControllerUpdateResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -330,7 +330,7 @@ partial void ProcessInsightControllerUpdateResponseContent( pathTemplate: "$\"/reporting/insight/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AllOf2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AllOf2.g.cs index 196abc7c..51af45c0 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AllOf2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AllOf2.g.cs @@ -69,7 +69,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Value1!, typeInfo); + var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickValue1(), typeInfo); if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); @@ -87,7 +87,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Value2!, typeInfo); + var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickValue2(), typeInfo); if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object) { throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects."); diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AnyOf2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AnyOf2.g.cs index a160fd4f..32d516fa 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AnyOf2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AnyOf2.g.cs @@ -148,13 +148,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan2.g.cs index 00efd1d9..87e7b9fd 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan2.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo); } else if (value.IsHmac) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo); } else if (value.IsBearer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan4.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan4.g.cs index 019b1fc6..2ee758df 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan4.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan4.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo); } else if (value.IsHmac) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo); } else if (value.IsBearer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan5.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan5.g.cs index 3ff71b80..f8dbd5b8 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan5.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan5.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo); } else if (value.IsHmac) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo); } else if (value.IsBearer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan6.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan6.g.cs index c177831c..7a5f7735 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan6.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan6.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo); } else if (value.IsHmac) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo); } else if (value.IsBearer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan8.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan8.g.cs index 34fb5410..1ab9e04f 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan8.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan8.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo); } else if (value.IsHmac) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo); } else if (value.IsBearer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan9.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan9.g.cs index f3a932a3..a96d33a5 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan9.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan9.g.cs @@ -68,19 +68,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo); } else if (value.IsHmac) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo); } else if (value.IsBearer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem.g.cs index e666bc34..759c8ceb 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem10.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem10.g.cs index 1477ec8e..40b25a7d 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem10.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem10.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem11.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem11.g.cs index ecdfb9d8..d1d5a136 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem11.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem11.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem12.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem12.g.cs index 85111db2..fa2a2cec 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem12.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem12.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem2.g.cs index 5a8afcb2..99c40e17 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem2.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem3.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem3.g.cs index adf0ca5d..9c0a6d13 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem3.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem3.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem4.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem4.g.cs index ef5d6e39..c0fc7d53 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem4.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem4.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem5.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem5.g.cs index c2234e2f..e1854eef 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem5.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem5.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem6.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem6.g.cs index b1e3acfe..04810fd5 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem6.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem6.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem7.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem7.g.cs index 2b88c46d..d2975716 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem7.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem7.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem8.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem8.g.cs index de5a36a7..50c41ab0 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem8.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem8.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem9.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem9.g.cs index 0d04c1ea..595293e9 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem9.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem9.g.cs @@ -554,343 +554,343 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo); } else if (value.IsAnthropicBedrock) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo); } else if (value.IsAnyscale) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo); } else if (value.IsAssemblyAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo); } else if (value.IsAzure) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo); } else if (value.IsAzureOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo); } else if (value.IsByoSipTrunk) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo); } else if (value.IsCartesia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo); } else if (value.IsCerebras) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo); } else if (value.IsCloudflare) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo); } else if (value.IsCustomLlm) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo); } else if (value.IsDeepgram) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo); } else if (value.IsDeepinfra) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo); } else if (value.IsDeepSeek) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo); } else if (value.IsElevenlabs) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo); } else if (value.IsGcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo); } else if (value.IsGladia) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo); } else if (value.IsGohighlevel) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo); } else if (value.IsGoogle) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo); } else if (value.IsGroq) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo); } else if (value.IsHume) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo); } else if (value.IsInflectionAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo); } else if (value.IsLangfuse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo); } else if (value.IsLmnt) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo); } else if (value.IsMake) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo); } else if (value.IsMistral) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo); } else if (value.IsNeuphonic) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo); } else if (value.IsOpenai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo); } else if (value.IsOpenrouter) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo); } else if (value.IsPerplexityAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo); } else if (value.IsPlayht) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo); } else if (value.IsRimeAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo); } else if (value.IsRunpod) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo); } else if (value.IsS3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo); } else if (value.IsS3Compatible) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo); } else if (value.IsSmallestAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo); } else if (value.IsSpeechmatics) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo); } else if (value.IsSoniox) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo); } else if (value.IsSupabase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo); } else if (value.IsTavus) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo); } else if (value.IsTogetherAi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo); } else if (value.IsCustomCredential) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo); } else if (value.IsXai) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo); } else if (value.IsMicrosoft) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo); } else if (value.IsGoogleCalendarOauth2Client) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo); } else if (value.IsGoogleCalendarOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo); } else if (value.IsGoogleSheetsOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo); } else if (value.IsSlackOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo); } else if (value.IsGhlOauth2Authorization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo); } else if (value.IsInworld) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo); } else if (value.IsMinimax) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo); } else if (value.IsWellsaid) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo); } else if (value.IsEmail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo); } else if (value.IsSlackWebhook) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerCreateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerCreateRequest.g.cs index c86412af..f140573d 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerCreateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerCreateRequest.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateBarInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateBarInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bar!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBar(), typeInfo); } else if (value.IsPie) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePieInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePieInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pie!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPie(), typeInfo); } else if (value.IsLine) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLineInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLineInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Line!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLine(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTextInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTextInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerCreateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerCreateResponse.g.cs index f22d9b7f..c36a1deb 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerCreateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerCreateResponse.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BarInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BarInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bar!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBar(), typeInfo); } else if (value.IsPie) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.PieInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.PieInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pie!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPie(), typeInfo); } else if (value.IsLine) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.LineInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.LineInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Line!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLine(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TextInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TextInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerFindOneResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerFindOneResponse.g.cs index a795452d..6177c234 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerFindOneResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerFindOneResponse.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BarInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BarInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bar!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBar(), typeInfo); } else if (value.IsPie) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.PieInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.PieInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pie!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPie(), typeInfo); } else if (value.IsLine) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.LineInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.LineInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Line!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLine(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TextInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TextInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerPreviewRequest.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerPreviewRequest.g.cs index 46bdaa69..d064c350 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerPreviewRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerPreviewRequest.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateBarInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateBarInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bar!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBar(), typeInfo); } else if (value.IsPie) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePieInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePieInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pie!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPie(), typeInfo); } else if (value.IsLine) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLineInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLineInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Line!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLine(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTextInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTextInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerRemoveResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerRemoveResponse.g.cs index 05a749b7..f2fc7eb6 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerRemoveResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerRemoveResponse.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BarInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BarInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bar!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBar(), typeInfo); } else if (value.IsPie) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.PieInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.PieInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pie!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPie(), typeInfo); } else if (value.IsLine) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.LineInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.LineInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Line!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLine(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TextInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TextInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerUpdateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerUpdateRequest.g.cs index 15c3f8ad..57315b4d 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerUpdateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerUpdateRequest.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateBarInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateBarInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bar!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBar(), typeInfo); } else if (value.IsPie) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdatePieInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdatePieInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pie!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPie(), typeInfo); } else if (value.IsLine) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateLineInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateLineInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Line!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLine(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateTextInsightFromCallTableDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateTextInsightFromCallTableDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerUpdateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerUpdateResponse.g.cs index 32a2e31e..6140ef78 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerUpdateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.InsightControllerUpdateResponse.g.cs @@ -77,25 +77,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BarInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BarInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bar!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBar(), typeInfo); } else if (value.IsPie) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.PieInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.PieInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Pie!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPie(), typeInfo); } else if (value.IsLine) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.LineInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.LineInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Line!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLine(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TextInsight), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TextInsight).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf13.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf13.g.cs index 9c0f7e12..e3a2bc6a 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf13.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf13.g.cs @@ -687,79 +687,79 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } else if (value.IsValue10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue10(), typeInfo); } else if (value.IsValue11) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue11(), typeInfo); } else if (value.IsValue12) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue12(), typeInfo); } else if (value.IsValue13) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue13(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf14.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf14.g.cs index b202e230..b826749b 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf14.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf14.g.cs @@ -736,85 +736,85 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } else if (value.IsValue10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue10(), typeInfo); } else if (value.IsValue11) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue11(), typeInfo); } else if (value.IsValue12) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue12(), typeInfo); } else if (value.IsValue13) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue13(), typeInfo); } else if (value.IsValue14) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue14(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf17.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf17.g.cs index df876ebb..73db64c0 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf17.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf17.g.cs @@ -883,103 +883,103 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } else if (value.IsValue10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue10(), typeInfo); } else if (value.IsValue11) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue11(), typeInfo); } else if (value.IsValue12) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue12(), typeInfo); } else if (value.IsValue13) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue13(), typeInfo); } else if (value.IsValue14) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue14(), typeInfo); } else if (value.IsValue15) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T15).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value15!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue15(), typeInfo); } else if (value.IsValue16) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T16).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value16!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue16(), typeInfo); } else if (value.IsValue17) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value17!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue17(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf19.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf19.g.cs index 7eaa48cd..d7dea7b1 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf19.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf19.g.cs @@ -981,115 +981,115 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } else if (value.IsValue10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue10(), typeInfo); } else if (value.IsValue11) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue11(), typeInfo); } else if (value.IsValue12) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue12(), typeInfo); } else if (value.IsValue13) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue13(), typeInfo); } else if (value.IsValue14) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue14(), typeInfo); } else if (value.IsValue15) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T15).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value15!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue15(), typeInfo); } else if (value.IsValue16) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T16).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value16!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue16(), typeInfo); } else if (value.IsValue17) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value17!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue17(), typeInfo); } else if (value.IsValue18) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T18).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value18!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue18(), typeInfo); } else if (value.IsValue19) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T19).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value19!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue19(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf2.g.cs index 47f57ab1..9bae1571 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf2.g.cs @@ -148,13 +148,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf20.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf20.g.cs index df42799e..efa639a1 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf20.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf20.g.cs @@ -1030,121 +1030,121 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } else if (value.IsValue10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue10(), typeInfo); } else if (value.IsValue11) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue11(), typeInfo); } else if (value.IsValue12) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue12(), typeInfo); } else if (value.IsValue13) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue13(), typeInfo); } else if (value.IsValue14) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue14(), typeInfo); } else if (value.IsValue15) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T15).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value15!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue15(), typeInfo); } else if (value.IsValue16) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T16).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value16!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue16(), typeInfo); } else if (value.IsValue17) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value17!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue17(), typeInfo); } else if (value.IsValue18) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T18).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value18!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue18(), typeInfo); } else if (value.IsValue19) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T19).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value19!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue19(), typeInfo); } else if (value.IsValue20) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T20).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value20!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue20(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf22.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf22.g.cs index cd651669..f39d0102 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf22.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf22.g.cs @@ -1128,133 +1128,133 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } else if (value.IsValue10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue10(), typeInfo); } else if (value.IsValue11) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue11(), typeInfo); } else if (value.IsValue12) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue12(), typeInfo); } else if (value.IsValue13) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue13(), typeInfo); } else if (value.IsValue14) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue14(), typeInfo); } else if (value.IsValue15) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T15).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value15!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue15(), typeInfo); } else if (value.IsValue16) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T16).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value16!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue16(), typeInfo); } else if (value.IsValue17) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value17!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue17(), typeInfo); } else if (value.IsValue18) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T18).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value18!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue18(), typeInfo); } else if (value.IsValue19) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T19).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value19!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue19(), typeInfo); } else if (value.IsValue20) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T20).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value20!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue20(), typeInfo); } else if (value.IsValue21) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T21).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value21!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue21(), typeInfo); } else if (value.IsValue22) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T22).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value22!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue22(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf23.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf23.g.cs index c96dcc9a..c58bec02 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf23.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf23.g.cs @@ -1177,139 +1177,139 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } else if (value.IsValue10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue10(), typeInfo); } else if (value.IsValue11) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue11(), typeInfo); } else if (value.IsValue12) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue12(), typeInfo); } else if (value.IsValue13) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue13(), typeInfo); } else if (value.IsValue14) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue14(), typeInfo); } else if (value.IsValue15) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T15).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value15!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue15(), typeInfo); } else if (value.IsValue16) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T16).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value16!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue16(), typeInfo); } else if (value.IsValue17) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value17!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue17(), typeInfo); } else if (value.IsValue18) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T18).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value18!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue18(), typeInfo); } else if (value.IsValue19) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T19).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value19!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue19(), typeInfo); } else if (value.IsValue20) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T20).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value20!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue20(), typeInfo); } else if (value.IsValue21) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T21).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value21!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue21(), typeInfo); } else if (value.IsValue22) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T22).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value22!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue22(), typeInfo); } else if (value.IsValue23) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T23), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T23).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value23!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue23(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf29.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf29.g.cs index 80d86190..7caa47e4 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf29.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf29.g.cs @@ -1471,175 +1471,175 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } else if (value.IsValue10) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T10).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue10(), typeInfo); } else if (value.IsValue11) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T11).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue11(), typeInfo); } else if (value.IsValue12) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T12).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue12(), typeInfo); } else if (value.IsValue13) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T13).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue13(), typeInfo); } else if (value.IsValue14) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T14).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue14(), typeInfo); } else if (value.IsValue15) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T15).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value15!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue15(), typeInfo); } else if (value.IsValue16) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T16).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value16!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue16(), typeInfo); } else if (value.IsValue17) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T17).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value17!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue17(), typeInfo); } else if (value.IsValue18) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T18), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T18).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value18!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue18(), typeInfo); } else if (value.IsValue19) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T19), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T19).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value19!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue19(), typeInfo); } else if (value.IsValue20) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T20), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T20).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value20!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue20(), typeInfo); } else if (value.IsValue21) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T21), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T21).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value21!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue21(), typeInfo); } else if (value.IsValue22) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T22).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value22!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue22(), typeInfo); } else if (value.IsValue23) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T23), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T23).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value23!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue23(), typeInfo); } else if (value.IsValue24) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T24), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T24).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value24!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue24(), typeInfo); } else if (value.IsValue25) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T25), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T25).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value25!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue25(), typeInfo); } else if (value.IsValue26) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T26), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T26).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value26!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue26(), typeInfo); } else if (value.IsValue27) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T27), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T27).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value27!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue27(), typeInfo); } else if (value.IsValue28) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T28), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T28).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value28!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue28(), typeInfo); } else if (value.IsValue29) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T29), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T29).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value29!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue29(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf3.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf3.g.cs index 876a71cf..a621271d 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf3.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf3.g.cs @@ -197,19 +197,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf4.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf4.g.cs index 3c9583c4..052c40bf 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf4.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf4.g.cs @@ -246,25 +246,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf5.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf5.g.cs index 8fb9128c..a1508bdc 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf5.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf5.g.cs @@ -295,31 +295,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf6.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf6.g.cs index f1340ab5..333041fa 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf6.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf6.g.cs @@ -344,37 +344,37 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf7.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf7.g.cs index 16567f8b..ca5c1414 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf7.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf7.g.cs @@ -393,43 +393,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf8.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf8.g.cs index a88c2db9..8e175a4c 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf8.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf8.g.cs @@ -442,49 +442,49 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf9.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf9.g.cs index 4551ed2e..1a3d568a 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf9.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.OneOf9.g.cs @@ -491,55 +491,55 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); } else if (value.IsValue2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } else if (value.IsValue3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } else if (value.IsValue4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } else if (value.IsValue5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue5(), typeInfo); } else if (value.IsValue6) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T6).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue6(), typeInfo); } else if (value.IsValue7) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T7).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue7(), typeInfo); } else if (value.IsValue8) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T8).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue8(), typeInfo); } else if (value.IsValue9) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T9).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue9(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerCreateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerCreateRequest.g.cs index 6a81ba6d..5ef488b7 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerCreateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerCreateRequest.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoPhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoPhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoPhoneNumber!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoPhoneNumber(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioPhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioPhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonagePhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonagePhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsVapi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVapiPhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVapiPhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vapi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVapi(), typeInfo); } else if (value.IsTelnyx) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTelnyxPhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTelnyxPhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Telnyx!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTelnyx(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerCreateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerCreateResponse.g.cs index 99a13d66..ae030cd4 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerCreateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerCreateResponse.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ByoPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ByoPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoPhoneNumber!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoPhoneNumber(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TwilioPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TwilioPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VonagePhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VonagePhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsVapi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VapiPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VapiPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vapi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVapi(), typeInfo); } else if (value.IsTelnyx) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TelnyxPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TelnyxPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Telnyx!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTelnyx(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerFindAllResponseItem.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerFindAllResponseItem.g.cs index 9cd42fa2..b66cea1a 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerFindAllResponseItem.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerFindAllResponseItem.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ByoPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ByoPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoPhoneNumber!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoPhoneNumber(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TwilioPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TwilioPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VonagePhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VonagePhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsVapi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VapiPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VapiPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vapi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVapi(), typeInfo); } else if (value.IsTelnyx) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TelnyxPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TelnyxPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Telnyx!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTelnyx(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerFindOneResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerFindOneResponse.g.cs index 89dc6a7b..aaad05d9 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerFindOneResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerFindOneResponse.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ByoPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ByoPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoPhoneNumber!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoPhoneNumber(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TwilioPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TwilioPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VonagePhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VonagePhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsVapi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VapiPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VapiPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vapi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVapi(), typeInfo); } else if (value.IsTelnyx) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TelnyxPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TelnyxPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Telnyx!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTelnyx(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerRemoveResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerRemoveResponse.g.cs index 665553ad..477311f8 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerRemoveResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerRemoveResponse.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ByoPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ByoPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoPhoneNumber!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoPhoneNumber(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TwilioPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TwilioPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VonagePhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VonagePhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsVapi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VapiPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VapiPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vapi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVapi(), typeInfo); } else if (value.IsTelnyx) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TelnyxPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TelnyxPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Telnyx!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTelnyx(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerUpdateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerUpdateRequest.g.cs index a2415d61..dff2ca0d 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerUpdateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerUpdateRequest.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateByoPhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateByoPhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoPhoneNumber!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoPhoneNumber(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateTwilioPhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateTwilioPhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateVonagePhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateVonagePhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsVapi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateVapiPhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateVapiPhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vapi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVapi(), typeInfo); } else if (value.IsTelnyx) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateTelnyxPhoneNumberDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateTelnyxPhoneNumberDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Telnyx!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTelnyx(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerUpdateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerUpdateResponse.g.cs index 29607afa..c2ad8b2f 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerUpdateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.PhoneNumberControllerUpdateResponse.g.cs @@ -86,31 +86,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ByoPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ByoPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoPhoneNumber!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoPhoneNumber(), typeInfo); } else if (value.IsTwilio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TwilioPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TwilioPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo); } else if (value.IsVonage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VonagePhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VonagePhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo); } else if (value.IsVapi) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VapiPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VapiPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vapi!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVapi(), typeInfo); } else if (value.IsTelnyx) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TelnyxPhoneNumber), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TelnyxPhoneNumber).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Telnyx!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTelnyx(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.RecordingConsentPlan.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.RecordingConsentPlan.g.cs index 5cb7625f..c89541ae 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.RecordingConsentPlan.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.RecordingConsentPlan.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.RecordingConsentPlanStayOnLine), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.RecordingConsentPlanStayOnLine).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StayOnLine!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStayOnLine(), typeInfo); } else if (value.IsVerbal) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.RecordingConsentPlanVerbal), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.RecordingConsentPlanVerbal).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Verbal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVerbal(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.Timing.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.Timing.g.cs index 6d4d4c2e..19452ae0 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.Timing.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.Timing.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.AssistantSpeechWordAlignmentTiming), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.AssistantSpeechWordAlignmentTiming).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WordAlignment!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWordAlignment(), typeInfo); } else if (value.IsWordProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.AssistantSpeechWordProgressTiming), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.AssistantSpeechWordProgressTiming).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WordProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWordProgress(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.Timing2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.Timing2.g.cs index 0c5d3885..b8b4fc11 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.Timing2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.Timing2.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.AssistantSpeechWordAlignmentTiming), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.AssistantSpeechWordAlignmentTiming).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WordAlignment!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWordAlignment(), typeInfo); } else if (value.IsWordProgress) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.AssistantSpeechWordProgressTiming), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.AssistantSpeechWordProgressTiming).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WordProgress!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWordProgress(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerCreateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerCreateRequest.g.cs index 3f08fe2d..f549c910 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerCreateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerCreateRequest.g.cs @@ -248,139 +248,139 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateApiRequestToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateApiRequestToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApiRequest(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCodeToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCodeToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsDtmf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDtmfToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDtmfToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dtmf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDtmf(), typeInfo); } else if (value.IsEndCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEndCallToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEndCallToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EndCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEndCall(), typeInfo); } else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateFunctionToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateFunctionToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsTransferCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTransferCallToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTransferCallToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransferCall(), typeInfo); } else if (value.IsHandoff) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHandoffToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHandoffToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Handoff!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHandoff(), typeInfo); } else if (value.IsBash) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateBashToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateBashToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bash!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBash(), typeInfo); } else if (value.IsComputer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateComputerToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateComputerToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); } else if (value.IsTextEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTextEditorToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTextEditorToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextEditor!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextEditor(), typeInfo); } else if (value.IsQuery) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateQueryToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateQueryToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Query!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQuery(), typeInfo); } else if (value.IsGoogleCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarCreateEventToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarCreateEventToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarEventCreate(), typeInfo); } else if (value.IsGoogleSheetsRowAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsRowAppendToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsRowAppendToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsRowAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsRowAppend(), typeInfo); } else if (value.IsGoogleCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarCheckAvailabilityToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarCheckAvailabilityToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarAvailabilityCheck(), typeInfo); } else if (value.IsSlackMessageSend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackSendMessageToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackSendMessageToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackMessageSend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackMessageSend(), typeInfo); } else if (value.IsSms) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmsToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmsToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sms!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSms(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMcpToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMcpToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsGohighlevelCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCalendarAvailabilityToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCalendarAvailabilityToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarAvailabilityCheck(), typeInfo); } else if (value.IsGohighlevelCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCalendarEventCreateToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCalendarEventCreateToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarEventCreate(), typeInfo); } else if (value.IsGohighlevelContactCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelContactCreateToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelContactCreateToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactCreate(), typeInfo); } else if (value.IsGohighlevelContactGet) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelContactGetToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelContactGetToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactGet!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactGet(), typeInfo); } else if (value.IsSipRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSipRequestToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSipRequestToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SipRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSipRequest(), typeInfo); } else if (value.IsVoicemail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVoicemailToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVoicemailToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Voicemail!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoicemail(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerCreateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerCreateResponse.g.cs index 5d32a830..9417ea2c 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerCreateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerCreateResponse.g.cs @@ -266,151 +266,151 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ApiRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ApiRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApiRequest(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CodeTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CodeTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsDtmf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.DtmfTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.DtmfTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dtmf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDtmf(), typeInfo); } else if (value.IsEndCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.EndCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.EndCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EndCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEndCall(), typeInfo); } else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.FunctionTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsKnowledgeBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.KnowledgeBaseTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.KnowledgeBaseTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.KnowledgeBase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickKnowledgeBase(), typeInfo); } else if (value.IsGhl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GhlTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GhlTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ghl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhl(), typeInfo); } else if (value.IsTransferCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TransferCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TransferCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransferCall(), typeInfo); } else if (value.IsHandoff) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HandoffTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HandoffTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Handoff!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHandoff(), typeInfo); } else if (value.IsBash) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BashTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BashTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bash!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBash(), typeInfo); } else if (value.IsComputer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ComputerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); } else if (value.IsTextEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TextEditorTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TextEditorTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextEditor!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextEditor(), typeInfo); } else if (value.IsQuery) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.QueryTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.QueryTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Query!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQuery(), typeInfo); } else if (value.IsGoogleCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCreateEventTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCreateEventTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarEventCreate(), typeInfo); } else if (value.IsGoogleSheetsRowAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleSheetsRowAppendTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleSheetsRowAppendTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsRowAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsRowAppend(), typeInfo); } else if (value.IsGoogleCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarAvailabilityCheck(), typeInfo); } else if (value.IsSlackMessageSend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SlackSendMessageTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SlackSendMessageTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackMessageSend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackMessageSend(), typeInfo); } else if (value.IsSms) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SmsTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SmsTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sms!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSms(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.McpTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.McpTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsGohighlevelCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarAvailabilityCheck(), typeInfo); } else if (value.IsGohighlevelCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarEventCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarEventCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarEventCreate(), typeInfo); } else if (value.IsGohighlevelContactCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactCreate(), typeInfo); } else if (value.IsGohighlevelContactGet) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactGetTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactGetTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactGet!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactGet(), typeInfo); } else if (value.IsSipRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SipRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SipRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SipRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSipRequest(), typeInfo); } else if (value.IsVoicemail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VoicemailTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VoicemailTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Voicemail!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoicemail(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerFindAllResponseItem.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerFindAllResponseItem.g.cs index a3a6cfe5..ea0eb5c3 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerFindAllResponseItem.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerFindAllResponseItem.g.cs @@ -266,151 +266,151 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ApiRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ApiRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApiRequest(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CodeTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CodeTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsDtmf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.DtmfTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.DtmfTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dtmf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDtmf(), typeInfo); } else if (value.IsEndCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.EndCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.EndCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EndCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEndCall(), typeInfo); } else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.FunctionTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsKnowledgeBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.KnowledgeBaseTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.KnowledgeBaseTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.KnowledgeBase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickKnowledgeBase(), typeInfo); } else if (value.IsGhl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GhlTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GhlTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ghl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhl(), typeInfo); } else if (value.IsTransferCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TransferCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TransferCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransferCall(), typeInfo); } else if (value.IsHandoff) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HandoffTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HandoffTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Handoff!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHandoff(), typeInfo); } else if (value.IsBash) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BashTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BashTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bash!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBash(), typeInfo); } else if (value.IsComputer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ComputerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); } else if (value.IsTextEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TextEditorTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TextEditorTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextEditor!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextEditor(), typeInfo); } else if (value.IsQuery) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.QueryTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.QueryTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Query!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQuery(), typeInfo); } else if (value.IsGoogleCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCreateEventTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCreateEventTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarEventCreate(), typeInfo); } else if (value.IsGoogleSheetsRowAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleSheetsRowAppendTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleSheetsRowAppendTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsRowAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsRowAppend(), typeInfo); } else if (value.IsGoogleCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarAvailabilityCheck(), typeInfo); } else if (value.IsSlackMessageSend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SlackSendMessageTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SlackSendMessageTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackMessageSend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackMessageSend(), typeInfo); } else if (value.IsSms) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SmsTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SmsTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sms!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSms(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.McpTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.McpTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsGohighlevelCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarAvailabilityCheck(), typeInfo); } else if (value.IsGohighlevelCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarEventCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarEventCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarEventCreate(), typeInfo); } else if (value.IsGohighlevelContactCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactCreate(), typeInfo); } else if (value.IsGohighlevelContactGet) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactGetTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactGetTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactGet!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactGet(), typeInfo); } else if (value.IsSipRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SipRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SipRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SipRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSipRequest(), typeInfo); } else if (value.IsVoicemail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VoicemailTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VoicemailTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Voicemail!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoicemail(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerFindOneResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerFindOneResponse.g.cs index 91073bd7..45dc08a0 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerFindOneResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerFindOneResponse.g.cs @@ -266,151 +266,151 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ApiRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ApiRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApiRequest(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CodeTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CodeTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsDtmf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.DtmfTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.DtmfTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dtmf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDtmf(), typeInfo); } else if (value.IsEndCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.EndCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.EndCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EndCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEndCall(), typeInfo); } else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.FunctionTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsKnowledgeBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.KnowledgeBaseTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.KnowledgeBaseTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.KnowledgeBase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickKnowledgeBase(), typeInfo); } else if (value.IsGhl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GhlTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GhlTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ghl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhl(), typeInfo); } else if (value.IsTransferCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TransferCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TransferCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransferCall(), typeInfo); } else if (value.IsHandoff) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HandoffTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HandoffTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Handoff!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHandoff(), typeInfo); } else if (value.IsBash) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BashTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BashTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bash!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBash(), typeInfo); } else if (value.IsComputer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ComputerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); } else if (value.IsTextEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TextEditorTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TextEditorTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextEditor!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextEditor(), typeInfo); } else if (value.IsQuery) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.QueryTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.QueryTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Query!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQuery(), typeInfo); } else if (value.IsGoogleCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCreateEventTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCreateEventTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarEventCreate(), typeInfo); } else if (value.IsGoogleSheetsRowAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleSheetsRowAppendTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleSheetsRowAppendTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsRowAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsRowAppend(), typeInfo); } else if (value.IsGoogleCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarAvailabilityCheck(), typeInfo); } else if (value.IsSlackMessageSend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SlackSendMessageTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SlackSendMessageTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackMessageSend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackMessageSend(), typeInfo); } else if (value.IsSms) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SmsTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SmsTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sms!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSms(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.McpTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.McpTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsGohighlevelCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarAvailabilityCheck(), typeInfo); } else if (value.IsGohighlevelCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarEventCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarEventCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarEventCreate(), typeInfo); } else if (value.IsGohighlevelContactCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactCreate(), typeInfo); } else if (value.IsGohighlevelContactGet) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactGetTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactGetTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactGet!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactGet(), typeInfo); } else if (value.IsSipRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SipRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SipRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SipRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSipRequest(), typeInfo); } else if (value.IsVoicemail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VoicemailTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VoicemailTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Voicemail!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoicemail(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerRemoveResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerRemoveResponse.g.cs index 8e99f3f5..6a94f1e9 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerRemoveResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerRemoveResponse.g.cs @@ -266,151 +266,151 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ApiRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ApiRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApiRequest(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CodeTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CodeTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsDtmf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.DtmfTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.DtmfTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dtmf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDtmf(), typeInfo); } else if (value.IsEndCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.EndCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.EndCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EndCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEndCall(), typeInfo); } else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.FunctionTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsKnowledgeBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.KnowledgeBaseTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.KnowledgeBaseTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.KnowledgeBase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickKnowledgeBase(), typeInfo); } else if (value.IsGhl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GhlTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GhlTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ghl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhl(), typeInfo); } else if (value.IsTransferCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TransferCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TransferCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransferCall(), typeInfo); } else if (value.IsHandoff) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HandoffTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HandoffTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Handoff!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHandoff(), typeInfo); } else if (value.IsBash) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BashTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BashTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bash!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBash(), typeInfo); } else if (value.IsComputer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ComputerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); } else if (value.IsTextEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TextEditorTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TextEditorTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextEditor!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextEditor(), typeInfo); } else if (value.IsQuery) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.QueryTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.QueryTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Query!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQuery(), typeInfo); } else if (value.IsGoogleCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCreateEventTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCreateEventTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarEventCreate(), typeInfo); } else if (value.IsGoogleSheetsRowAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleSheetsRowAppendTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleSheetsRowAppendTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsRowAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsRowAppend(), typeInfo); } else if (value.IsGoogleCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarAvailabilityCheck(), typeInfo); } else if (value.IsSlackMessageSend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SlackSendMessageTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SlackSendMessageTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackMessageSend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackMessageSend(), typeInfo); } else if (value.IsSms) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SmsTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SmsTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sms!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSms(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.McpTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.McpTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsGohighlevelCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarAvailabilityCheck(), typeInfo); } else if (value.IsGohighlevelCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarEventCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarEventCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarEventCreate(), typeInfo); } else if (value.IsGohighlevelContactCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactCreate(), typeInfo); } else if (value.IsGohighlevelContactGet) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactGetTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactGetTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactGet!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactGet(), typeInfo); } else if (value.IsSipRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SipRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SipRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SipRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSipRequest(), typeInfo); } else if (value.IsVoicemail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VoicemailTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VoicemailTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Voicemail!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoicemail(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerRemoveResponse2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerRemoveResponse2.g.cs index f4d6b091..54bf23ff 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerRemoveResponse2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerRemoveResponse2.g.cs @@ -59,13 +59,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ToolPinnedConflictResponseDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ToolPinnedConflictResponseDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolPinned!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolPinned(), typeInfo); } else if (value.IsToolWriteConflict) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ToolWriteConflictResponseDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ToolWriteConflictResponseDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolWriteConflict!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickToolWriteConflict(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerUpdateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerUpdateRequest.g.cs index 3ca4b98d..2c1e592e 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerUpdateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerUpdateRequest.g.cs @@ -257,145 +257,145 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateApiRequestToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateApiRequestToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApiRequest(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateCodeToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateCodeToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsDtmf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateDtmfToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateDtmfToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dtmf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDtmf(), typeInfo); } else if (value.IsEndCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateEndCallToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateEndCallToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EndCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEndCall(), typeInfo); } else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateFunctionToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateFunctionToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsKnowledgeBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateKnowledgeBaseToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateKnowledgeBaseToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.KnowledgeBase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickKnowledgeBase(), typeInfo); } else if (value.IsTransferCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateTransferCallToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateTransferCallToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransferCall(), typeInfo); } else if (value.IsHandoff) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateHandoffToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateHandoffToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Handoff!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHandoff(), typeInfo); } else if (value.IsBash) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateBashToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateBashToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bash!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBash(), typeInfo); } else if (value.IsComputer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateComputerToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateComputerToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); } else if (value.IsTextEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateTextEditorToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateTextEditorToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextEditor!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextEditor(), typeInfo); } else if (value.IsQuery) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateQueryToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateQueryToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Query!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQuery(), typeInfo); } else if (value.IsGoogleCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateGoogleCalendarCreateEventToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateGoogleCalendarCreateEventToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarEventCreate(), typeInfo); } else if (value.IsGoogleSheetsRowAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateGoogleSheetsRowAppendToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateGoogleSheetsRowAppendToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsRowAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsRowAppend(), typeInfo); } else if (value.IsGoogleCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateGoogleCalendarCheckAvailabilityToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateGoogleCalendarCheckAvailabilityToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarAvailabilityCheck(), typeInfo); } else if (value.IsSlackMessageSend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateSlackSendMessageToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateSlackSendMessageToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackMessageSend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackMessageSend(), typeInfo); } else if (value.IsSms) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateSmsToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateSmsToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sms!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSms(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateMcpToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateMcpToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsGohighlevelCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateGoHighLevelCalendarAvailabilityToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateGoHighLevelCalendarAvailabilityToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarAvailabilityCheck(), typeInfo); } else if (value.IsGohighlevelCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateGoHighLevelCalendarEventCreateToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateGoHighLevelCalendarEventCreateToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarEventCreate(), typeInfo); } else if (value.IsGohighlevelContactCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateGoHighLevelContactCreateToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateGoHighLevelContactCreateToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactCreate(), typeInfo); } else if (value.IsGohighlevelContactGet) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateGoHighLevelContactGetToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateGoHighLevelContactGetToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactGet!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactGet(), typeInfo); } else if (value.IsSipRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateSipRequestToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateSipRequestToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SipRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSipRequest(), typeInfo); } else if (value.IsVoicemail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.UpdateVoicemailToolDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.UpdateVoicemailToolDTO).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Voicemail!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoicemail(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerUpdateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerUpdateResponse.g.cs index 5312ab16..c5106158 100644 --- a/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerUpdateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.ToolControllerUpdateResponse.g.cs @@ -266,151 +266,151 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ApiRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ApiRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickApiRequest(), typeInfo); } else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CodeTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CodeTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCode(), typeInfo); } else if (value.IsDtmf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.DtmfTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.DtmfTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dtmf!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDtmf(), typeInfo); } else if (value.IsEndCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.EndCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.EndCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EndCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEndCall(), typeInfo); } else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.FunctionTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.FunctionTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsKnowledgeBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.KnowledgeBaseTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.KnowledgeBaseTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.KnowledgeBase!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickKnowledgeBase(), typeInfo); } else if (value.IsGhl) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GhlTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GhlTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ghl!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhl(), typeInfo); } else if (value.IsTransferCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TransferCallTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TransferCallTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTransferCall(), typeInfo); } else if (value.IsHandoff) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HandoffTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HandoffTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Handoff!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHandoff(), typeInfo); } else if (value.IsBash) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BashTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BashTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bash!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBash(), typeInfo); } else if (value.IsComputer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.ComputerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.ComputerTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Computer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputer(), typeInfo); } else if (value.IsTextEditor) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.TextEditorTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.TextEditorTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextEditor!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextEditor(), typeInfo); } else if (value.IsQuery) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.QueryTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.QueryTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Query!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickQuery(), typeInfo); } else if (value.IsGoogleCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCreateEventTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCreateEventTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarEventCreate(), typeInfo); } else if (value.IsGoogleSheetsRowAppend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleSheetsRowAppendTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleSheetsRowAppendTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsRowAppend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsRowAppend(), typeInfo); } else if (value.IsGoogleCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoogleCalendarCheckAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarAvailabilityCheck(), typeInfo); } else if (value.IsSlackMessageSend) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SlackSendMessageTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SlackSendMessageTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackMessageSend!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackMessageSend(), typeInfo); } else if (value.IsSms) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SmsTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SmsTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sms!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSms(), typeInfo); } else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.McpTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.McpTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcp(), typeInfo); } else if (value.IsGohighlevelCalendarAvailabilityCheck) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarAvailabilityTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarAvailabilityCheck!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarAvailabilityCheck(), typeInfo); } else if (value.IsGohighlevelCalendarEventCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelCalendarEventCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelCalendarEventCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelCalendarEventCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelCalendarEventCreate(), typeInfo); } else if (value.IsGohighlevelContactCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactCreateTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactCreateTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactCreate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactCreate(), typeInfo); } else if (value.IsGohighlevelContactGet) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.GoHighLevelContactGetTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.GoHighLevelContactGetTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GohighlevelContactGet!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevelContactGet(), typeInfo); } else if (value.IsSipRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.SipRequestTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.SipRequestTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SipRequest!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSipRequest(), typeInfo); } else if (value.IsVoicemail) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.VoicemailTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.VoicemailTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Voicemail!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVoicemail(), typeInfo); } } } diff --git a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerCreate.g.cs index d655087f..376256f0 100644 --- a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessKnowledgeBaseV2ControllerCreateResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessKnowledgeBaseV2ControllerCreateResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessKnowledgeBaseV2ControllerCreateResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessKnowledgeBaseV2ControllerCreateResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessKnowledgeBaseV2ControllerCreateResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileAttach.g.cs b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileAttach.g.cs index b7f1e246..2c331a90 100644 --- a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileAttach.g.cs +++ b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileAttach.g.cs @@ -164,7 +164,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileAttachResponseContent( PrepareKnowledgeBaseV2ControllerFileAttachRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileAttachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileAttachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileAttachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileAttachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileAttachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileDetach.g.cs b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileDetach.g.cs index 423c2927..3ef061ca 100644 --- a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileDetach.g.cs +++ b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileDetach.g.cs @@ -153,8 +153,8 @@ partial void ProcessKnowledgeBaseV2ControllerFileDetachResponseContent( PrepareKnowledgeBaseV2ControllerFileDetachRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, - fileId: fileId!); + id: id, + fileId: fileId); return __httpRequest; } @@ -176,7 +176,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileDetachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileDetachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileDetachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileDetachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileDetachResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileRetry.g.cs b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileRetry.g.cs index 2a88c0a0..c1a0013c 100644 --- a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileRetry.g.cs +++ b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFileRetry.g.cs @@ -153,8 +153,8 @@ partial void ProcessKnowledgeBaseV2ControllerFileRetryResponseContent( PrepareKnowledgeBaseV2ControllerFileRetryRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, - fileId: fileId!); + id: id, + fileId: fileId); return __httpRequest; } @@ -176,7 +176,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileRetryResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}/retry\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileRetryResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}/retry\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileRetryResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}/retry\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileRetryResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}/retry\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessKnowledgeBaseV2ControllerFileRetryResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file/{fileId}/retry\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFilesGet.g.cs b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFilesGet.g.cs index 55154b40..e3f67dbf 100644 --- a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFilesGet.g.cs +++ b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFilesGet.g.cs @@ -145,7 +145,7 @@ partial void ProcessKnowledgeBaseV2ControllerFilesGetResponseContent( PrepareKnowledgeBaseV2ControllerFilesGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessKnowledgeBaseV2ControllerFilesGetResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessKnowledgeBaseV2ControllerFilesGetResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessKnowledgeBaseV2ControllerFilesGetResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessKnowledgeBaseV2ControllerFilesGetResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessKnowledgeBaseV2ControllerFilesGetResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}/file\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFindAll.g.cs index 9862361e..3549155f 100644 --- a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFindAll.g.cs @@ -170,7 +170,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindAllResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -204,7 +204,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindAllResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -245,7 +245,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindAllResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -293,7 +293,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindAllResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -315,7 +315,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindAllResponseContent( pathTemplate: "\"/v2/knowledge-base\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFindOne.g.cs index 8bd78be3..21f0be9e 100644 --- a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindOneResponseContent( PrepareKnowledgeBaseV2ControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindOneResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindOneResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindOneResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindOneResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessKnowledgeBaseV2ControllerFindOneResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerRemove.g.cs index 4ee8b0e0..db6176cb 100644 --- a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessKnowledgeBaseV2ControllerRemoveResponseContent( PrepareKnowledgeBaseV2ControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessKnowledgeBaseV2ControllerRemoveResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessKnowledgeBaseV2ControllerRemoveResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessKnowledgeBaseV2ControllerRemoveResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessKnowledgeBaseV2ControllerRemoveResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessKnowledgeBaseV2ControllerRemoveResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerUpdate.g.cs index d2710897..5b994775 100644 --- a/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.KnowledgeBasesV2Client.KnowledgeBaseV2ControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessKnowledgeBaseV2ControllerUpdateResponseContent( PrepareKnowledgeBaseV2ControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessKnowledgeBaseV2ControllerUpdateResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessKnowledgeBaseV2ControllerUpdateResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessKnowledgeBaseV2ControllerUpdateResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessKnowledgeBaseV2ControllerUpdateResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessKnowledgeBaseV2ControllerUpdateResponseContent( pathTemplate: "$\"/v2/knowledge-base/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan2.g.cs b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan2.g.cs index 08b1665b..3664492d 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan2.g.cs @@ -47,8 +47,8 @@ public bool TryPickOauth2( /// /// /// - public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => IsOauth2 - ? Oauth2! + public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => Oauth2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Oauth2' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickHmac( /// /// /// - public global::Vapi.HMACAuthenticationPlan PickHmac() => IsHmac - ? Hmac! + public global::Vapi.HMACAuthenticationPlan PickHmac() => Hmac is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hmac' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickBearer( /// /// /// - public global::Vapi.BearerAuthenticationPlan PickBearer() => IsBearer - ? Bearer! + public global::Vapi.BearerAuthenticationPlan PickBearer() => Bearer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bearer' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsOauth2 && oauth2 != null) + if (Oauth2 is { } __value0 && oauth2 != null) { - return oauth2(Oauth2!); + return oauth2(__value0); } - else if (IsHmac && hmac != null) + else if (Hmac is { } __value1 && hmac != null) { - return hmac(Hmac!); + return hmac(__value1); } - else if (IsBearer && bearer != null) + else if (Bearer is { } __value2 && bearer != null) { - return bearer(Bearer!); + return bearer(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan4.g.cs b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan4.g.cs index 3b34bcd1..c352ec2b 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan4.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan4.g.cs @@ -47,8 +47,8 @@ public bool TryPickOauth2( /// /// /// - public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => IsOauth2 - ? Oauth2! + public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => Oauth2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Oauth2' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickHmac( /// /// /// - public global::Vapi.HMACAuthenticationPlan PickHmac() => IsHmac - ? Hmac! + public global::Vapi.HMACAuthenticationPlan PickHmac() => Hmac is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hmac' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickBearer( /// /// /// - public global::Vapi.BearerAuthenticationPlan PickBearer() => IsBearer - ? Bearer! + public global::Vapi.BearerAuthenticationPlan PickBearer() => Bearer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bearer' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsOauth2 && oauth2 != null) + if (Oauth2 is { } __value0 && oauth2 != null) { - return oauth2(Oauth2!); + return oauth2(__value0); } - else if (IsHmac && hmac != null) + else if (Hmac is { } __value1 && hmac != null) { - return hmac(Hmac!); + return hmac(__value1); } - else if (IsBearer && bearer != null) + else if (Bearer is { } __value2 && bearer != null) { - return bearer(Bearer!); + return bearer(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan5.g.cs b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan5.g.cs index cc2e2f1c..d9eae667 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan5.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan5.g.cs @@ -47,8 +47,8 @@ public bool TryPickOauth2( /// /// /// - public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => IsOauth2 - ? Oauth2! + public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => Oauth2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Oauth2' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickHmac( /// /// /// - public global::Vapi.HMACAuthenticationPlan PickHmac() => IsHmac - ? Hmac! + public global::Vapi.HMACAuthenticationPlan PickHmac() => Hmac is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hmac' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickBearer( /// /// /// - public global::Vapi.BearerAuthenticationPlan PickBearer() => IsBearer - ? Bearer! + public global::Vapi.BearerAuthenticationPlan PickBearer() => Bearer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bearer' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsOauth2 && oauth2 != null) + if (Oauth2 is { } __value0 && oauth2 != null) { - return oauth2(Oauth2!); + return oauth2(__value0); } - else if (IsHmac && hmac != null) + else if (Hmac is { } __value1 && hmac != null) { - return hmac(Hmac!); + return hmac(__value1); } - else if (IsBearer && bearer != null) + else if (Bearer is { } __value2 && bearer != null) { - return bearer(Bearer!); + return bearer(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan6.g.cs b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan6.g.cs index 1546276e..bad2b7fb 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan6.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan6.g.cs @@ -47,8 +47,8 @@ public bool TryPickOauth2( /// /// /// - public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => IsOauth2 - ? Oauth2! + public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => Oauth2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Oauth2' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickHmac( /// /// /// - public global::Vapi.HMACAuthenticationPlan PickHmac() => IsHmac - ? Hmac! + public global::Vapi.HMACAuthenticationPlan PickHmac() => Hmac is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hmac' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickBearer( /// /// /// - public global::Vapi.BearerAuthenticationPlan PickBearer() => IsBearer - ? Bearer! + public global::Vapi.BearerAuthenticationPlan PickBearer() => Bearer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bearer' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsOauth2 && oauth2 != null) + if (Oauth2 is { } __value0 && oauth2 != null) { - return oauth2(Oauth2!); + return oauth2(__value0); } - else if (IsHmac && hmac != null) + else if (Hmac is { } __value1 && hmac != null) { - return hmac(Hmac!); + return hmac(__value1); } - else if (IsBearer && bearer != null) + else if (Bearer is { } __value2 && bearer != null) { - return bearer(Bearer!); + return bearer(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan8.g.cs b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan8.g.cs index 7a489244..c5f82813 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan8.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan8.g.cs @@ -47,8 +47,8 @@ public bool TryPickOauth2( /// /// /// - public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => IsOauth2 - ? Oauth2! + public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => Oauth2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Oauth2' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickHmac( /// /// /// - public global::Vapi.HMACAuthenticationPlan PickHmac() => IsHmac - ? Hmac! + public global::Vapi.HMACAuthenticationPlan PickHmac() => Hmac is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hmac' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickBearer( /// /// /// - public global::Vapi.BearerAuthenticationPlan PickBearer() => IsBearer - ? Bearer! + public global::Vapi.BearerAuthenticationPlan PickBearer() => Bearer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bearer' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsOauth2 && oauth2 != null) + if (Oauth2 is { } __value0 && oauth2 != null) { - return oauth2(Oauth2!); + return oauth2(__value0); } - else if (IsHmac && hmac != null) + else if (Hmac is { } __value1 && hmac != null) { - return hmac(Hmac!); + return hmac(__value1); } - else if (IsBearer && bearer != null) + else if (Bearer is { } __value2 && bearer != null) { - return bearer(Bearer!); + return bearer(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan9.g.cs b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan9.g.cs index 1d3596b5..84bd7a34 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan9.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.AuthenticationPlan9.g.cs @@ -47,8 +47,8 @@ public bool TryPickOauth2( /// /// /// - public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => IsOauth2 - ? Oauth2! + public global::Vapi.OAuth2AuthenticationPlan PickOauth2() => Oauth2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Oauth2' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickHmac( /// /// /// - public global::Vapi.HMACAuthenticationPlan PickHmac() => IsHmac - ? Hmac! + public global::Vapi.HMACAuthenticationPlan PickHmac() => Hmac is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hmac' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickBearer( /// /// /// - public global::Vapi.BearerAuthenticationPlan PickBearer() => IsBearer - ? Bearer! + public global::Vapi.BearerAuthenticationPlan PickBearer() => Bearer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bearer' but the value was {ToString()}."); /// /// @@ -250,17 +250,17 @@ public bool Validate() Validate(); } - if (IsOauth2 && oauth2 != null) + if (Oauth2 is { } __value0 && oauth2 != null) { - return oauth2(Oauth2!); + return oauth2(__value0); } - else if (IsHmac && hmac != null) + else if (Hmac is { } __value1 && hmac != null) { - return hmac(Hmac!); + return hmac(__value1); } - else if (IsBearer && bearer != null) + else if (Bearer is { } __value2 && bearer != null) { - return bearer(Bearer!); + return bearer(__value2); } return default(TResult); @@ -282,17 +282,17 @@ public void Match( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } @@ -310,17 +310,17 @@ public void Switch( Validate(); } - if (IsOauth2) + if (Oauth2 is { } __value0) { - oauth2?.Invoke(Oauth2!); + oauth2?.Invoke(__value0); } - else if (IsHmac) + else if (Hmac is { } __value1) { - hmac?.Invoke(Hmac!); + hmac?.Invoke(__value1); } - else if (IsBearer) + else if (Bearer is { } __value2) { - bearer?.Invoke(Bearer!); + bearer?.Invoke(__value2); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem.g.cs index f34acab5..da88cbc7 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem10.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem10.g.cs index a6f168d4..95ef7dd7 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem10.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem10.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem11.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem11.g.cs index a849bf8f..d7d06677 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem11.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem11.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem12.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem12.g.cs index 16488591..0175c21b 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem12.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem12.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem2.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem2.g.cs index 3b952737..185787ca 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem2.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem3.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem3.g.cs index 58cbcf64..a6780419 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem3.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem3.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem4.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem4.g.cs index 3658fe3a..5acff6fd 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem4.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem4.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem5.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem5.g.cs index 1b5670f4..29b58881 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem5.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem5.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem6.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem6.g.cs index aa9f0675..a013b7ee 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem6.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem6.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem7.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem7.g.cs index 372a5938..abbad844 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem7.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem7.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem8.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem8.g.cs index f0d70186..1a05c7e8 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem8.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem8.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem9.g.cs b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem9.g.cs index dafc0bd2..3afe3bb3 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem9.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.CredentialsItem9.g.cs @@ -47,8 +47,8 @@ public bool TryPickAnthropic( /// /// /// - public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => IsAnthropic - ? Anthropic! + public global::Vapi.CreateAnthropicCredentialDTO PickAnthropic() => Anthropic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anthropic' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickAnthropicBedrock( /// /// /// - public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => IsAnthropicBedrock - ? AnthropicBedrock! + public global::Vapi.CreateAnthropicBedrockCredentialDTO PickAnthropicBedrock() => AnthropicBedrock is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AnthropicBedrock' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickAnyscale( /// /// /// - public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => IsAnyscale - ? Anyscale! + public global::Vapi.CreateAnyscaleCredentialDTO PickAnyscale() => Anyscale is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Anyscale' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickAssemblyAi( /// /// /// - public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => IsAssemblyAi - ? AssemblyAi! + public global::Vapi.CreateAssemblyAICredentialDTO PickAssemblyAi() => AssemblyAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AssemblyAi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickAzure( /// /// /// - public global::Vapi.CreateAzureCredentialDTO PickAzure() => IsAzure - ? Azure! + public global::Vapi.CreateAzureCredentialDTO PickAzure() => Azure is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Azure' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickAzureOpenai( /// /// /// - public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => IsAzureOpenai - ? AzureOpenai! + public global::Vapi.CreateAzureOpenAICredentialDTO PickAzureOpenai() => AzureOpenai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AzureOpenai' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickByoSipTrunk( /// /// /// - public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => IsByoSipTrunk - ? ByoSipTrunk! + public global::Vapi.CreateByoSipTrunkCredentialDTO PickByoSipTrunk() => ByoSipTrunk is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoSipTrunk' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickCartesia( /// /// /// - public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => IsCartesia - ? Cartesia! + public global::Vapi.CreateCartesiaCredentialDTO PickCartesia() => Cartesia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cartesia' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickCerebras( /// /// /// - public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => IsCerebras - ? Cerebras! + public global::Vapi.CreateCerebrasCredentialDTO PickCerebras() => Cerebras is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cerebras' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickCloudflare( /// /// /// - public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => IsCloudflare - ? Cloudflare! + public global::Vapi.CreateCloudflareCredentialDTO PickCloudflare() => Cloudflare is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Cloudflare' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickCustomLlm( /// /// /// - public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => IsCustomLlm - ? CustomLlm! + public global::Vapi.CreateCustomLLMCredentialDTO PickCustomLlm() => CustomLlm is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomLlm' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickDeepgram( /// /// /// - public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => IsDeepgram - ? Deepgram! + public global::Vapi.CreateDeepgramCredentialDTO PickDeepgram() => Deepgram is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepgram' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickDeepinfra( /// /// /// - public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => IsDeepinfra - ? Deepinfra! + public global::Vapi.CreateDeepInfraCredentialDTO PickDeepinfra() => Deepinfra is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Deepinfra' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickDeepSeek( /// /// /// - public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => IsDeepSeek - ? DeepSeek! + public global::Vapi.CreateDeepSeekCredentialDTO PickDeepSeek() => DeepSeek is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'DeepSeek' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickElevenlabs( /// /// /// - public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => IsElevenlabs - ? Elevenlabs! + public global::Vapi.CreateElevenLabsCredentialDTO PickElevenlabs() => Elevenlabs is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Elevenlabs' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGcp( /// /// /// - public global::Vapi.CreateGcpCredentialDTO PickGcp() => IsGcp - ? Gcp! + public global::Vapi.CreateGcpCredentialDTO PickGcp() => Gcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gcp' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickGladia( /// /// /// - public global::Vapi.CreateGladiaCredentialDTO PickGladia() => IsGladia - ? Gladia! + public global::Vapi.CreateGladiaCredentialDTO PickGladia() => Gladia is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gladia' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevel( /// /// /// - public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => IsGohighlevel - ? Gohighlevel! + public global::Vapi.CreateGoHighLevelCredentialDTO PickGohighlevel() => Gohighlevel is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Gohighlevel' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGoogle( /// /// /// - public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => IsGoogle - ? Google! + public global::Vapi.CreateGoogleCredentialDTO PickGoogle() => Google is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Google' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGroq( /// /// /// - public global::Vapi.CreateGroqCredentialDTO PickGroq() => IsGroq - ? Groq! + public global::Vapi.CreateGroqCredentialDTO PickGroq() => Groq is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Groq' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickHume( /// /// /// - public global::Vapi.CreateHumeCredentialDTO PickHume() => IsHume - ? Hume! + public global::Vapi.CreateHumeCredentialDTO PickHume() => Hume is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Hume' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickInflectionAi( /// /// /// - public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => IsInflectionAi - ? InflectionAi! + public global::Vapi.CreateInflectionAICredentialDTO PickInflectionAi() => InflectionAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InflectionAi' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickLangfuse( /// /// /// - public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => IsLangfuse - ? Langfuse! + public global::Vapi.CreateLangfuseCredentialDTO PickLangfuse() => Langfuse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickLmnt( /// /// /// - public global::Vapi.CreateLmntCredentialDTO PickLmnt() => IsLmnt - ? Lmnt! + public global::Vapi.CreateLmntCredentialDTO PickLmnt() => Lmnt is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Lmnt' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickMake( /// /// /// - public global::Vapi.CreateMakeCredentialDTO PickMake() => IsMake - ? Make! + public global::Vapi.CreateMakeCredentialDTO PickMake() => Make is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Make' but the value was {ToString()}."); /// @@ -972,8 +972,8 @@ public bool TryPickMistral( /// /// /// - public global::Vapi.CreateMistralCredentialDTO PickMistral() => IsMistral - ? Mistral! + public global::Vapi.CreateMistralCredentialDTO PickMistral() => Mistral is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mistral' but the value was {ToString()}."); /// @@ -1009,8 +1009,8 @@ public bool TryPickNeuphonic( /// /// /// - public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => IsNeuphonic - ? Neuphonic! + public global::Vapi.CreateNeuphonicCredentialDTO PickNeuphonic() => Neuphonic is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Neuphonic' but the value was {ToString()}."); /// @@ -1046,8 +1046,8 @@ public bool TryPickOpenai( /// /// /// - public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => IsOpenai - ? Openai! + public global::Vapi.CreateOpenAICredentialDTO PickOpenai() => Openai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openai' but the value was {ToString()}."); /// @@ -1083,8 +1083,8 @@ public bool TryPickOpenrouter( /// /// /// - public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => IsOpenrouter - ? Openrouter! + public global::Vapi.CreateOpenRouterCredentialDTO PickOpenrouter() => Openrouter is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Openrouter' but the value was {ToString()}."); /// @@ -1120,8 +1120,8 @@ public bool TryPickPerplexityAi( /// /// /// - public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => IsPerplexityAi - ? PerplexityAi! + public global::Vapi.CreatePerplexityAICredentialDTO PickPerplexityAi() => PerplexityAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PerplexityAi' but the value was {ToString()}."); /// @@ -1157,8 +1157,8 @@ public bool TryPickPlayht( /// /// /// - public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => IsPlayht - ? Playht! + public global::Vapi.CreatePlayHTCredentialDTO PickPlayht() => Playht is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Playht' but the value was {ToString()}."); /// @@ -1194,8 +1194,8 @@ public bool TryPickRimeAi( /// /// /// - public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => IsRimeAi - ? RimeAi! + public global::Vapi.CreateRimeAICredentialDTO PickRimeAi() => RimeAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'RimeAi' but the value was {ToString()}."); /// @@ -1231,8 +1231,8 @@ public bool TryPickRunpod( /// /// /// - public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => IsRunpod - ? Runpod! + public global::Vapi.CreateRunpodCredentialDTO PickRunpod() => Runpod is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Runpod' but the value was {ToString()}."); /// @@ -1268,8 +1268,8 @@ public bool TryPickS3( /// /// /// - public global::Vapi.CreateS3CredentialDTO PickS3() => IsS3 - ? S3! + public global::Vapi.CreateS3CredentialDTO PickS3() => S3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); /// @@ -1305,8 +1305,8 @@ public bool TryPickS3Compatible( /// /// /// - public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => IsS3Compatible - ? S3Compatible! + public global::Vapi.CreateS3CompatibleCredentialDTO PickS3Compatible() => S3Compatible is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'S3Compatible' but the value was {ToString()}."); /// @@ -1342,8 +1342,8 @@ public bool TryPickSmallestAi( /// /// /// - public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => IsSmallestAi - ? SmallestAi! + public global::Vapi.CreateSmallestAICredentialDTO PickSmallestAi() => SmallestAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SmallestAi' but the value was {ToString()}."); /// @@ -1379,8 +1379,8 @@ public bool TryPickSpeechmatics( /// /// /// - public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => IsSpeechmatics - ? Speechmatics! + public global::Vapi.CreateSpeechmaticsCredentialDTO PickSpeechmatics() => Speechmatics is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speechmatics' but the value was {ToString()}."); /// @@ -1416,8 +1416,8 @@ public bool TryPickSoniox( /// /// /// - public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => IsSoniox - ? Soniox! + public global::Vapi.CreateSonioxCredentialDTO PickSoniox() => Soniox is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Soniox' but the value was {ToString()}."); /// @@ -1453,8 +1453,8 @@ public bool TryPickSupabase( /// /// /// - public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => IsSupabase - ? Supabase! + public global::Vapi.CreateSupabaseCredentialDTO PickSupabase() => Supabase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Supabase' but the value was {ToString()}."); /// @@ -1490,8 +1490,8 @@ public bool TryPickTavus( /// /// /// - public global::Vapi.CreateTavusCredentialDTO PickTavus() => IsTavus - ? Tavus! + public global::Vapi.CreateTavusCredentialDTO PickTavus() => Tavus is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Tavus' but the value was {ToString()}."); /// @@ -1527,8 +1527,8 @@ public bool TryPickTogetherAi( /// /// /// - public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => IsTogetherAi - ? TogetherAi! + public global::Vapi.CreateTogetherAICredentialDTO PickTogetherAi() => TogetherAi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TogetherAi' but the value was {ToString()}."); /// @@ -1564,8 +1564,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioCredentialDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -1601,8 +1601,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonageCredentialDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonageCredentialDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -1638,8 +1638,8 @@ public bool TryPickWebhook( /// /// /// - public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => IsWebhook - ? Webhook! + public global::Vapi.CreateWebhookCredentialDTO PickWebhook() => Webhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); /// @@ -1675,8 +1675,8 @@ public bool TryPickCustomCredential( /// /// /// - public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => IsCustomCredential - ? CustomCredential! + public global::Vapi.CreateCustomCredentialDTO PickCustomCredential() => CustomCredential is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CustomCredential' but the value was {ToString()}."); /// @@ -1712,8 +1712,8 @@ public bool TryPickXai( /// /// /// - public global::Vapi.CreateXAiCredentialDTO PickXai() => IsXai - ? Xai! + public global::Vapi.CreateXAiCredentialDTO PickXai() => Xai is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Xai' but the value was {ToString()}."); /// @@ -1749,8 +1749,8 @@ public bool TryPickMicrosoft( /// /// /// - public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => IsMicrosoft - ? Microsoft! + public global::Vapi.CreateMicrosoftCredentialDTO PickMicrosoft() => Microsoft is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Microsoft' but the value was {ToString()}."); /// @@ -1786,8 +1786,8 @@ public bool TryPickGoogleCalendarOauth2Client( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => IsGoogleCalendarOauth2Client - ? GoogleCalendarOauth2Client! + public global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO PickGoogleCalendarOauth2Client() => GoogleCalendarOauth2Client is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Client' but the value was {ToString()}."); /// @@ -1823,8 +1823,8 @@ public bool TryPickGoogleCalendarOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => IsGoogleCalendarOauth2Authorization - ? GoogleCalendarOauth2Authorization! + public global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO PickGoogleCalendarOauth2Authorization() => GoogleCalendarOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarOauth2Authorization' but the value was {ToString()}."); /// @@ -1860,8 +1860,8 @@ public bool TryPickGoogleSheetsOauth2Authorization( /// /// /// - public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => IsGoogleSheetsOauth2Authorization - ? GoogleSheetsOauth2Authorization! + public global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO PickGoogleSheetsOauth2Authorization() => GoogleSheetsOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsOauth2Authorization' but the value was {ToString()}."); /// @@ -1897,8 +1897,8 @@ public bool TryPickSlackOauth2Authorization( /// /// /// - public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => IsSlackOauth2Authorization - ? SlackOauth2Authorization! + public global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO PickSlackOauth2Authorization() => SlackOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackOauth2Authorization' but the value was {ToString()}."); /// @@ -1934,8 +1934,8 @@ public bool TryPickGhlOauth2Authorization( /// /// /// - public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => IsGhlOauth2Authorization - ? GhlOauth2Authorization! + public global::Vapi.CreateGoHighLevelMCPCredentialDTO PickGhlOauth2Authorization() => GhlOauth2Authorization is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GhlOauth2Authorization' but the value was {ToString()}."); /// @@ -1971,8 +1971,8 @@ public bool TryPickInworld( /// /// /// - public global::Vapi.CreateInworldCredentialDTO PickInworld() => IsInworld - ? Inworld! + public global::Vapi.CreateInworldCredentialDTO PickInworld() => Inworld is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Inworld' but the value was {ToString()}."); /// @@ -2008,8 +2008,8 @@ public bool TryPickMinimax( /// /// /// - public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => IsMinimax - ? Minimax! + public global::Vapi.CreateMinimaxCredentialDTO PickMinimax() => Minimax is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Minimax' but the value was {ToString()}."); /// @@ -2045,8 +2045,8 @@ public bool TryPickWellsaid( /// /// /// - public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => IsWellsaid - ? Wellsaid! + public global::Vapi.CreateWellSaidCredentialDTO PickWellsaid() => Wellsaid is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Wellsaid' but the value was {ToString()}."); /// @@ -2082,8 +2082,8 @@ public bool TryPickEmail( /// /// /// - public global::Vapi.CreateEmailCredentialDTO PickEmail() => IsEmail - ? Email! + public global::Vapi.CreateEmailCredentialDTO PickEmail() => Email is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Email' but the value was {ToString()}."); /// @@ -2119,8 +2119,8 @@ public bool TryPickSlackWebhook( /// /// /// - public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => IsSlackWebhook - ? SlackWebhook! + public global::Vapi.CreateSlackWebhookCredentialDTO PickSlackWebhook() => SlackWebhook is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackWebhook' but the value was {ToString()}."); /// /// @@ -3760,233 +3760,233 @@ public bool Validate() Validate(); } - if (IsAnthropic && anthropic != null) + if (Anthropic is { } __value0 && anthropic != null) { - return anthropic(Anthropic!); + return anthropic(__value0); } - else if (IsAnthropicBedrock && anthropicBedrock != null) + else if (AnthropicBedrock is { } __value1 && anthropicBedrock != null) { - return anthropicBedrock(AnthropicBedrock!); + return anthropicBedrock(__value1); } - else if (IsAnyscale && anyscale != null) + else if (Anyscale is { } __value2 && anyscale != null) { - return anyscale(Anyscale!); + return anyscale(__value2); } - else if (IsAssemblyAi && assemblyAi != null) + else if (AssemblyAi is { } __value3 && assemblyAi != null) { - return assemblyAi(AssemblyAi!); + return assemblyAi(__value3); } - else if (IsAzure && azure != null) + else if (Azure is { } __value4 && azure != null) { - return azure(Azure!); + return azure(__value4); } - else if (IsAzureOpenai && azureOpenai != null) + else if (AzureOpenai is { } __value5 && azureOpenai != null) { - return azureOpenai(AzureOpenai!); + return azureOpenai(__value5); } - else if (IsByoSipTrunk && byoSipTrunk != null) + else if (ByoSipTrunk is { } __value6 && byoSipTrunk != null) { - return byoSipTrunk(ByoSipTrunk!); + return byoSipTrunk(__value6); } - else if (IsCartesia && cartesia != null) + else if (Cartesia is { } __value7 && cartesia != null) { - return cartesia(Cartesia!); + return cartesia(__value7); } - else if (IsCerebras && cerebras != null) + else if (Cerebras is { } __value8 && cerebras != null) { - return cerebras(Cerebras!); + return cerebras(__value8); } - else if (IsCloudflare && cloudflare != null) + else if (Cloudflare is { } __value9 && cloudflare != null) { - return cloudflare(Cloudflare!); + return cloudflare(__value9); } - else if (IsCustomLlm && customLlm != null) + else if (CustomLlm is { } __value10 && customLlm != null) { - return customLlm(CustomLlm!); + return customLlm(__value10); } - else if (IsDeepgram && deepgram != null) + else if (Deepgram is { } __value11 && deepgram != null) { - return deepgram(Deepgram!); + return deepgram(__value11); } - else if (IsDeepinfra && deepinfra != null) + else if (Deepinfra is { } __value12 && deepinfra != null) { - return deepinfra(Deepinfra!); + return deepinfra(__value12); } - else if (IsDeepSeek && deepSeek != null) + else if (DeepSeek is { } __value13 && deepSeek != null) { - return deepSeek(DeepSeek!); + return deepSeek(__value13); } - else if (IsElevenlabs && elevenlabs != null) + else if (Elevenlabs is { } __value14 && elevenlabs != null) { - return elevenlabs(Elevenlabs!); + return elevenlabs(__value14); } - else if (IsGcp && gcp != null) + else if (Gcp is { } __value15 && gcp != null) { - return gcp(Gcp!); + return gcp(__value15); } - else if (IsGladia && gladia != null) + else if (Gladia is { } __value16 && gladia != null) { - return gladia(Gladia!); + return gladia(__value16); } - else if (IsGohighlevel && gohighlevel != null) + else if (Gohighlevel is { } __value17 && gohighlevel != null) { - return gohighlevel(Gohighlevel!); + return gohighlevel(__value17); } - else if (IsGoogle && google != null) + else if (Google is { } __value18 && google != null) { - return google(Google!); + return google(__value18); } - else if (IsGroq && groq != null) + else if (Groq is { } __value19 && groq != null) { - return groq(Groq!); + return groq(__value19); } - else if (IsHume && hume != null) + else if (Hume is { } __value20 && hume != null) { - return hume(Hume!); + return hume(__value20); } - else if (IsInflectionAi && inflectionAi != null) + else if (InflectionAi is { } __value21 && inflectionAi != null) { - return inflectionAi(InflectionAi!); + return inflectionAi(__value21); } - else if (IsLangfuse && langfuse != null) + else if (Langfuse is { } __value22 && langfuse != null) { - return langfuse(Langfuse!); + return langfuse(__value22); } - else if (IsLmnt && lmnt != null) + else if (Lmnt is { } __value23 && lmnt != null) { - return lmnt(Lmnt!); + return lmnt(__value23); } - else if (IsMake && make != null) + else if (Make is { } __value24 && make != null) { - return make(Make!); + return make(__value24); } - else if (IsMistral && mistral != null) + else if (Mistral is { } __value25 && mistral != null) { - return mistral(Mistral!); + return mistral(__value25); } - else if (IsNeuphonic && neuphonic != null) + else if (Neuphonic is { } __value26 && neuphonic != null) { - return neuphonic(Neuphonic!); + return neuphonic(__value26); } - else if (IsOpenai && openai != null) + else if (Openai is { } __value27 && openai != null) { - return openai(Openai!); + return openai(__value27); } - else if (IsOpenrouter && openrouter != null) + else if (Openrouter is { } __value28 && openrouter != null) { - return openrouter(Openrouter!); + return openrouter(__value28); } - else if (IsPerplexityAi && perplexityAi != null) + else if (PerplexityAi is { } __value29 && perplexityAi != null) { - return perplexityAi(PerplexityAi!); + return perplexityAi(__value29); } - else if (IsPlayht && playht != null) + else if (Playht is { } __value30 && playht != null) { - return playht(Playht!); + return playht(__value30); } - else if (IsRimeAi && rimeAi != null) + else if (RimeAi is { } __value31 && rimeAi != null) { - return rimeAi(RimeAi!); + return rimeAi(__value31); } - else if (IsRunpod && runpod != null) + else if (Runpod is { } __value32 && runpod != null) { - return runpod(Runpod!); + return runpod(__value32); } - else if (IsS3 && s3 != null) + else if (S3 is { } __value33 && s3 != null) { - return s3(S3!); + return s3(__value33); } - else if (IsS3Compatible && s3Compatible != null) + else if (S3Compatible is { } __value34 && s3Compatible != null) { - return s3Compatible(S3Compatible!); + return s3Compatible(__value34); } - else if (IsSmallestAi && smallestAi != null) + else if (SmallestAi is { } __value35 && smallestAi != null) { - return smallestAi(SmallestAi!); + return smallestAi(__value35); } - else if (IsSpeechmatics && speechmatics != null) + else if (Speechmatics is { } __value36 && speechmatics != null) { - return speechmatics(Speechmatics!); + return speechmatics(__value36); } - else if (IsSoniox && soniox != null) + else if (Soniox is { } __value37 && soniox != null) { - return soniox(Soniox!); + return soniox(__value37); } - else if (IsSupabase && supabase != null) + else if (Supabase is { } __value38 && supabase != null) { - return supabase(Supabase!); + return supabase(__value38); } - else if (IsTavus && tavus != null) + else if (Tavus is { } __value39 && tavus != null) { - return tavus(Tavus!); + return tavus(__value39); } - else if (IsTogetherAi && togetherAi != null) + else if (TogetherAi is { } __value40 && togetherAi != null) { - return togetherAi(TogetherAi!); + return togetherAi(__value40); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value41 && twilio != null) { - return twilio(Twilio!); + return twilio(__value41); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value42 && vonage != null) { - return vonage(Vonage!); + return vonage(__value42); } - else if (IsWebhook && webhook != null) + else if (Webhook is { } __value43 && webhook != null) { - return webhook(Webhook!); + return webhook(__value43); } - else if (IsCustomCredential && customCredential != null) + else if (CustomCredential is { } __value44 && customCredential != null) { - return customCredential(CustomCredential!); + return customCredential(__value44); } - else if (IsXai && xai != null) + else if (Xai is { } __value45 && xai != null) { - return xai(Xai!); + return xai(__value45); } - else if (IsMicrosoft && microsoft != null) + else if (Microsoft is { } __value46 && microsoft != null) { - return microsoft(Microsoft!); + return microsoft(__value46); } - else if (IsGoogleCalendarOauth2Client && googleCalendarOauth2Client != null) + else if (GoogleCalendarOauth2Client is { } __value47 && googleCalendarOauth2Client != null) { - return googleCalendarOauth2Client(GoogleCalendarOauth2Client!); + return googleCalendarOauth2Client(__value47); } - else if (IsGoogleCalendarOauth2Authorization && googleCalendarOauth2Authorization != null) + else if (GoogleCalendarOauth2Authorization is { } __value48 && googleCalendarOauth2Authorization != null) { - return googleCalendarOauth2Authorization(GoogleCalendarOauth2Authorization!); + return googleCalendarOauth2Authorization(__value48); } - else if (IsGoogleSheetsOauth2Authorization && googleSheetsOauth2Authorization != null) + else if (GoogleSheetsOauth2Authorization is { } __value49 && googleSheetsOauth2Authorization != null) { - return googleSheetsOauth2Authorization(GoogleSheetsOauth2Authorization!); + return googleSheetsOauth2Authorization(__value49); } - else if (IsSlackOauth2Authorization && slackOauth2Authorization != null) + else if (SlackOauth2Authorization is { } __value50 && slackOauth2Authorization != null) { - return slackOauth2Authorization(SlackOauth2Authorization!); + return slackOauth2Authorization(__value50); } - else if (IsGhlOauth2Authorization && ghlOauth2Authorization != null) + else if (GhlOauth2Authorization is { } __value51 && ghlOauth2Authorization != null) { - return ghlOauth2Authorization(GhlOauth2Authorization!); + return ghlOauth2Authorization(__value51); } - else if (IsInworld && inworld != null) + else if (Inworld is { } __value52 && inworld != null) { - return inworld(Inworld!); + return inworld(__value52); } - else if (IsMinimax && minimax != null) + else if (Minimax is { } __value53 && minimax != null) { - return minimax(Minimax!); + return minimax(__value53); } - else if (IsWellsaid && wellsaid != null) + else if (Wellsaid is { } __value54 && wellsaid != null) { - return wellsaid(Wellsaid!); + return wellsaid(__value54); } - else if (IsEmail && email != null) + else if (Email is { } __value55 && email != null) { - return email(Email!); + return email(__value55); } - else if (IsSlackWebhook && slackWebhook != null) + else if (SlackWebhook is { } __value56 && slackWebhook != null) { - return slackWebhook(SlackWebhook!); + return slackWebhook(__value56); } return default(TResult); @@ -4116,233 +4116,233 @@ public void Match( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } @@ -4414,233 +4414,233 @@ public void Switch( Validate(); } - if (IsAnthropic) + if (Anthropic is { } __value0) { - anthropic?.Invoke(Anthropic!); + anthropic?.Invoke(__value0); } - else if (IsAnthropicBedrock) + else if (AnthropicBedrock is { } __value1) { - anthropicBedrock?.Invoke(AnthropicBedrock!); + anthropicBedrock?.Invoke(__value1); } - else if (IsAnyscale) + else if (Anyscale is { } __value2) { - anyscale?.Invoke(Anyscale!); + anyscale?.Invoke(__value2); } - else if (IsAssemblyAi) + else if (AssemblyAi is { } __value3) { - assemblyAi?.Invoke(AssemblyAi!); + assemblyAi?.Invoke(__value3); } - else if (IsAzure) + else if (Azure is { } __value4) { - azure?.Invoke(Azure!); + azure?.Invoke(__value4); } - else if (IsAzureOpenai) + else if (AzureOpenai is { } __value5) { - azureOpenai?.Invoke(AzureOpenai!); + azureOpenai?.Invoke(__value5); } - else if (IsByoSipTrunk) + else if (ByoSipTrunk is { } __value6) { - byoSipTrunk?.Invoke(ByoSipTrunk!); + byoSipTrunk?.Invoke(__value6); } - else if (IsCartesia) + else if (Cartesia is { } __value7) { - cartesia?.Invoke(Cartesia!); + cartesia?.Invoke(__value7); } - else if (IsCerebras) + else if (Cerebras is { } __value8) { - cerebras?.Invoke(Cerebras!); + cerebras?.Invoke(__value8); } - else if (IsCloudflare) + else if (Cloudflare is { } __value9) { - cloudflare?.Invoke(Cloudflare!); + cloudflare?.Invoke(__value9); } - else if (IsCustomLlm) + else if (CustomLlm is { } __value10) { - customLlm?.Invoke(CustomLlm!); + customLlm?.Invoke(__value10); } - else if (IsDeepgram) + else if (Deepgram is { } __value11) { - deepgram?.Invoke(Deepgram!); + deepgram?.Invoke(__value11); } - else if (IsDeepinfra) + else if (Deepinfra is { } __value12) { - deepinfra?.Invoke(Deepinfra!); + deepinfra?.Invoke(__value12); } - else if (IsDeepSeek) + else if (DeepSeek is { } __value13) { - deepSeek?.Invoke(DeepSeek!); + deepSeek?.Invoke(__value13); } - else if (IsElevenlabs) + else if (Elevenlabs is { } __value14) { - elevenlabs?.Invoke(Elevenlabs!); + elevenlabs?.Invoke(__value14); } - else if (IsGcp) + else if (Gcp is { } __value15) { - gcp?.Invoke(Gcp!); + gcp?.Invoke(__value15); } - else if (IsGladia) + else if (Gladia is { } __value16) { - gladia?.Invoke(Gladia!); + gladia?.Invoke(__value16); } - else if (IsGohighlevel) + else if (Gohighlevel is { } __value17) { - gohighlevel?.Invoke(Gohighlevel!); + gohighlevel?.Invoke(__value17); } - else if (IsGoogle) + else if (Google is { } __value18) { - google?.Invoke(Google!); + google?.Invoke(__value18); } - else if (IsGroq) + else if (Groq is { } __value19) { - groq?.Invoke(Groq!); + groq?.Invoke(__value19); } - else if (IsHume) + else if (Hume is { } __value20) { - hume?.Invoke(Hume!); + hume?.Invoke(__value20); } - else if (IsInflectionAi) + else if (InflectionAi is { } __value21) { - inflectionAi?.Invoke(InflectionAi!); + inflectionAi?.Invoke(__value21); } - else if (IsLangfuse) + else if (Langfuse is { } __value22) { - langfuse?.Invoke(Langfuse!); + langfuse?.Invoke(__value22); } - else if (IsLmnt) + else if (Lmnt is { } __value23) { - lmnt?.Invoke(Lmnt!); + lmnt?.Invoke(__value23); } - else if (IsMake) + else if (Make is { } __value24) { - make?.Invoke(Make!); + make?.Invoke(__value24); } - else if (IsMistral) + else if (Mistral is { } __value25) { - mistral?.Invoke(Mistral!); + mistral?.Invoke(__value25); } - else if (IsNeuphonic) + else if (Neuphonic is { } __value26) { - neuphonic?.Invoke(Neuphonic!); + neuphonic?.Invoke(__value26); } - else if (IsOpenai) + else if (Openai is { } __value27) { - openai?.Invoke(Openai!); + openai?.Invoke(__value27); } - else if (IsOpenrouter) + else if (Openrouter is { } __value28) { - openrouter?.Invoke(Openrouter!); + openrouter?.Invoke(__value28); } - else if (IsPerplexityAi) + else if (PerplexityAi is { } __value29) { - perplexityAi?.Invoke(PerplexityAi!); + perplexityAi?.Invoke(__value29); } - else if (IsPlayht) + else if (Playht is { } __value30) { - playht?.Invoke(Playht!); + playht?.Invoke(__value30); } - else if (IsRimeAi) + else if (RimeAi is { } __value31) { - rimeAi?.Invoke(RimeAi!); + rimeAi?.Invoke(__value31); } - else if (IsRunpod) + else if (Runpod is { } __value32) { - runpod?.Invoke(Runpod!); + runpod?.Invoke(__value32); } - else if (IsS3) + else if (S3 is { } __value33) { - s3?.Invoke(S3!); + s3?.Invoke(__value33); } - else if (IsS3Compatible) + else if (S3Compatible is { } __value34) { - s3Compatible?.Invoke(S3Compatible!); + s3Compatible?.Invoke(__value34); } - else if (IsSmallestAi) + else if (SmallestAi is { } __value35) { - smallestAi?.Invoke(SmallestAi!); + smallestAi?.Invoke(__value35); } - else if (IsSpeechmatics) + else if (Speechmatics is { } __value36) { - speechmatics?.Invoke(Speechmatics!); + speechmatics?.Invoke(__value36); } - else if (IsSoniox) + else if (Soniox is { } __value37) { - soniox?.Invoke(Soniox!); + soniox?.Invoke(__value37); } - else if (IsSupabase) + else if (Supabase is { } __value38) { - supabase?.Invoke(Supabase!); + supabase?.Invoke(__value38); } - else if (IsTavus) + else if (Tavus is { } __value39) { - tavus?.Invoke(Tavus!); + tavus?.Invoke(__value39); } - else if (IsTogetherAi) + else if (TogetherAi is { } __value40) { - togetherAi?.Invoke(TogetherAi!); + togetherAi?.Invoke(__value40); } - else if (IsTwilio) + else if (Twilio is { } __value41) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value41); } - else if (IsVonage) + else if (Vonage is { } __value42) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value42); } - else if (IsWebhook) + else if (Webhook is { } __value43) { - webhook?.Invoke(Webhook!); + webhook?.Invoke(__value43); } - else if (IsCustomCredential) + else if (CustomCredential is { } __value44) { - customCredential?.Invoke(CustomCredential!); + customCredential?.Invoke(__value44); } - else if (IsXai) + else if (Xai is { } __value45) { - xai?.Invoke(Xai!); + xai?.Invoke(__value45); } - else if (IsMicrosoft) + else if (Microsoft is { } __value46) { - microsoft?.Invoke(Microsoft!); + microsoft?.Invoke(__value46); } - else if (IsGoogleCalendarOauth2Client) + else if (GoogleCalendarOauth2Client is { } __value47) { - googleCalendarOauth2Client?.Invoke(GoogleCalendarOauth2Client!); + googleCalendarOauth2Client?.Invoke(__value47); } - else if (IsGoogleCalendarOauth2Authorization) + else if (GoogleCalendarOauth2Authorization is { } __value48) { - googleCalendarOauth2Authorization?.Invoke(GoogleCalendarOauth2Authorization!); + googleCalendarOauth2Authorization?.Invoke(__value48); } - else if (IsGoogleSheetsOauth2Authorization) + else if (GoogleSheetsOauth2Authorization is { } __value49) { - googleSheetsOauth2Authorization?.Invoke(GoogleSheetsOauth2Authorization!); + googleSheetsOauth2Authorization?.Invoke(__value49); } - else if (IsSlackOauth2Authorization) + else if (SlackOauth2Authorization is { } __value50) { - slackOauth2Authorization?.Invoke(SlackOauth2Authorization!); + slackOauth2Authorization?.Invoke(__value50); } - else if (IsGhlOauth2Authorization) + else if (GhlOauth2Authorization is { } __value51) { - ghlOauth2Authorization?.Invoke(GhlOauth2Authorization!); + ghlOauth2Authorization?.Invoke(__value51); } - else if (IsInworld) + else if (Inworld is { } __value52) { - inworld?.Invoke(Inworld!); + inworld?.Invoke(__value52); } - else if (IsMinimax) + else if (Minimax is { } __value53) { - minimax?.Invoke(Minimax!); + minimax?.Invoke(__value53); } - else if (IsWellsaid) + else if (Wellsaid is { } __value54) { - wellsaid?.Invoke(Wellsaid!); + wellsaid?.Invoke(__value54); } - else if (IsEmail) + else if (Email is { } __value55) { - email?.Invoke(Email!); + email?.Invoke(__value55); } - else if (IsSlackWebhook) + else if (SlackWebhook is { } __value56) { - slackWebhook?.Invoke(SlackWebhook!); + slackWebhook?.Invoke(__value56); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerCreateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerCreateRequest.g.cs index 0af826e6..89948fa8 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerCreateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerCreateRequest.g.cs @@ -47,8 +47,8 @@ public bool TryPickBar( /// /// /// - public global::Vapi.CreateBarInsightFromCallTableDTO PickBar() => IsBar - ? Bar! + public global::Vapi.CreateBarInsightFromCallTableDTO PickBar() => Bar is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bar' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickPie( /// /// /// - public global::Vapi.CreatePieInsightFromCallTableDTO PickPie() => IsPie - ? Pie! + public global::Vapi.CreatePieInsightFromCallTableDTO PickPie() => Pie is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pie' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickLine( /// /// /// - public global::Vapi.CreateLineInsightFromCallTableDTO PickLine() => IsLine - ? Line! + public global::Vapi.CreateLineInsightFromCallTableDTO PickLine() => Line is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Line' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickText( /// /// /// - public global::Vapi.CreateTextInsightFromCallTableDTO PickText() => IsText - ? Text! + public global::Vapi.CreateTextInsightFromCallTableDTO PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsBar && bar != null) + if (Bar is { } __value0 && bar != null) { - return bar(Bar!); + return bar(__value0); } - else if (IsPie && pie != null) + else if (Pie is { } __value1 && pie != null) { - return pie(Pie!); + return pie(__value1); } - else if (IsLine && line != null) + else if (Line is { } __value2 && line != null) { - return line(Line!); + return line(__value2); } - else if (IsText && text != null) + else if (Text is { } __value3 && text != null) { - return text(Text!); + return text(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerCreateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerCreateResponse.g.cs index f33d36be..504d9394 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerCreateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerCreateResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickBar( /// /// /// - public global::Vapi.BarInsight PickBar() => IsBar - ? Bar! + public global::Vapi.BarInsight PickBar() => Bar is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bar' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickPie( /// /// /// - public global::Vapi.PieInsight PickPie() => IsPie - ? Pie! + public global::Vapi.PieInsight PickPie() => Pie is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pie' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickLine( /// /// /// - public global::Vapi.LineInsight PickLine() => IsLine - ? Line! + public global::Vapi.LineInsight PickLine() => Line is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Line' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickText( /// /// /// - public global::Vapi.TextInsight PickText() => IsText - ? Text! + public global::Vapi.TextInsight PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsBar && bar != null) + if (Bar is { } __value0 && bar != null) { - return bar(Bar!); + return bar(__value0); } - else if (IsPie && pie != null) + else if (Pie is { } __value1 && pie != null) { - return pie(Pie!); + return pie(__value1); } - else if (IsLine && line != null) + else if (Line is { } __value2 && line != null) { - return line(Line!); + return line(__value2); } - else if (IsText && text != null) + else if (Text is { } __value3 && text != null) { - return text(Text!); + return text(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerFindOneResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerFindOneResponse.g.cs index 61c6534f..247d2ce5 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerFindOneResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerFindOneResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickBar( /// /// /// - public global::Vapi.BarInsight PickBar() => IsBar - ? Bar! + public global::Vapi.BarInsight PickBar() => Bar is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bar' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickPie( /// /// /// - public global::Vapi.PieInsight PickPie() => IsPie - ? Pie! + public global::Vapi.PieInsight PickPie() => Pie is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pie' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickLine( /// /// /// - public global::Vapi.LineInsight PickLine() => IsLine - ? Line! + public global::Vapi.LineInsight PickLine() => Line is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Line' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickText( /// /// /// - public global::Vapi.TextInsight PickText() => IsText - ? Text! + public global::Vapi.TextInsight PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsBar && bar != null) + if (Bar is { } __value0 && bar != null) { - return bar(Bar!); + return bar(__value0); } - else if (IsPie && pie != null) + else if (Pie is { } __value1 && pie != null) { - return pie(Pie!); + return pie(__value1); } - else if (IsLine && line != null) + else if (Line is { } __value2 && line != null) { - return line(Line!); + return line(__value2); } - else if (IsText && text != null) + else if (Text is { } __value3 && text != null) { - return text(Text!); + return text(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerPreviewRequest.g.cs b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerPreviewRequest.g.cs index b1e0b520..20080128 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerPreviewRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerPreviewRequest.g.cs @@ -47,8 +47,8 @@ public bool TryPickBar( /// /// /// - public global::Vapi.CreateBarInsightFromCallTableDTO PickBar() => IsBar - ? Bar! + public global::Vapi.CreateBarInsightFromCallTableDTO PickBar() => Bar is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bar' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickPie( /// /// /// - public global::Vapi.CreatePieInsightFromCallTableDTO PickPie() => IsPie - ? Pie! + public global::Vapi.CreatePieInsightFromCallTableDTO PickPie() => Pie is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pie' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickLine( /// /// /// - public global::Vapi.CreateLineInsightFromCallTableDTO PickLine() => IsLine - ? Line! + public global::Vapi.CreateLineInsightFromCallTableDTO PickLine() => Line is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Line' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickText( /// /// /// - public global::Vapi.CreateTextInsightFromCallTableDTO PickText() => IsText - ? Text! + public global::Vapi.CreateTextInsightFromCallTableDTO PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsBar && bar != null) + if (Bar is { } __value0 && bar != null) { - return bar(Bar!); + return bar(__value0); } - else if (IsPie && pie != null) + else if (Pie is { } __value1 && pie != null) { - return pie(Pie!); + return pie(__value1); } - else if (IsLine && line != null) + else if (Line is { } __value2 && line != null) { - return line(Line!); + return line(__value2); } - else if (IsText && text != null) + else if (Text is { } __value3 && text != null) { - return text(Text!); + return text(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerRemoveResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerRemoveResponse.g.cs index 628919ce..cb070253 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerRemoveResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerRemoveResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickBar( /// /// /// - public global::Vapi.BarInsight PickBar() => IsBar - ? Bar! + public global::Vapi.BarInsight PickBar() => Bar is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bar' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickPie( /// /// /// - public global::Vapi.PieInsight PickPie() => IsPie - ? Pie! + public global::Vapi.PieInsight PickPie() => Pie is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pie' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickLine( /// /// /// - public global::Vapi.LineInsight PickLine() => IsLine - ? Line! + public global::Vapi.LineInsight PickLine() => Line is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Line' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickText( /// /// /// - public global::Vapi.TextInsight PickText() => IsText - ? Text! + public global::Vapi.TextInsight PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsBar && bar != null) + if (Bar is { } __value0 && bar != null) { - return bar(Bar!); + return bar(__value0); } - else if (IsPie && pie != null) + else if (Pie is { } __value1 && pie != null) { - return pie(Pie!); + return pie(__value1); } - else if (IsLine && line != null) + else if (Line is { } __value2 && line != null) { - return line(Line!); + return line(__value2); } - else if (IsText && text != null) + else if (Text is { } __value3 && text != null) { - return text(Text!); + return text(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerUpdateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerUpdateRequest.g.cs index b1094e06..ccf98760 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerUpdateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerUpdateRequest.g.cs @@ -47,8 +47,8 @@ public bool TryPickBar( /// /// /// - public global::Vapi.UpdateBarInsightFromCallTableDTO PickBar() => IsBar - ? Bar! + public global::Vapi.UpdateBarInsightFromCallTableDTO PickBar() => Bar is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bar' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickPie( /// /// /// - public global::Vapi.UpdatePieInsightFromCallTableDTO PickPie() => IsPie - ? Pie! + public global::Vapi.UpdatePieInsightFromCallTableDTO PickPie() => Pie is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pie' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickLine( /// /// /// - public global::Vapi.UpdateLineInsightFromCallTableDTO PickLine() => IsLine - ? Line! + public global::Vapi.UpdateLineInsightFromCallTableDTO PickLine() => Line is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Line' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickText( /// /// /// - public global::Vapi.UpdateTextInsightFromCallTableDTO PickText() => IsText - ? Text! + public global::Vapi.UpdateTextInsightFromCallTableDTO PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsBar && bar != null) + if (Bar is { } __value0 && bar != null) { - return bar(Bar!); + return bar(__value0); } - else if (IsPie && pie != null) + else if (Pie is { } __value1 && pie != null) { - return pie(Pie!); + return pie(__value1); } - else if (IsLine && line != null) + else if (Line is { } __value2 && line != null) { - return line(Line!); + return line(__value2); } - else if (IsText && text != null) + else if (Text is { } __value3 && text != null) { - return text(Text!); + return text(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerUpdateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerUpdateResponse.g.cs index 09bbfb09..d886dfa1 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.InsightControllerUpdateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.InsightControllerUpdateResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickBar( /// /// /// - public global::Vapi.BarInsight PickBar() => IsBar - ? Bar! + public global::Vapi.BarInsight PickBar() => Bar is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bar' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickPie( /// /// /// - public global::Vapi.PieInsight PickPie() => IsPie - ? Pie! + public global::Vapi.PieInsight PickPie() => Pie is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Pie' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickLine( /// /// /// - public global::Vapi.LineInsight PickLine() => IsLine - ? Line! + public global::Vapi.LineInsight PickLine() => Line is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Line' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickText( /// /// /// - public global::Vapi.TextInsight PickText() => IsText - ? Text! + public global::Vapi.TextInsight PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// /// @@ -315,21 +315,21 @@ public bool Validate() Validate(); } - if (IsBar && bar != null) + if (Bar is { } __value0 && bar != null) { - return bar(Bar!); + return bar(__value0); } - else if (IsPie && pie != null) + else if (Pie is { } __value1 && pie != null) { - return pie(Pie!); + return pie(__value1); } - else if (IsLine && line != null) + else if (Line is { } __value2 && line != null) { - return line(Line!); + return line(__value2); } - else if (IsText && text != null) + else if (Text is { } __value3 && text != null) { - return text(Text!); + return text(__value3); } return default(TResult); @@ -353,21 +353,21 @@ public void Match( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } @@ -386,21 +386,21 @@ public void Switch( Validate(); } - if (IsBar) + if (Bar is { } __value0) { - bar?.Invoke(Bar!); + bar?.Invoke(__value0); } - else if (IsPie) + else if (Pie is { } __value1) { - pie?.Invoke(Pie!); + pie?.Invoke(__value1); } - else if (IsLine) + else if (Line is { } __value2) { - line?.Invoke(Line!); + line?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerCreateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerCreateRequest.g.cs index e9ea9f1d..506094d4 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerCreateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerCreateRequest.g.cs @@ -47,8 +47,8 @@ public bool TryPickByoPhoneNumber( /// /// /// - public global::Vapi.CreateByoPhoneNumberDTO PickByoPhoneNumber() => IsByoPhoneNumber - ? ByoPhoneNumber! + public global::Vapi.CreateByoPhoneNumberDTO PickByoPhoneNumber() => ByoPhoneNumber is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoPhoneNumber' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.CreateTwilioPhoneNumberDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.CreateTwilioPhoneNumberDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.CreateVonagePhoneNumberDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.CreateVonagePhoneNumberDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVapi( /// /// /// - public global::Vapi.CreateVapiPhoneNumberDTO PickVapi() => IsVapi - ? Vapi! + public global::Vapi.CreateVapiPhoneNumberDTO PickVapi() => Vapi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vapi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickTelnyx( /// /// /// - public global::Vapi.CreateTelnyxPhoneNumberDTO PickTelnyx() => IsTelnyx - ? Telnyx! + public global::Vapi.CreateTelnyxPhoneNumberDTO PickTelnyx() => Telnyx is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Telnyx' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsByoPhoneNumber && byoPhoneNumber != null) + if (ByoPhoneNumber is { } __value0 && byoPhoneNumber != null) { - return byoPhoneNumber(ByoPhoneNumber!); + return byoPhoneNumber(__value0); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value1 && twilio != null) { - return twilio(Twilio!); + return twilio(__value1); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value2 && vonage != null) { - return vonage(Vonage!); + return vonage(__value2); } - else if (IsVapi && vapi != null) + else if (Vapi is { } __value3 && vapi != null) { - return vapi(Vapi!); + return vapi(__value3); } - else if (IsTelnyx && telnyx != null) + else if (Telnyx is { } __value4 && telnyx != null) { - return telnyx(Telnyx!); + return telnyx(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerCreateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerCreateResponse.g.cs index 128e0db3..c39b38a8 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerCreateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerCreateResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickByoPhoneNumber( /// /// /// - public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => IsByoPhoneNumber - ? ByoPhoneNumber! + public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => ByoPhoneNumber is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoPhoneNumber' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.TwilioPhoneNumber PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.TwilioPhoneNumber PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.VonagePhoneNumber PickVonage() => IsVonage - ? Vonage! + public global::Vapi.VonagePhoneNumber PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVapi( /// /// /// - public global::Vapi.VapiPhoneNumber PickVapi() => IsVapi - ? Vapi! + public global::Vapi.VapiPhoneNumber PickVapi() => Vapi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vapi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickTelnyx( /// /// /// - public global::Vapi.TelnyxPhoneNumber PickTelnyx() => IsTelnyx - ? Telnyx! + public global::Vapi.TelnyxPhoneNumber PickTelnyx() => Telnyx is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Telnyx' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsByoPhoneNumber && byoPhoneNumber != null) + if (ByoPhoneNumber is { } __value0 && byoPhoneNumber != null) { - return byoPhoneNumber(ByoPhoneNumber!); + return byoPhoneNumber(__value0); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value1 && twilio != null) { - return twilio(Twilio!); + return twilio(__value1); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value2 && vonage != null) { - return vonage(Vonage!); + return vonage(__value2); } - else if (IsVapi && vapi != null) + else if (Vapi is { } __value3 && vapi != null) { - return vapi(Vapi!); + return vapi(__value3); } - else if (IsTelnyx && telnyx != null) + else if (Telnyx is { } __value4 && telnyx != null) { - return telnyx(Telnyx!); + return telnyx(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerFindAllResponseItem.g.cs b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerFindAllResponseItem.g.cs index c8727ff1..96cae4e0 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerFindAllResponseItem.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerFindAllResponseItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickByoPhoneNumber( /// /// /// - public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => IsByoPhoneNumber - ? ByoPhoneNumber! + public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => ByoPhoneNumber is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoPhoneNumber' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.TwilioPhoneNumber PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.TwilioPhoneNumber PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.VonagePhoneNumber PickVonage() => IsVonage - ? Vonage! + public global::Vapi.VonagePhoneNumber PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVapi( /// /// /// - public global::Vapi.VapiPhoneNumber PickVapi() => IsVapi - ? Vapi! + public global::Vapi.VapiPhoneNumber PickVapi() => Vapi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vapi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickTelnyx( /// /// /// - public global::Vapi.TelnyxPhoneNumber PickTelnyx() => IsTelnyx - ? Telnyx! + public global::Vapi.TelnyxPhoneNumber PickTelnyx() => Telnyx is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Telnyx' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsByoPhoneNumber && byoPhoneNumber != null) + if (ByoPhoneNumber is { } __value0 && byoPhoneNumber != null) { - return byoPhoneNumber(ByoPhoneNumber!); + return byoPhoneNumber(__value0); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value1 && twilio != null) { - return twilio(Twilio!); + return twilio(__value1); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value2 && vonage != null) { - return vonage(Vonage!); + return vonage(__value2); } - else if (IsVapi && vapi != null) + else if (Vapi is { } __value3 && vapi != null) { - return vapi(Vapi!); + return vapi(__value3); } - else if (IsTelnyx && telnyx != null) + else if (Telnyx is { } __value4 && telnyx != null) { - return telnyx(Telnyx!); + return telnyx(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerFindOneResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerFindOneResponse.g.cs index 4c4a1a34..b60ca086 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerFindOneResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerFindOneResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickByoPhoneNumber( /// /// /// - public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => IsByoPhoneNumber - ? ByoPhoneNumber! + public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => ByoPhoneNumber is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoPhoneNumber' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.TwilioPhoneNumber PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.TwilioPhoneNumber PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.VonagePhoneNumber PickVonage() => IsVonage - ? Vonage! + public global::Vapi.VonagePhoneNumber PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVapi( /// /// /// - public global::Vapi.VapiPhoneNumber PickVapi() => IsVapi - ? Vapi! + public global::Vapi.VapiPhoneNumber PickVapi() => Vapi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vapi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickTelnyx( /// /// /// - public global::Vapi.TelnyxPhoneNumber PickTelnyx() => IsTelnyx - ? Telnyx! + public global::Vapi.TelnyxPhoneNumber PickTelnyx() => Telnyx is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Telnyx' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsByoPhoneNumber && byoPhoneNumber != null) + if (ByoPhoneNumber is { } __value0 && byoPhoneNumber != null) { - return byoPhoneNumber(ByoPhoneNumber!); + return byoPhoneNumber(__value0); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value1 && twilio != null) { - return twilio(Twilio!); + return twilio(__value1); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value2 && vonage != null) { - return vonage(Vonage!); + return vonage(__value2); } - else if (IsVapi && vapi != null) + else if (Vapi is { } __value3 && vapi != null) { - return vapi(Vapi!); + return vapi(__value3); } - else if (IsTelnyx && telnyx != null) + else if (Telnyx is { } __value4 && telnyx != null) { - return telnyx(Telnyx!); + return telnyx(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerRemoveResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerRemoveResponse.g.cs index eb3bbfba..d75c413c 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerRemoveResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerRemoveResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickByoPhoneNumber( /// /// /// - public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => IsByoPhoneNumber - ? ByoPhoneNumber! + public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => ByoPhoneNumber is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoPhoneNumber' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.TwilioPhoneNumber PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.TwilioPhoneNumber PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.VonagePhoneNumber PickVonage() => IsVonage - ? Vonage! + public global::Vapi.VonagePhoneNumber PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVapi( /// /// /// - public global::Vapi.VapiPhoneNumber PickVapi() => IsVapi - ? Vapi! + public global::Vapi.VapiPhoneNumber PickVapi() => Vapi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vapi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickTelnyx( /// /// /// - public global::Vapi.TelnyxPhoneNumber PickTelnyx() => IsTelnyx - ? Telnyx! + public global::Vapi.TelnyxPhoneNumber PickTelnyx() => Telnyx is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Telnyx' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsByoPhoneNumber && byoPhoneNumber != null) + if (ByoPhoneNumber is { } __value0 && byoPhoneNumber != null) { - return byoPhoneNumber(ByoPhoneNumber!); + return byoPhoneNumber(__value0); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value1 && twilio != null) { - return twilio(Twilio!); + return twilio(__value1); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value2 && vonage != null) { - return vonage(Vonage!); + return vonage(__value2); } - else if (IsVapi && vapi != null) + else if (Vapi is { } __value3 && vapi != null) { - return vapi(Vapi!); + return vapi(__value3); } - else if (IsTelnyx && telnyx != null) + else if (Telnyx is { } __value4 && telnyx != null) { - return telnyx(Telnyx!); + return telnyx(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerUpdateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerUpdateRequest.g.cs index 33116ffd..785d11d6 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerUpdateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerUpdateRequest.g.cs @@ -47,8 +47,8 @@ public bool TryPickByoPhoneNumber( /// /// /// - public global::Vapi.UpdateByoPhoneNumberDTO PickByoPhoneNumber() => IsByoPhoneNumber - ? ByoPhoneNumber! + public global::Vapi.UpdateByoPhoneNumberDTO PickByoPhoneNumber() => ByoPhoneNumber is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoPhoneNumber' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.UpdateTwilioPhoneNumberDTO PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.UpdateTwilioPhoneNumberDTO PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.UpdateVonagePhoneNumberDTO PickVonage() => IsVonage - ? Vonage! + public global::Vapi.UpdateVonagePhoneNumberDTO PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVapi( /// /// /// - public global::Vapi.UpdateVapiPhoneNumberDTO PickVapi() => IsVapi - ? Vapi! + public global::Vapi.UpdateVapiPhoneNumberDTO PickVapi() => Vapi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vapi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickTelnyx( /// /// /// - public global::Vapi.UpdateTelnyxPhoneNumberDTO PickTelnyx() => IsTelnyx - ? Telnyx! + public global::Vapi.UpdateTelnyxPhoneNumberDTO PickTelnyx() => Telnyx is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Telnyx' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsByoPhoneNumber && byoPhoneNumber != null) + if (ByoPhoneNumber is { } __value0 && byoPhoneNumber != null) { - return byoPhoneNumber(ByoPhoneNumber!); + return byoPhoneNumber(__value0); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value1 && twilio != null) { - return twilio(Twilio!); + return twilio(__value1); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value2 && vonage != null) { - return vonage(Vonage!); + return vonage(__value2); } - else if (IsVapi && vapi != null) + else if (Vapi is { } __value3 && vapi != null) { - return vapi(Vapi!); + return vapi(__value3); } - else if (IsTelnyx && telnyx != null) + else if (Telnyx is { } __value4 && telnyx != null) { - return telnyx(Telnyx!); + return telnyx(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerUpdateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerUpdateResponse.g.cs index 5ee95412..b78ea938 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerUpdateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.PhoneNumberControllerUpdateResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickByoPhoneNumber( /// /// /// - public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => IsByoPhoneNumber - ? ByoPhoneNumber! + public global::Vapi.ByoPhoneNumber PickByoPhoneNumber() => ByoPhoneNumber is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ByoPhoneNumber' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickTwilio( /// /// /// - public global::Vapi.TwilioPhoneNumber PickTwilio() => IsTwilio - ? Twilio! + public global::Vapi.TwilioPhoneNumber PickTwilio() => Twilio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Twilio' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickVonage( /// /// /// - public global::Vapi.VonagePhoneNumber PickVonage() => IsVonage - ? Vonage! + public global::Vapi.VonagePhoneNumber PickVonage() => Vonage is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vonage' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickVapi( /// /// /// - public global::Vapi.VapiPhoneNumber PickVapi() => IsVapi - ? Vapi! + public global::Vapi.VapiPhoneNumber PickVapi() => Vapi is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Vapi' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickTelnyx( /// /// /// - public global::Vapi.TelnyxPhoneNumber PickTelnyx() => IsTelnyx - ? Telnyx! + public global::Vapi.TelnyxPhoneNumber PickTelnyx() => Telnyx is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Telnyx' but the value was {ToString()}."); /// /// @@ -380,25 +380,25 @@ public bool Validate() Validate(); } - if (IsByoPhoneNumber && byoPhoneNumber != null) + if (ByoPhoneNumber is { } __value0 && byoPhoneNumber != null) { - return byoPhoneNumber(ByoPhoneNumber!); + return byoPhoneNumber(__value0); } - else if (IsTwilio && twilio != null) + else if (Twilio is { } __value1 && twilio != null) { - return twilio(Twilio!); + return twilio(__value1); } - else if (IsVonage && vonage != null) + else if (Vonage is { } __value2 && vonage != null) { - return vonage(Vonage!); + return vonage(__value2); } - else if (IsVapi && vapi != null) + else if (Vapi is { } __value3 && vapi != null) { - return vapi(Vapi!); + return vapi(__value3); } - else if (IsTelnyx && telnyx != null) + else if (Telnyx is { } __value4 && telnyx != null) { - return telnyx(Telnyx!); + return telnyx(__value4); } return default(TResult); @@ -424,25 +424,25 @@ public void Match( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } @@ -462,25 +462,25 @@ public void Switch( Validate(); } - if (IsByoPhoneNumber) + if (ByoPhoneNumber is { } __value0) { - byoPhoneNumber?.Invoke(ByoPhoneNumber!); + byoPhoneNumber?.Invoke(__value0); } - else if (IsTwilio) + else if (Twilio is { } __value1) { - twilio?.Invoke(Twilio!); + twilio?.Invoke(__value1); } - else if (IsVonage) + else if (Vonage is { } __value2) { - vonage?.Invoke(Vonage!); + vonage?.Invoke(__value2); } - else if (IsVapi) + else if (Vapi is { } __value3) { - vapi?.Invoke(Vapi!); + vapi?.Invoke(__value3); } - else if (IsTelnyx) + else if (Telnyx is { } __value4) { - telnyx?.Invoke(Telnyx!); + telnyx?.Invoke(__value4); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.RecordingConsentPlan.g.cs b/src/libs/Vapi/Generated/Vapi.Models.RecordingConsentPlan.g.cs index 37cdbcd5..4f61723a 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.RecordingConsentPlan.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.RecordingConsentPlan.g.cs @@ -47,8 +47,8 @@ public bool TryPickStayOnLine( /// /// /// - public global::Vapi.RecordingConsentPlanStayOnLine PickStayOnLine() => IsStayOnLine - ? StayOnLine! + public global::Vapi.RecordingConsentPlanStayOnLine PickStayOnLine() => StayOnLine is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StayOnLine' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickVerbal( /// /// /// - public global::Vapi.RecordingConsentPlanVerbal PickVerbal() => IsVerbal - ? Verbal! + public global::Vapi.RecordingConsentPlanVerbal PickVerbal() => Verbal is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Verbal' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsStayOnLine && stayOnLine != null) + if (StayOnLine is { } __value0 && stayOnLine != null) { - return stayOnLine(StayOnLine!); + return stayOnLine(__value0); } - else if (IsVerbal && verbal != null) + else if (Verbal is { } __value1 && verbal != null) { - return verbal(Verbal!); + return verbal(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsStayOnLine) + if (StayOnLine is { } __value0) { - stayOnLine?.Invoke(StayOnLine!); + stayOnLine?.Invoke(__value0); } - else if (IsVerbal) + else if (Verbal is { } __value1) { - verbal?.Invoke(Verbal!); + verbal?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsStayOnLine) + if (StayOnLine is { } __value0) { - stayOnLine?.Invoke(StayOnLine!); + stayOnLine?.Invoke(__value0); } - else if (IsVerbal) + else if (Verbal is { } __value1) { - verbal?.Invoke(Verbal!); + verbal?.Invoke(__value1); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.Timing.g.cs b/src/libs/Vapi/Generated/Vapi.Models.Timing.g.cs index 71f4a758..8dadb4e6 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.Timing.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.Timing.g.cs @@ -59,8 +59,8 @@ public bool TryPickWordAlignment( /// /// /// - public global::Vapi.AssistantSpeechWordAlignmentTiming PickWordAlignment() => IsWordAlignment - ? WordAlignment! + public global::Vapi.AssistantSpeechWordAlignmentTiming PickWordAlignment() => WordAlignment is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WordAlignment' but the value was {ToString()}."); /// @@ -96,8 +96,8 @@ public bool TryPickWordProgress( /// /// /// - public global::Vapi.AssistantSpeechWordProgressTiming PickWordProgress() => IsWordProgress - ? WordProgress! + public global::Vapi.AssistantSpeechWordProgressTiming PickWordProgress() => WordProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WordProgress' but the value was {ToString()}."); /// /// @@ -197,13 +197,13 @@ public bool Validate() Validate(); } - if (IsWordAlignment && wordAlignment != null) + if (WordAlignment is { } __value0 && wordAlignment != null) { - return wordAlignment(WordAlignment!); + return wordAlignment(__value0); } - else if (IsWordProgress && wordProgress != null) + else if (WordProgress is { } __value1 && wordProgress != null) { - return wordProgress(WordProgress!); + return wordProgress(__value1); } return default(TResult); @@ -223,13 +223,13 @@ public void Match( Validate(); } - if (IsWordAlignment) + if (WordAlignment is { } __value0) { - wordAlignment?.Invoke(WordAlignment!); + wordAlignment?.Invoke(__value0); } - else if (IsWordProgress) + else if (WordProgress is { } __value1) { - wordProgress?.Invoke(WordProgress!); + wordProgress?.Invoke(__value1); } } @@ -246,13 +246,13 @@ public void Switch( Validate(); } - if (IsWordAlignment) + if (WordAlignment is { } __value0) { - wordAlignment?.Invoke(WordAlignment!); + wordAlignment?.Invoke(__value0); } - else if (IsWordProgress) + else if (WordProgress is { } __value1) { - wordProgress?.Invoke(WordProgress!); + wordProgress?.Invoke(__value1); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.Timing2.g.cs b/src/libs/Vapi/Generated/Vapi.Models.Timing2.g.cs index c6620d83..953dadaf 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.Timing2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.Timing2.g.cs @@ -59,8 +59,8 @@ public bool TryPickWordAlignment( /// /// /// - public global::Vapi.AssistantSpeechWordAlignmentTiming PickWordAlignment() => IsWordAlignment - ? WordAlignment! + public global::Vapi.AssistantSpeechWordAlignmentTiming PickWordAlignment() => WordAlignment is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WordAlignment' but the value was {ToString()}."); /// @@ -96,8 +96,8 @@ public bool TryPickWordProgress( /// /// /// - public global::Vapi.AssistantSpeechWordProgressTiming PickWordProgress() => IsWordProgress - ? WordProgress! + public global::Vapi.AssistantSpeechWordProgressTiming PickWordProgress() => WordProgress is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WordProgress' but the value was {ToString()}."); /// /// @@ -197,13 +197,13 @@ public bool Validate() Validate(); } - if (IsWordAlignment && wordAlignment != null) + if (WordAlignment is { } __value0 && wordAlignment != null) { - return wordAlignment(WordAlignment!); + return wordAlignment(__value0); } - else if (IsWordProgress && wordProgress != null) + else if (WordProgress is { } __value1 && wordProgress != null) { - return wordProgress(WordProgress!); + return wordProgress(__value1); } return default(TResult); @@ -223,13 +223,13 @@ public void Match( Validate(); } - if (IsWordAlignment) + if (WordAlignment is { } __value0) { - wordAlignment?.Invoke(WordAlignment!); + wordAlignment?.Invoke(__value0); } - else if (IsWordProgress) + else if (WordProgress is { } __value1) { - wordProgress?.Invoke(WordProgress!); + wordProgress?.Invoke(__value1); } } @@ -246,13 +246,13 @@ public void Switch( Validate(); } - if (IsWordAlignment) + if (WordAlignment is { } __value0) { - wordAlignment?.Invoke(WordAlignment!); + wordAlignment?.Invoke(__value0); } - else if (IsWordProgress) + else if (WordProgress is { } __value1) { - wordProgress?.Invoke(WordProgress!); + wordProgress?.Invoke(__value1); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerCreateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerCreateRequest.g.cs index 9b3f1d43..10ea320d 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerCreateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerCreateRequest.g.cs @@ -47,8 +47,8 @@ public bool TryPickApiRequest( /// /// /// - public global::Vapi.CreateApiRequestToolDTO PickApiRequest() => IsApiRequest - ? ApiRequest! + public global::Vapi.CreateApiRequestToolDTO PickApiRequest() => ApiRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApiRequest' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCode( /// /// /// - public global::Vapi.CreateCodeToolDTO PickCode() => IsCode - ? Code! + public global::Vapi.CreateCodeToolDTO PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickDtmf( /// /// /// - public global::Vapi.CreateDtmfToolDTO PickDtmf() => IsDtmf - ? Dtmf! + public global::Vapi.CreateDtmfToolDTO PickDtmf() => Dtmf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Dtmf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickEndCall( /// /// /// - public global::Vapi.CreateEndCallToolDTO PickEndCall() => IsEndCall - ? EndCall! + public global::Vapi.CreateEndCallToolDTO PickEndCall() => EndCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EndCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickFunction( /// /// /// - public global::Vapi.CreateFunctionToolDTO PickFunction() => IsFunction - ? Function! + public global::Vapi.CreateFunctionToolDTO PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickTransferCall( /// /// /// - public global::Vapi.CreateTransferCallToolDTO PickTransferCall() => IsTransferCall - ? TransferCall! + public global::Vapi.CreateTransferCallToolDTO PickTransferCall() => TransferCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransferCall' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickHandoff( /// /// /// - public global::Vapi.CreateHandoffToolDTO PickHandoff() => IsHandoff - ? Handoff! + public global::Vapi.CreateHandoffToolDTO PickHandoff() => Handoff is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Handoff' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickBash( /// /// /// - public global::Vapi.CreateBashToolDTO PickBash() => IsBash - ? Bash! + public global::Vapi.CreateBashToolDTO PickBash() => Bash is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bash' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickComputer( /// /// /// - public global::Vapi.CreateComputerToolDTO PickComputer() => IsComputer - ? Computer! + public global::Vapi.CreateComputerToolDTO PickComputer() => Computer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickTextEditor( /// /// /// - public global::Vapi.CreateTextEditorToolDTO PickTextEditor() => IsTextEditor - ? TextEditor! + public global::Vapi.CreateTextEditorToolDTO PickTextEditor() => TextEditor is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextEditor' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickQuery( /// /// /// - public global::Vapi.CreateQueryToolDTO PickQuery() => IsQuery - ? Query! + public global::Vapi.CreateQueryToolDTO PickQuery() => Query is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Query' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickGoogleCalendarEventCreate( /// /// /// - public global::Vapi.CreateGoogleCalendarCreateEventToolDTO PickGoogleCalendarEventCreate() => IsGoogleCalendarEventCreate - ? GoogleCalendarEventCreate! + public global::Vapi.CreateGoogleCalendarCreateEventToolDTO PickGoogleCalendarEventCreate() => GoogleCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarEventCreate' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickGoogleSheetsRowAppend( /// /// /// - public global::Vapi.CreateGoogleSheetsRowAppendToolDTO PickGoogleSheetsRowAppend() => IsGoogleSheetsRowAppend - ? GoogleSheetsRowAppend! + public global::Vapi.CreateGoogleSheetsRowAppendToolDTO PickGoogleSheetsRowAppend() => GoogleSheetsRowAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsRowAppend' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickGoogleCalendarAvailabilityCheck( /// /// /// - public global::Vapi.CreateGoogleCalendarCheckAvailabilityToolDTO PickGoogleCalendarAvailabilityCheck() => IsGoogleCalendarAvailabilityCheck - ? GoogleCalendarAvailabilityCheck! + public global::Vapi.CreateGoogleCalendarCheckAvailabilityToolDTO PickGoogleCalendarAvailabilityCheck() => GoogleCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickSlackMessageSend( /// /// /// - public global::Vapi.CreateSlackSendMessageToolDTO PickSlackMessageSend() => IsSlackMessageSend - ? SlackMessageSend! + public global::Vapi.CreateSlackSendMessageToolDTO PickSlackMessageSend() => SlackMessageSend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackMessageSend' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickSms( /// /// /// - public global::Vapi.CreateSmsToolDTO PickSms() => IsSms - ? Sms! + public global::Vapi.CreateSmsToolDTO PickSms() => Sms is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Sms' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickMcp( /// /// /// - public global::Vapi.CreateMcpToolDTO PickMcp() => IsMcp - ? Mcp! + public global::Vapi.CreateMcpToolDTO PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickGohighlevelCalendarAvailabilityCheck( /// /// /// - public global::Vapi.CreateGoHighLevelCalendarAvailabilityToolDTO PickGohighlevelCalendarAvailabilityCheck() => IsGohighlevelCalendarAvailabilityCheck - ? GohighlevelCalendarAvailabilityCheck! + public global::Vapi.CreateGoHighLevelCalendarAvailabilityToolDTO PickGohighlevelCalendarAvailabilityCheck() => GohighlevelCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGohighlevelCalendarEventCreate( /// /// /// - public global::Vapi.CreateGoHighLevelCalendarEventCreateToolDTO PickGohighlevelCalendarEventCreate() => IsGohighlevelCalendarEventCreate - ? GohighlevelCalendarEventCreate! + public global::Vapi.CreateGoHighLevelCalendarEventCreateToolDTO PickGohighlevelCalendarEventCreate() => GohighlevelCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarEventCreate' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGohighlevelContactCreate( /// /// /// - public global::Vapi.CreateGoHighLevelContactCreateToolDTO PickGohighlevelContactCreate() => IsGohighlevelContactCreate - ? GohighlevelContactCreate! + public global::Vapi.CreateGoHighLevelContactCreateToolDTO PickGohighlevelContactCreate() => GohighlevelContactCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactCreate' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickGohighlevelContactGet( /// /// /// - public global::Vapi.CreateGoHighLevelContactGetToolDTO PickGohighlevelContactGet() => IsGohighlevelContactGet - ? GohighlevelContactGet! + public global::Vapi.CreateGoHighLevelContactGetToolDTO PickGohighlevelContactGet() => GohighlevelContactGet is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactGet' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickSipRequest( /// /// /// - public global::Vapi.CreateSipRequestToolDTO PickSipRequest() => IsSipRequest - ? SipRequest! + public global::Vapi.CreateSipRequestToolDTO PickSipRequest() => SipRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SipRequest' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickVoicemail( /// /// /// - public global::Vapi.CreateVoicemailToolDTO PickVoicemail() => IsVoicemail - ? Voicemail! + public global::Vapi.CreateVoicemailToolDTO PickVoicemail() => Voicemail is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Voicemail' but the value was {ToString()}."); /// /// @@ -1550,97 +1550,97 @@ public bool Validate() Validate(); } - if (IsApiRequest && apiRequest != null) + if (ApiRequest is { } __value0 && apiRequest != null) { - return apiRequest(ApiRequest!); + return apiRequest(__value0); } - else if (IsCode && code != null) + else if (Code is { } __value1 && code != null) { - return code(Code!); + return code(__value1); } - else if (IsDtmf && dtmf != null) + else if (Dtmf is { } __value2 && dtmf != null) { - return dtmf(Dtmf!); + return dtmf(__value2); } - else if (IsEndCall && endCall != null) + else if (EndCall is { } __value3 && endCall != null) { - return endCall(EndCall!); + return endCall(__value3); } - else if (IsFunction && function != null) + else if (Function is { } __value4 && function != null) { - return function(Function!); + return function(__value4); } - else if (IsTransferCall && transferCall != null) + else if (TransferCall is { } __value5 && transferCall != null) { - return transferCall(TransferCall!); + return transferCall(__value5); } - else if (IsHandoff && handoff != null) + else if (Handoff is { } __value6 && handoff != null) { - return handoff(Handoff!); + return handoff(__value6); } - else if (IsBash && bash != null) + else if (Bash is { } __value7 && bash != null) { - return bash(Bash!); + return bash(__value7); } - else if (IsComputer && computer != null) + else if (Computer is { } __value8 && computer != null) { - return computer(Computer!); + return computer(__value8); } - else if (IsTextEditor && textEditor != null) + else if (TextEditor is { } __value9 && textEditor != null) { - return textEditor(TextEditor!); + return textEditor(__value9); } - else if (IsQuery && query != null) + else if (Query is { } __value10 && query != null) { - return query(Query!); + return query(__value10); } - else if (IsGoogleCalendarEventCreate && googleCalendarEventCreate != null) + else if (GoogleCalendarEventCreate is { } __value11 && googleCalendarEventCreate != null) { - return googleCalendarEventCreate(GoogleCalendarEventCreate!); + return googleCalendarEventCreate(__value11); } - else if (IsGoogleSheetsRowAppend && googleSheetsRowAppend != null) + else if (GoogleSheetsRowAppend is { } __value12 && googleSheetsRowAppend != null) { - return googleSheetsRowAppend(GoogleSheetsRowAppend!); + return googleSheetsRowAppend(__value12); } - else if (IsGoogleCalendarAvailabilityCheck && googleCalendarAvailabilityCheck != null) + else if (GoogleCalendarAvailabilityCheck is { } __value13 && googleCalendarAvailabilityCheck != null) { - return googleCalendarAvailabilityCheck(GoogleCalendarAvailabilityCheck!); + return googleCalendarAvailabilityCheck(__value13); } - else if (IsSlackMessageSend && slackMessageSend != null) + else if (SlackMessageSend is { } __value14 && slackMessageSend != null) { - return slackMessageSend(SlackMessageSend!); + return slackMessageSend(__value14); } - else if (IsSms && sms != null) + else if (Sms is { } __value15 && sms != null) { - return sms(Sms!); + return sms(__value15); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value16 && mcp != null) { - return mcp(Mcp!); + return mcp(__value16); } - else if (IsGohighlevelCalendarAvailabilityCheck && gohighlevelCalendarAvailabilityCheck != null) + else if (GohighlevelCalendarAvailabilityCheck is { } __value17 && gohighlevelCalendarAvailabilityCheck != null) { - return gohighlevelCalendarAvailabilityCheck(GohighlevelCalendarAvailabilityCheck!); + return gohighlevelCalendarAvailabilityCheck(__value17); } - else if (IsGohighlevelCalendarEventCreate && gohighlevelCalendarEventCreate != null) + else if (GohighlevelCalendarEventCreate is { } __value18 && gohighlevelCalendarEventCreate != null) { - return gohighlevelCalendarEventCreate(GohighlevelCalendarEventCreate!); + return gohighlevelCalendarEventCreate(__value18); } - else if (IsGohighlevelContactCreate && gohighlevelContactCreate != null) + else if (GohighlevelContactCreate is { } __value19 && gohighlevelContactCreate != null) { - return gohighlevelContactCreate(GohighlevelContactCreate!); + return gohighlevelContactCreate(__value19); } - else if (IsGohighlevelContactGet && gohighlevelContactGet != null) + else if (GohighlevelContactGet is { } __value20 && gohighlevelContactGet != null) { - return gohighlevelContactGet(GohighlevelContactGet!); + return gohighlevelContactGet(__value20); } - else if (IsSipRequest && sipRequest != null) + else if (SipRequest is { } __value21 && sipRequest != null) { - return sipRequest(SipRequest!); + return sipRequest(__value21); } - else if (IsVoicemail && voicemail != null) + else if (Voicemail is { } __value22 && voicemail != null) { - return voicemail(Voicemail!); + return voicemail(__value22); } return default(TResult); @@ -1702,97 +1702,97 @@ public void Match( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsTransferCall) + else if (TransferCall is { } __value5) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value5); } - else if (IsHandoff) + else if (Handoff is { } __value6) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value6); } - else if (IsBash) + else if (Bash is { } __value7) { - bash?.Invoke(Bash!); + bash?.Invoke(__value7); } - else if (IsComputer) + else if (Computer is { } __value8) { - computer?.Invoke(Computer!); + computer?.Invoke(__value8); } - else if (IsTextEditor) + else if (TextEditor is { } __value9) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value9); } - else if (IsQuery) + else if (Query is { } __value10) { - query?.Invoke(Query!); + query?.Invoke(__value10); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value11) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value11); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value12) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value12); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value13) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value13); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value14) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value14); } - else if (IsSms) + else if (Sms is { } __value15) { - sms?.Invoke(Sms!); + sms?.Invoke(__value15); } - else if (IsMcp) + else if (Mcp is { } __value16) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value16); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value17) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value17); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value18) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value18); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value19) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value19); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value20) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value20); } - else if (IsSipRequest) + else if (SipRequest is { } __value21) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value21); } - else if (IsVoicemail) + else if (Voicemail is { } __value22) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value22); } } @@ -1830,97 +1830,97 @@ public void Switch( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsTransferCall) + else if (TransferCall is { } __value5) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value5); } - else if (IsHandoff) + else if (Handoff is { } __value6) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value6); } - else if (IsBash) + else if (Bash is { } __value7) { - bash?.Invoke(Bash!); + bash?.Invoke(__value7); } - else if (IsComputer) + else if (Computer is { } __value8) { - computer?.Invoke(Computer!); + computer?.Invoke(__value8); } - else if (IsTextEditor) + else if (TextEditor is { } __value9) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value9); } - else if (IsQuery) + else if (Query is { } __value10) { - query?.Invoke(Query!); + query?.Invoke(__value10); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value11) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value11); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value12) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value12); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value13) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value13); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value14) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value14); } - else if (IsSms) + else if (Sms is { } __value15) { - sms?.Invoke(Sms!); + sms?.Invoke(__value15); } - else if (IsMcp) + else if (Mcp is { } __value16) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value16); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value17) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value17); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value18) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value18); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value19) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value19); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value20) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value20); } - else if (IsSipRequest) + else if (SipRequest is { } __value21) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value21); } - else if (IsVoicemail) + else if (Voicemail is { } __value22) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value22); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerCreateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerCreateResponse.g.cs index 45412293..8305c1ef 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerCreateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerCreateResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickApiRequest( /// /// /// - public global::Vapi.ApiRequestTool PickApiRequest() => IsApiRequest - ? ApiRequest! + public global::Vapi.ApiRequestTool PickApiRequest() => ApiRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApiRequest' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCode( /// /// /// - public global::Vapi.CodeTool PickCode() => IsCode - ? Code! + public global::Vapi.CodeTool PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickDtmf( /// /// /// - public global::Vapi.DtmfTool PickDtmf() => IsDtmf - ? Dtmf! + public global::Vapi.DtmfTool PickDtmf() => Dtmf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Dtmf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickEndCall( /// /// /// - public global::Vapi.EndCallTool PickEndCall() => IsEndCall - ? EndCall! + public global::Vapi.EndCallTool PickEndCall() => EndCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EndCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickFunction( /// /// /// - public global::Vapi.FunctionTool PickFunction() => IsFunction - ? Function! + public global::Vapi.FunctionTool PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickKnowledgeBase( /// /// /// - public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => IsKnowledgeBase - ? KnowledgeBase! + public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => KnowledgeBase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'KnowledgeBase' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickGhl( /// /// /// - public global::Vapi.GhlTool PickGhl() => IsGhl - ? Ghl! + public global::Vapi.GhlTool PickGhl() => Ghl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Ghl' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickTransferCall( /// /// /// - public global::Vapi.TransferCallTool PickTransferCall() => IsTransferCall - ? TransferCall! + public global::Vapi.TransferCallTool PickTransferCall() => TransferCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransferCall' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickHandoff( /// /// /// - public global::Vapi.HandoffTool PickHandoff() => IsHandoff - ? Handoff! + public global::Vapi.HandoffTool PickHandoff() => Handoff is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Handoff' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickBash( /// /// /// - public global::Vapi.BashTool PickBash() => IsBash - ? Bash! + public global::Vapi.BashTool PickBash() => Bash is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bash' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickComputer( /// /// /// - public global::Vapi.ComputerTool PickComputer() => IsComputer - ? Computer! + public global::Vapi.ComputerTool PickComputer() => Computer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickTextEditor( /// /// /// - public global::Vapi.TextEditorTool PickTextEditor() => IsTextEditor - ? TextEditor! + public global::Vapi.TextEditorTool PickTextEditor() => TextEditor is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextEditor' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickQuery( /// /// /// - public global::Vapi.QueryTool PickQuery() => IsQuery - ? Query! + public global::Vapi.QueryTool PickQuery() => Query is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Query' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickGoogleCalendarEventCreate( /// /// /// - public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => IsGoogleCalendarEventCreate - ? GoogleCalendarEventCreate! + public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => GoogleCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarEventCreate' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickGoogleSheetsRowAppend( /// /// /// - public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => IsGoogleSheetsRowAppend - ? GoogleSheetsRowAppend! + public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => GoogleSheetsRowAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsRowAppend' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGoogleCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => IsGoogleCalendarAvailabilityCheck - ? GoogleCalendarAvailabilityCheck! + public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => GoogleCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickSlackMessageSend( /// /// /// - public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => IsSlackMessageSend - ? SlackMessageSend! + public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => SlackMessageSend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackMessageSend' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickSms( /// /// /// - public global::Vapi.SmsTool PickSms() => IsSms - ? Sms! + public global::Vapi.SmsTool PickSms() => Sms is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Sms' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickMcp( /// /// /// - public global::Vapi.McpTool PickMcp() => IsMcp - ? Mcp! + public global::Vapi.McpTool PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGohighlevelCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => IsGohighlevelCalendarAvailabilityCheck - ? GohighlevelCalendarAvailabilityCheck! + public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => GohighlevelCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickGohighlevelCalendarEventCreate( /// /// /// - public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => IsGohighlevelCalendarEventCreate - ? GohighlevelCalendarEventCreate! + public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => GohighlevelCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarEventCreate' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickGohighlevelContactCreate( /// /// /// - public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => IsGohighlevelContactCreate - ? GohighlevelContactCreate! + public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => GohighlevelContactCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactCreate' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickGohighlevelContactGet( /// /// /// - public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => IsGohighlevelContactGet - ? GohighlevelContactGet! + public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => GohighlevelContactGet is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactGet' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickSipRequest( /// /// /// - public global::Vapi.SipRequestTool PickSipRequest() => IsSipRequest - ? SipRequest! + public global::Vapi.SipRequestTool PickSipRequest() => SipRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SipRequest' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickVoicemail( /// /// /// - public global::Vapi.VoicemailTool PickVoicemail() => IsVoicemail - ? Voicemail! + public global::Vapi.VoicemailTool PickVoicemail() => Voicemail is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Voicemail' but the value was {ToString()}."); /// /// @@ -1680,105 +1680,105 @@ public bool Validate() Validate(); } - if (IsApiRequest && apiRequest != null) + if (ApiRequest is { } __value0 && apiRequest != null) { - return apiRequest(ApiRequest!); + return apiRequest(__value0); } - else if (IsCode && code != null) + else if (Code is { } __value1 && code != null) { - return code(Code!); + return code(__value1); } - else if (IsDtmf && dtmf != null) + else if (Dtmf is { } __value2 && dtmf != null) { - return dtmf(Dtmf!); + return dtmf(__value2); } - else if (IsEndCall && endCall != null) + else if (EndCall is { } __value3 && endCall != null) { - return endCall(EndCall!); + return endCall(__value3); } - else if (IsFunction && function != null) + else if (Function is { } __value4 && function != null) { - return function(Function!); + return function(__value4); } - else if (IsKnowledgeBase && knowledgeBase != null) + else if (KnowledgeBase is { } __value5 && knowledgeBase != null) { - return knowledgeBase(KnowledgeBase!); + return knowledgeBase(__value5); } - else if (IsGhl && ghl != null) + else if (Ghl is { } __value6 && ghl != null) { - return ghl(Ghl!); + return ghl(__value6); } - else if (IsTransferCall && transferCall != null) + else if (TransferCall is { } __value7 && transferCall != null) { - return transferCall(TransferCall!); + return transferCall(__value7); } - else if (IsHandoff && handoff != null) + else if (Handoff is { } __value8 && handoff != null) { - return handoff(Handoff!); + return handoff(__value8); } - else if (IsBash && bash != null) + else if (Bash is { } __value9 && bash != null) { - return bash(Bash!); + return bash(__value9); } - else if (IsComputer && computer != null) + else if (Computer is { } __value10 && computer != null) { - return computer(Computer!); + return computer(__value10); } - else if (IsTextEditor && textEditor != null) + else if (TextEditor is { } __value11 && textEditor != null) { - return textEditor(TextEditor!); + return textEditor(__value11); } - else if (IsQuery && query != null) + else if (Query is { } __value12 && query != null) { - return query(Query!); + return query(__value12); } - else if (IsGoogleCalendarEventCreate && googleCalendarEventCreate != null) + else if (GoogleCalendarEventCreate is { } __value13 && googleCalendarEventCreate != null) { - return googleCalendarEventCreate(GoogleCalendarEventCreate!); + return googleCalendarEventCreate(__value13); } - else if (IsGoogleSheetsRowAppend && googleSheetsRowAppend != null) + else if (GoogleSheetsRowAppend is { } __value14 && googleSheetsRowAppend != null) { - return googleSheetsRowAppend(GoogleSheetsRowAppend!); + return googleSheetsRowAppend(__value14); } - else if (IsGoogleCalendarAvailabilityCheck && googleCalendarAvailabilityCheck != null) + else if (GoogleCalendarAvailabilityCheck is { } __value15 && googleCalendarAvailabilityCheck != null) { - return googleCalendarAvailabilityCheck(GoogleCalendarAvailabilityCheck!); + return googleCalendarAvailabilityCheck(__value15); } - else if (IsSlackMessageSend && slackMessageSend != null) + else if (SlackMessageSend is { } __value16 && slackMessageSend != null) { - return slackMessageSend(SlackMessageSend!); + return slackMessageSend(__value16); } - else if (IsSms && sms != null) + else if (Sms is { } __value17 && sms != null) { - return sms(Sms!); + return sms(__value17); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value18 && mcp != null) { - return mcp(Mcp!); + return mcp(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck && gohighlevelCalendarAvailabilityCheck != null) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19 && gohighlevelCalendarAvailabilityCheck != null) { - return gohighlevelCalendarAvailabilityCheck(GohighlevelCalendarAvailabilityCheck!); + return gohighlevelCalendarAvailabilityCheck(__value19); } - else if (IsGohighlevelCalendarEventCreate && gohighlevelCalendarEventCreate != null) + else if (GohighlevelCalendarEventCreate is { } __value20 && gohighlevelCalendarEventCreate != null) { - return gohighlevelCalendarEventCreate(GohighlevelCalendarEventCreate!); + return gohighlevelCalendarEventCreate(__value20); } - else if (IsGohighlevelContactCreate && gohighlevelContactCreate != null) + else if (GohighlevelContactCreate is { } __value21 && gohighlevelContactCreate != null) { - return gohighlevelContactCreate(GohighlevelContactCreate!); + return gohighlevelContactCreate(__value21); } - else if (IsGohighlevelContactGet && gohighlevelContactGet != null) + else if (GohighlevelContactGet is { } __value22 && gohighlevelContactGet != null) { - return gohighlevelContactGet(GohighlevelContactGet!); + return gohighlevelContactGet(__value22); } - else if (IsSipRequest && sipRequest != null) + else if (SipRequest is { } __value23 && sipRequest != null) { - return sipRequest(SipRequest!); + return sipRequest(__value23); } - else if (IsVoicemail && voicemail != null) + else if (Voicemail is { } __value24 && voicemail != null) { - return voicemail(Voicemail!); + return voicemail(__value24); } return default(TResult); @@ -1844,105 +1844,105 @@ public void Match( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } @@ -1982,105 +1982,105 @@ public void Switch( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerFindAllResponseItem.g.cs b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerFindAllResponseItem.g.cs index 0d1c8037..55230dbd 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerFindAllResponseItem.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerFindAllResponseItem.g.cs @@ -47,8 +47,8 @@ public bool TryPickApiRequest( /// /// /// - public global::Vapi.ApiRequestTool PickApiRequest() => IsApiRequest - ? ApiRequest! + public global::Vapi.ApiRequestTool PickApiRequest() => ApiRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApiRequest' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCode( /// /// /// - public global::Vapi.CodeTool PickCode() => IsCode - ? Code! + public global::Vapi.CodeTool PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickDtmf( /// /// /// - public global::Vapi.DtmfTool PickDtmf() => IsDtmf - ? Dtmf! + public global::Vapi.DtmfTool PickDtmf() => Dtmf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Dtmf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickEndCall( /// /// /// - public global::Vapi.EndCallTool PickEndCall() => IsEndCall - ? EndCall! + public global::Vapi.EndCallTool PickEndCall() => EndCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EndCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickFunction( /// /// /// - public global::Vapi.FunctionTool PickFunction() => IsFunction - ? Function! + public global::Vapi.FunctionTool PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickKnowledgeBase( /// /// /// - public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => IsKnowledgeBase - ? KnowledgeBase! + public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => KnowledgeBase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'KnowledgeBase' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickGhl( /// /// /// - public global::Vapi.GhlTool PickGhl() => IsGhl - ? Ghl! + public global::Vapi.GhlTool PickGhl() => Ghl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Ghl' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickTransferCall( /// /// /// - public global::Vapi.TransferCallTool PickTransferCall() => IsTransferCall - ? TransferCall! + public global::Vapi.TransferCallTool PickTransferCall() => TransferCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransferCall' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickHandoff( /// /// /// - public global::Vapi.HandoffTool PickHandoff() => IsHandoff - ? Handoff! + public global::Vapi.HandoffTool PickHandoff() => Handoff is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Handoff' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickBash( /// /// /// - public global::Vapi.BashTool PickBash() => IsBash - ? Bash! + public global::Vapi.BashTool PickBash() => Bash is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bash' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickComputer( /// /// /// - public global::Vapi.ComputerTool PickComputer() => IsComputer - ? Computer! + public global::Vapi.ComputerTool PickComputer() => Computer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickTextEditor( /// /// /// - public global::Vapi.TextEditorTool PickTextEditor() => IsTextEditor - ? TextEditor! + public global::Vapi.TextEditorTool PickTextEditor() => TextEditor is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextEditor' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickQuery( /// /// /// - public global::Vapi.QueryTool PickQuery() => IsQuery - ? Query! + public global::Vapi.QueryTool PickQuery() => Query is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Query' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickGoogleCalendarEventCreate( /// /// /// - public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => IsGoogleCalendarEventCreate - ? GoogleCalendarEventCreate! + public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => GoogleCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarEventCreate' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickGoogleSheetsRowAppend( /// /// /// - public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => IsGoogleSheetsRowAppend - ? GoogleSheetsRowAppend! + public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => GoogleSheetsRowAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsRowAppend' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGoogleCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => IsGoogleCalendarAvailabilityCheck - ? GoogleCalendarAvailabilityCheck! + public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => GoogleCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickSlackMessageSend( /// /// /// - public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => IsSlackMessageSend - ? SlackMessageSend! + public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => SlackMessageSend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackMessageSend' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickSms( /// /// /// - public global::Vapi.SmsTool PickSms() => IsSms - ? Sms! + public global::Vapi.SmsTool PickSms() => Sms is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Sms' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickMcp( /// /// /// - public global::Vapi.McpTool PickMcp() => IsMcp - ? Mcp! + public global::Vapi.McpTool PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGohighlevelCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => IsGohighlevelCalendarAvailabilityCheck - ? GohighlevelCalendarAvailabilityCheck! + public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => GohighlevelCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickGohighlevelCalendarEventCreate( /// /// /// - public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => IsGohighlevelCalendarEventCreate - ? GohighlevelCalendarEventCreate! + public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => GohighlevelCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarEventCreate' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickGohighlevelContactCreate( /// /// /// - public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => IsGohighlevelContactCreate - ? GohighlevelContactCreate! + public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => GohighlevelContactCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactCreate' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickGohighlevelContactGet( /// /// /// - public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => IsGohighlevelContactGet - ? GohighlevelContactGet! + public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => GohighlevelContactGet is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactGet' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickSipRequest( /// /// /// - public global::Vapi.SipRequestTool PickSipRequest() => IsSipRequest - ? SipRequest! + public global::Vapi.SipRequestTool PickSipRequest() => SipRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SipRequest' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickVoicemail( /// /// /// - public global::Vapi.VoicemailTool PickVoicemail() => IsVoicemail - ? Voicemail! + public global::Vapi.VoicemailTool PickVoicemail() => Voicemail is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Voicemail' but the value was {ToString()}."); /// /// @@ -1680,105 +1680,105 @@ public bool Validate() Validate(); } - if (IsApiRequest && apiRequest != null) + if (ApiRequest is { } __value0 && apiRequest != null) { - return apiRequest(ApiRequest!); + return apiRequest(__value0); } - else if (IsCode && code != null) + else if (Code is { } __value1 && code != null) { - return code(Code!); + return code(__value1); } - else if (IsDtmf && dtmf != null) + else if (Dtmf is { } __value2 && dtmf != null) { - return dtmf(Dtmf!); + return dtmf(__value2); } - else if (IsEndCall && endCall != null) + else if (EndCall is { } __value3 && endCall != null) { - return endCall(EndCall!); + return endCall(__value3); } - else if (IsFunction && function != null) + else if (Function is { } __value4 && function != null) { - return function(Function!); + return function(__value4); } - else if (IsKnowledgeBase && knowledgeBase != null) + else if (KnowledgeBase is { } __value5 && knowledgeBase != null) { - return knowledgeBase(KnowledgeBase!); + return knowledgeBase(__value5); } - else if (IsGhl && ghl != null) + else if (Ghl is { } __value6 && ghl != null) { - return ghl(Ghl!); + return ghl(__value6); } - else if (IsTransferCall && transferCall != null) + else if (TransferCall is { } __value7 && transferCall != null) { - return transferCall(TransferCall!); + return transferCall(__value7); } - else if (IsHandoff && handoff != null) + else if (Handoff is { } __value8 && handoff != null) { - return handoff(Handoff!); + return handoff(__value8); } - else if (IsBash && bash != null) + else if (Bash is { } __value9 && bash != null) { - return bash(Bash!); + return bash(__value9); } - else if (IsComputer && computer != null) + else if (Computer is { } __value10 && computer != null) { - return computer(Computer!); + return computer(__value10); } - else if (IsTextEditor && textEditor != null) + else if (TextEditor is { } __value11 && textEditor != null) { - return textEditor(TextEditor!); + return textEditor(__value11); } - else if (IsQuery && query != null) + else if (Query is { } __value12 && query != null) { - return query(Query!); + return query(__value12); } - else if (IsGoogleCalendarEventCreate && googleCalendarEventCreate != null) + else if (GoogleCalendarEventCreate is { } __value13 && googleCalendarEventCreate != null) { - return googleCalendarEventCreate(GoogleCalendarEventCreate!); + return googleCalendarEventCreate(__value13); } - else if (IsGoogleSheetsRowAppend && googleSheetsRowAppend != null) + else if (GoogleSheetsRowAppend is { } __value14 && googleSheetsRowAppend != null) { - return googleSheetsRowAppend(GoogleSheetsRowAppend!); + return googleSheetsRowAppend(__value14); } - else if (IsGoogleCalendarAvailabilityCheck && googleCalendarAvailabilityCheck != null) + else if (GoogleCalendarAvailabilityCheck is { } __value15 && googleCalendarAvailabilityCheck != null) { - return googleCalendarAvailabilityCheck(GoogleCalendarAvailabilityCheck!); + return googleCalendarAvailabilityCheck(__value15); } - else if (IsSlackMessageSend && slackMessageSend != null) + else if (SlackMessageSend is { } __value16 && slackMessageSend != null) { - return slackMessageSend(SlackMessageSend!); + return slackMessageSend(__value16); } - else if (IsSms && sms != null) + else if (Sms is { } __value17 && sms != null) { - return sms(Sms!); + return sms(__value17); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value18 && mcp != null) { - return mcp(Mcp!); + return mcp(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck && gohighlevelCalendarAvailabilityCheck != null) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19 && gohighlevelCalendarAvailabilityCheck != null) { - return gohighlevelCalendarAvailabilityCheck(GohighlevelCalendarAvailabilityCheck!); + return gohighlevelCalendarAvailabilityCheck(__value19); } - else if (IsGohighlevelCalendarEventCreate && gohighlevelCalendarEventCreate != null) + else if (GohighlevelCalendarEventCreate is { } __value20 && gohighlevelCalendarEventCreate != null) { - return gohighlevelCalendarEventCreate(GohighlevelCalendarEventCreate!); + return gohighlevelCalendarEventCreate(__value20); } - else if (IsGohighlevelContactCreate && gohighlevelContactCreate != null) + else if (GohighlevelContactCreate is { } __value21 && gohighlevelContactCreate != null) { - return gohighlevelContactCreate(GohighlevelContactCreate!); + return gohighlevelContactCreate(__value21); } - else if (IsGohighlevelContactGet && gohighlevelContactGet != null) + else if (GohighlevelContactGet is { } __value22 && gohighlevelContactGet != null) { - return gohighlevelContactGet(GohighlevelContactGet!); + return gohighlevelContactGet(__value22); } - else if (IsSipRequest && sipRequest != null) + else if (SipRequest is { } __value23 && sipRequest != null) { - return sipRequest(SipRequest!); + return sipRequest(__value23); } - else if (IsVoicemail && voicemail != null) + else if (Voicemail is { } __value24 && voicemail != null) { - return voicemail(Voicemail!); + return voicemail(__value24); } return default(TResult); @@ -1844,105 +1844,105 @@ public void Match( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } @@ -1982,105 +1982,105 @@ public void Switch( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerFindOneResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerFindOneResponse.g.cs index ee0c3e2e..e950eba4 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerFindOneResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerFindOneResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickApiRequest( /// /// /// - public global::Vapi.ApiRequestTool PickApiRequest() => IsApiRequest - ? ApiRequest! + public global::Vapi.ApiRequestTool PickApiRequest() => ApiRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApiRequest' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCode( /// /// /// - public global::Vapi.CodeTool PickCode() => IsCode - ? Code! + public global::Vapi.CodeTool PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickDtmf( /// /// /// - public global::Vapi.DtmfTool PickDtmf() => IsDtmf - ? Dtmf! + public global::Vapi.DtmfTool PickDtmf() => Dtmf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Dtmf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickEndCall( /// /// /// - public global::Vapi.EndCallTool PickEndCall() => IsEndCall - ? EndCall! + public global::Vapi.EndCallTool PickEndCall() => EndCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EndCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickFunction( /// /// /// - public global::Vapi.FunctionTool PickFunction() => IsFunction - ? Function! + public global::Vapi.FunctionTool PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickKnowledgeBase( /// /// /// - public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => IsKnowledgeBase - ? KnowledgeBase! + public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => KnowledgeBase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'KnowledgeBase' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickGhl( /// /// /// - public global::Vapi.GhlTool PickGhl() => IsGhl - ? Ghl! + public global::Vapi.GhlTool PickGhl() => Ghl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Ghl' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickTransferCall( /// /// /// - public global::Vapi.TransferCallTool PickTransferCall() => IsTransferCall - ? TransferCall! + public global::Vapi.TransferCallTool PickTransferCall() => TransferCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransferCall' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickHandoff( /// /// /// - public global::Vapi.HandoffTool PickHandoff() => IsHandoff - ? Handoff! + public global::Vapi.HandoffTool PickHandoff() => Handoff is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Handoff' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickBash( /// /// /// - public global::Vapi.BashTool PickBash() => IsBash - ? Bash! + public global::Vapi.BashTool PickBash() => Bash is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bash' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickComputer( /// /// /// - public global::Vapi.ComputerTool PickComputer() => IsComputer - ? Computer! + public global::Vapi.ComputerTool PickComputer() => Computer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickTextEditor( /// /// /// - public global::Vapi.TextEditorTool PickTextEditor() => IsTextEditor - ? TextEditor! + public global::Vapi.TextEditorTool PickTextEditor() => TextEditor is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextEditor' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickQuery( /// /// /// - public global::Vapi.QueryTool PickQuery() => IsQuery - ? Query! + public global::Vapi.QueryTool PickQuery() => Query is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Query' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickGoogleCalendarEventCreate( /// /// /// - public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => IsGoogleCalendarEventCreate - ? GoogleCalendarEventCreate! + public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => GoogleCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarEventCreate' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickGoogleSheetsRowAppend( /// /// /// - public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => IsGoogleSheetsRowAppend - ? GoogleSheetsRowAppend! + public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => GoogleSheetsRowAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsRowAppend' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGoogleCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => IsGoogleCalendarAvailabilityCheck - ? GoogleCalendarAvailabilityCheck! + public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => GoogleCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickSlackMessageSend( /// /// /// - public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => IsSlackMessageSend - ? SlackMessageSend! + public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => SlackMessageSend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackMessageSend' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickSms( /// /// /// - public global::Vapi.SmsTool PickSms() => IsSms - ? Sms! + public global::Vapi.SmsTool PickSms() => Sms is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Sms' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickMcp( /// /// /// - public global::Vapi.McpTool PickMcp() => IsMcp - ? Mcp! + public global::Vapi.McpTool PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGohighlevelCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => IsGohighlevelCalendarAvailabilityCheck - ? GohighlevelCalendarAvailabilityCheck! + public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => GohighlevelCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickGohighlevelCalendarEventCreate( /// /// /// - public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => IsGohighlevelCalendarEventCreate - ? GohighlevelCalendarEventCreate! + public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => GohighlevelCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarEventCreate' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickGohighlevelContactCreate( /// /// /// - public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => IsGohighlevelContactCreate - ? GohighlevelContactCreate! + public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => GohighlevelContactCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactCreate' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickGohighlevelContactGet( /// /// /// - public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => IsGohighlevelContactGet - ? GohighlevelContactGet! + public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => GohighlevelContactGet is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactGet' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickSipRequest( /// /// /// - public global::Vapi.SipRequestTool PickSipRequest() => IsSipRequest - ? SipRequest! + public global::Vapi.SipRequestTool PickSipRequest() => SipRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SipRequest' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickVoicemail( /// /// /// - public global::Vapi.VoicemailTool PickVoicemail() => IsVoicemail - ? Voicemail! + public global::Vapi.VoicemailTool PickVoicemail() => Voicemail is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Voicemail' but the value was {ToString()}."); /// /// @@ -1680,105 +1680,105 @@ public bool Validate() Validate(); } - if (IsApiRequest && apiRequest != null) + if (ApiRequest is { } __value0 && apiRequest != null) { - return apiRequest(ApiRequest!); + return apiRequest(__value0); } - else if (IsCode && code != null) + else if (Code is { } __value1 && code != null) { - return code(Code!); + return code(__value1); } - else if (IsDtmf && dtmf != null) + else if (Dtmf is { } __value2 && dtmf != null) { - return dtmf(Dtmf!); + return dtmf(__value2); } - else if (IsEndCall && endCall != null) + else if (EndCall is { } __value3 && endCall != null) { - return endCall(EndCall!); + return endCall(__value3); } - else if (IsFunction && function != null) + else if (Function is { } __value4 && function != null) { - return function(Function!); + return function(__value4); } - else if (IsKnowledgeBase && knowledgeBase != null) + else if (KnowledgeBase is { } __value5 && knowledgeBase != null) { - return knowledgeBase(KnowledgeBase!); + return knowledgeBase(__value5); } - else if (IsGhl && ghl != null) + else if (Ghl is { } __value6 && ghl != null) { - return ghl(Ghl!); + return ghl(__value6); } - else if (IsTransferCall && transferCall != null) + else if (TransferCall is { } __value7 && transferCall != null) { - return transferCall(TransferCall!); + return transferCall(__value7); } - else if (IsHandoff && handoff != null) + else if (Handoff is { } __value8 && handoff != null) { - return handoff(Handoff!); + return handoff(__value8); } - else if (IsBash && bash != null) + else if (Bash is { } __value9 && bash != null) { - return bash(Bash!); + return bash(__value9); } - else if (IsComputer && computer != null) + else if (Computer is { } __value10 && computer != null) { - return computer(Computer!); + return computer(__value10); } - else if (IsTextEditor && textEditor != null) + else if (TextEditor is { } __value11 && textEditor != null) { - return textEditor(TextEditor!); + return textEditor(__value11); } - else if (IsQuery && query != null) + else if (Query is { } __value12 && query != null) { - return query(Query!); + return query(__value12); } - else if (IsGoogleCalendarEventCreate && googleCalendarEventCreate != null) + else if (GoogleCalendarEventCreate is { } __value13 && googleCalendarEventCreate != null) { - return googleCalendarEventCreate(GoogleCalendarEventCreate!); + return googleCalendarEventCreate(__value13); } - else if (IsGoogleSheetsRowAppend && googleSheetsRowAppend != null) + else if (GoogleSheetsRowAppend is { } __value14 && googleSheetsRowAppend != null) { - return googleSheetsRowAppend(GoogleSheetsRowAppend!); + return googleSheetsRowAppend(__value14); } - else if (IsGoogleCalendarAvailabilityCheck && googleCalendarAvailabilityCheck != null) + else if (GoogleCalendarAvailabilityCheck is { } __value15 && googleCalendarAvailabilityCheck != null) { - return googleCalendarAvailabilityCheck(GoogleCalendarAvailabilityCheck!); + return googleCalendarAvailabilityCheck(__value15); } - else if (IsSlackMessageSend && slackMessageSend != null) + else if (SlackMessageSend is { } __value16 && slackMessageSend != null) { - return slackMessageSend(SlackMessageSend!); + return slackMessageSend(__value16); } - else if (IsSms && sms != null) + else if (Sms is { } __value17 && sms != null) { - return sms(Sms!); + return sms(__value17); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value18 && mcp != null) { - return mcp(Mcp!); + return mcp(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck && gohighlevelCalendarAvailabilityCheck != null) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19 && gohighlevelCalendarAvailabilityCheck != null) { - return gohighlevelCalendarAvailabilityCheck(GohighlevelCalendarAvailabilityCheck!); + return gohighlevelCalendarAvailabilityCheck(__value19); } - else if (IsGohighlevelCalendarEventCreate && gohighlevelCalendarEventCreate != null) + else if (GohighlevelCalendarEventCreate is { } __value20 && gohighlevelCalendarEventCreate != null) { - return gohighlevelCalendarEventCreate(GohighlevelCalendarEventCreate!); + return gohighlevelCalendarEventCreate(__value20); } - else if (IsGohighlevelContactCreate && gohighlevelContactCreate != null) + else if (GohighlevelContactCreate is { } __value21 && gohighlevelContactCreate != null) { - return gohighlevelContactCreate(GohighlevelContactCreate!); + return gohighlevelContactCreate(__value21); } - else if (IsGohighlevelContactGet && gohighlevelContactGet != null) + else if (GohighlevelContactGet is { } __value22 && gohighlevelContactGet != null) { - return gohighlevelContactGet(GohighlevelContactGet!); + return gohighlevelContactGet(__value22); } - else if (IsSipRequest && sipRequest != null) + else if (SipRequest is { } __value23 && sipRequest != null) { - return sipRequest(SipRequest!); + return sipRequest(__value23); } - else if (IsVoicemail && voicemail != null) + else if (Voicemail is { } __value24 && voicemail != null) { - return voicemail(Voicemail!); + return voicemail(__value24); } return default(TResult); @@ -1844,105 +1844,105 @@ public void Match( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } @@ -1982,105 +1982,105 @@ public void Switch( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerRemoveResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerRemoveResponse.g.cs index 926f12b8..760b29c9 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerRemoveResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerRemoveResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickApiRequest( /// /// /// - public global::Vapi.ApiRequestTool PickApiRequest() => IsApiRequest - ? ApiRequest! + public global::Vapi.ApiRequestTool PickApiRequest() => ApiRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApiRequest' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCode( /// /// /// - public global::Vapi.CodeTool PickCode() => IsCode - ? Code! + public global::Vapi.CodeTool PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickDtmf( /// /// /// - public global::Vapi.DtmfTool PickDtmf() => IsDtmf - ? Dtmf! + public global::Vapi.DtmfTool PickDtmf() => Dtmf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Dtmf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickEndCall( /// /// /// - public global::Vapi.EndCallTool PickEndCall() => IsEndCall - ? EndCall! + public global::Vapi.EndCallTool PickEndCall() => EndCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EndCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickFunction( /// /// /// - public global::Vapi.FunctionTool PickFunction() => IsFunction - ? Function! + public global::Vapi.FunctionTool PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickKnowledgeBase( /// /// /// - public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => IsKnowledgeBase - ? KnowledgeBase! + public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => KnowledgeBase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'KnowledgeBase' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickGhl( /// /// /// - public global::Vapi.GhlTool PickGhl() => IsGhl - ? Ghl! + public global::Vapi.GhlTool PickGhl() => Ghl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Ghl' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickTransferCall( /// /// /// - public global::Vapi.TransferCallTool PickTransferCall() => IsTransferCall - ? TransferCall! + public global::Vapi.TransferCallTool PickTransferCall() => TransferCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransferCall' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickHandoff( /// /// /// - public global::Vapi.HandoffTool PickHandoff() => IsHandoff - ? Handoff! + public global::Vapi.HandoffTool PickHandoff() => Handoff is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Handoff' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickBash( /// /// /// - public global::Vapi.BashTool PickBash() => IsBash - ? Bash! + public global::Vapi.BashTool PickBash() => Bash is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bash' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickComputer( /// /// /// - public global::Vapi.ComputerTool PickComputer() => IsComputer - ? Computer! + public global::Vapi.ComputerTool PickComputer() => Computer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickTextEditor( /// /// /// - public global::Vapi.TextEditorTool PickTextEditor() => IsTextEditor - ? TextEditor! + public global::Vapi.TextEditorTool PickTextEditor() => TextEditor is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextEditor' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickQuery( /// /// /// - public global::Vapi.QueryTool PickQuery() => IsQuery - ? Query! + public global::Vapi.QueryTool PickQuery() => Query is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Query' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickGoogleCalendarEventCreate( /// /// /// - public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => IsGoogleCalendarEventCreate - ? GoogleCalendarEventCreate! + public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => GoogleCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarEventCreate' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickGoogleSheetsRowAppend( /// /// /// - public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => IsGoogleSheetsRowAppend - ? GoogleSheetsRowAppend! + public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => GoogleSheetsRowAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsRowAppend' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGoogleCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => IsGoogleCalendarAvailabilityCheck - ? GoogleCalendarAvailabilityCheck! + public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => GoogleCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickSlackMessageSend( /// /// /// - public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => IsSlackMessageSend - ? SlackMessageSend! + public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => SlackMessageSend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackMessageSend' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickSms( /// /// /// - public global::Vapi.SmsTool PickSms() => IsSms - ? Sms! + public global::Vapi.SmsTool PickSms() => Sms is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Sms' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickMcp( /// /// /// - public global::Vapi.McpTool PickMcp() => IsMcp - ? Mcp! + public global::Vapi.McpTool PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGohighlevelCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => IsGohighlevelCalendarAvailabilityCheck - ? GohighlevelCalendarAvailabilityCheck! + public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => GohighlevelCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickGohighlevelCalendarEventCreate( /// /// /// - public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => IsGohighlevelCalendarEventCreate - ? GohighlevelCalendarEventCreate! + public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => GohighlevelCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarEventCreate' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickGohighlevelContactCreate( /// /// /// - public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => IsGohighlevelContactCreate - ? GohighlevelContactCreate! + public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => GohighlevelContactCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactCreate' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickGohighlevelContactGet( /// /// /// - public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => IsGohighlevelContactGet - ? GohighlevelContactGet! + public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => GohighlevelContactGet is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactGet' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickSipRequest( /// /// /// - public global::Vapi.SipRequestTool PickSipRequest() => IsSipRequest - ? SipRequest! + public global::Vapi.SipRequestTool PickSipRequest() => SipRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SipRequest' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickVoicemail( /// /// /// - public global::Vapi.VoicemailTool PickVoicemail() => IsVoicemail - ? Voicemail! + public global::Vapi.VoicemailTool PickVoicemail() => Voicemail is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Voicemail' but the value was {ToString()}."); /// /// @@ -1680,105 +1680,105 @@ public bool Validate() Validate(); } - if (IsApiRequest && apiRequest != null) + if (ApiRequest is { } __value0 && apiRequest != null) { - return apiRequest(ApiRequest!); + return apiRequest(__value0); } - else if (IsCode && code != null) + else if (Code is { } __value1 && code != null) { - return code(Code!); + return code(__value1); } - else if (IsDtmf && dtmf != null) + else if (Dtmf is { } __value2 && dtmf != null) { - return dtmf(Dtmf!); + return dtmf(__value2); } - else if (IsEndCall && endCall != null) + else if (EndCall is { } __value3 && endCall != null) { - return endCall(EndCall!); + return endCall(__value3); } - else if (IsFunction && function != null) + else if (Function is { } __value4 && function != null) { - return function(Function!); + return function(__value4); } - else if (IsKnowledgeBase && knowledgeBase != null) + else if (KnowledgeBase is { } __value5 && knowledgeBase != null) { - return knowledgeBase(KnowledgeBase!); + return knowledgeBase(__value5); } - else if (IsGhl && ghl != null) + else if (Ghl is { } __value6 && ghl != null) { - return ghl(Ghl!); + return ghl(__value6); } - else if (IsTransferCall && transferCall != null) + else if (TransferCall is { } __value7 && transferCall != null) { - return transferCall(TransferCall!); + return transferCall(__value7); } - else if (IsHandoff && handoff != null) + else if (Handoff is { } __value8 && handoff != null) { - return handoff(Handoff!); + return handoff(__value8); } - else if (IsBash && bash != null) + else if (Bash is { } __value9 && bash != null) { - return bash(Bash!); + return bash(__value9); } - else if (IsComputer && computer != null) + else if (Computer is { } __value10 && computer != null) { - return computer(Computer!); + return computer(__value10); } - else if (IsTextEditor && textEditor != null) + else if (TextEditor is { } __value11 && textEditor != null) { - return textEditor(TextEditor!); + return textEditor(__value11); } - else if (IsQuery && query != null) + else if (Query is { } __value12 && query != null) { - return query(Query!); + return query(__value12); } - else if (IsGoogleCalendarEventCreate && googleCalendarEventCreate != null) + else if (GoogleCalendarEventCreate is { } __value13 && googleCalendarEventCreate != null) { - return googleCalendarEventCreate(GoogleCalendarEventCreate!); + return googleCalendarEventCreate(__value13); } - else if (IsGoogleSheetsRowAppend && googleSheetsRowAppend != null) + else if (GoogleSheetsRowAppend is { } __value14 && googleSheetsRowAppend != null) { - return googleSheetsRowAppend(GoogleSheetsRowAppend!); + return googleSheetsRowAppend(__value14); } - else if (IsGoogleCalendarAvailabilityCheck && googleCalendarAvailabilityCheck != null) + else if (GoogleCalendarAvailabilityCheck is { } __value15 && googleCalendarAvailabilityCheck != null) { - return googleCalendarAvailabilityCheck(GoogleCalendarAvailabilityCheck!); + return googleCalendarAvailabilityCheck(__value15); } - else if (IsSlackMessageSend && slackMessageSend != null) + else if (SlackMessageSend is { } __value16 && slackMessageSend != null) { - return slackMessageSend(SlackMessageSend!); + return slackMessageSend(__value16); } - else if (IsSms && sms != null) + else if (Sms is { } __value17 && sms != null) { - return sms(Sms!); + return sms(__value17); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value18 && mcp != null) { - return mcp(Mcp!); + return mcp(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck && gohighlevelCalendarAvailabilityCheck != null) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19 && gohighlevelCalendarAvailabilityCheck != null) { - return gohighlevelCalendarAvailabilityCheck(GohighlevelCalendarAvailabilityCheck!); + return gohighlevelCalendarAvailabilityCheck(__value19); } - else if (IsGohighlevelCalendarEventCreate && gohighlevelCalendarEventCreate != null) + else if (GohighlevelCalendarEventCreate is { } __value20 && gohighlevelCalendarEventCreate != null) { - return gohighlevelCalendarEventCreate(GohighlevelCalendarEventCreate!); + return gohighlevelCalendarEventCreate(__value20); } - else if (IsGohighlevelContactCreate && gohighlevelContactCreate != null) + else if (GohighlevelContactCreate is { } __value21 && gohighlevelContactCreate != null) { - return gohighlevelContactCreate(GohighlevelContactCreate!); + return gohighlevelContactCreate(__value21); } - else if (IsGohighlevelContactGet && gohighlevelContactGet != null) + else if (GohighlevelContactGet is { } __value22 && gohighlevelContactGet != null) { - return gohighlevelContactGet(GohighlevelContactGet!); + return gohighlevelContactGet(__value22); } - else if (IsSipRequest && sipRequest != null) + else if (SipRequest is { } __value23 && sipRequest != null) { - return sipRequest(SipRequest!); + return sipRequest(__value23); } - else if (IsVoicemail && voicemail != null) + else if (Voicemail is { } __value24 && voicemail != null) { - return voicemail(Voicemail!); + return voicemail(__value24); } return default(TResult); @@ -1844,105 +1844,105 @@ public void Match( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } @@ -1982,105 +1982,105 @@ public void Switch( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerRemoveResponse2.g.cs b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerRemoveResponse2.g.cs index 4c35993e..fe11bc3f 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerRemoveResponse2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerRemoveResponse2.g.cs @@ -47,8 +47,8 @@ public bool TryPickToolPinned( /// /// /// - public global::Vapi.ToolPinnedConflictResponseDTO PickToolPinned() => IsToolPinned - ? ToolPinned! + public global::Vapi.ToolPinnedConflictResponseDTO PickToolPinned() => ToolPinned is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolPinned' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickToolWriteConflict( /// /// /// - public global::Vapi.ToolWriteConflictResponseDTO PickToolWriteConflict() => IsToolWriteConflict - ? ToolWriteConflict! + public global::Vapi.ToolWriteConflictResponseDTO PickToolWriteConflict() => ToolWriteConflict is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ToolWriteConflict' but the value was {ToString()}."); /// /// @@ -185,13 +185,13 @@ public bool Validate() Validate(); } - if (IsToolPinned && toolPinned != null) + if (ToolPinned is { } __value0 && toolPinned != null) { - return toolPinned(ToolPinned!); + return toolPinned(__value0); } - else if (IsToolWriteConflict && toolWriteConflict != null) + else if (ToolWriteConflict is { } __value1 && toolWriteConflict != null) { - return toolWriteConflict(ToolWriteConflict!); + return toolWriteConflict(__value1); } return default(TResult); @@ -211,13 +211,13 @@ public void Match( Validate(); } - if (IsToolPinned) + if (ToolPinned is { } __value0) { - toolPinned?.Invoke(ToolPinned!); + toolPinned?.Invoke(__value0); } - else if (IsToolWriteConflict) + else if (ToolWriteConflict is { } __value1) { - toolWriteConflict?.Invoke(ToolWriteConflict!); + toolWriteConflict?.Invoke(__value1); } } @@ -234,13 +234,13 @@ public void Switch( Validate(); } - if (IsToolPinned) + if (ToolPinned is { } __value0) { - toolPinned?.Invoke(ToolPinned!); + toolPinned?.Invoke(__value0); } - else if (IsToolWriteConflict) + else if (ToolWriteConflict is { } __value1) { - toolWriteConflict?.Invoke(ToolWriteConflict!); + toolWriteConflict?.Invoke(__value1); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerUpdateRequest.g.cs b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerUpdateRequest.g.cs index fae26c1d..01f3f72f 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerUpdateRequest.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerUpdateRequest.g.cs @@ -47,8 +47,8 @@ public bool TryPickApiRequest( /// /// /// - public global::Vapi.UpdateApiRequestToolDTO PickApiRequest() => IsApiRequest - ? ApiRequest! + public global::Vapi.UpdateApiRequestToolDTO PickApiRequest() => ApiRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApiRequest' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCode( /// /// /// - public global::Vapi.UpdateCodeToolDTO PickCode() => IsCode - ? Code! + public global::Vapi.UpdateCodeToolDTO PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickDtmf( /// /// /// - public global::Vapi.UpdateDtmfToolDTO PickDtmf() => IsDtmf - ? Dtmf! + public global::Vapi.UpdateDtmfToolDTO PickDtmf() => Dtmf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Dtmf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickEndCall( /// /// /// - public global::Vapi.UpdateEndCallToolDTO PickEndCall() => IsEndCall - ? EndCall! + public global::Vapi.UpdateEndCallToolDTO PickEndCall() => EndCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EndCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickFunction( /// /// /// - public global::Vapi.UpdateFunctionToolDTO PickFunction() => IsFunction - ? Function! + public global::Vapi.UpdateFunctionToolDTO PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickKnowledgeBase( /// /// /// - public global::Vapi.UpdateKnowledgeBaseToolDTO PickKnowledgeBase() => IsKnowledgeBase - ? KnowledgeBase! + public global::Vapi.UpdateKnowledgeBaseToolDTO PickKnowledgeBase() => KnowledgeBase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'KnowledgeBase' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickTransferCall( /// /// /// - public global::Vapi.UpdateTransferCallToolDTO PickTransferCall() => IsTransferCall - ? TransferCall! + public global::Vapi.UpdateTransferCallToolDTO PickTransferCall() => TransferCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransferCall' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickHandoff( /// /// /// - public global::Vapi.UpdateHandoffToolDTO PickHandoff() => IsHandoff - ? Handoff! + public global::Vapi.UpdateHandoffToolDTO PickHandoff() => Handoff is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Handoff' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickBash( /// /// /// - public global::Vapi.UpdateBashToolDTO PickBash() => IsBash - ? Bash! + public global::Vapi.UpdateBashToolDTO PickBash() => Bash is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bash' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickComputer( /// /// /// - public global::Vapi.UpdateComputerToolDTO PickComputer() => IsComputer - ? Computer! + public global::Vapi.UpdateComputerToolDTO PickComputer() => Computer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickTextEditor( /// /// /// - public global::Vapi.UpdateTextEditorToolDTO PickTextEditor() => IsTextEditor - ? TextEditor! + public global::Vapi.UpdateTextEditorToolDTO PickTextEditor() => TextEditor is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextEditor' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickQuery( /// /// /// - public global::Vapi.UpdateQueryToolDTO PickQuery() => IsQuery - ? Query! + public global::Vapi.UpdateQueryToolDTO PickQuery() => Query is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Query' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickGoogleCalendarEventCreate( /// /// /// - public global::Vapi.UpdateGoogleCalendarCreateEventToolDTO PickGoogleCalendarEventCreate() => IsGoogleCalendarEventCreate - ? GoogleCalendarEventCreate! + public global::Vapi.UpdateGoogleCalendarCreateEventToolDTO PickGoogleCalendarEventCreate() => GoogleCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarEventCreate' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickGoogleSheetsRowAppend( /// /// /// - public global::Vapi.UpdateGoogleSheetsRowAppendToolDTO PickGoogleSheetsRowAppend() => IsGoogleSheetsRowAppend - ? GoogleSheetsRowAppend! + public global::Vapi.UpdateGoogleSheetsRowAppendToolDTO PickGoogleSheetsRowAppend() => GoogleSheetsRowAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsRowAppend' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickGoogleCalendarAvailabilityCheck( /// /// /// - public global::Vapi.UpdateGoogleCalendarCheckAvailabilityToolDTO PickGoogleCalendarAvailabilityCheck() => IsGoogleCalendarAvailabilityCheck - ? GoogleCalendarAvailabilityCheck! + public global::Vapi.UpdateGoogleCalendarCheckAvailabilityToolDTO PickGoogleCalendarAvailabilityCheck() => GoogleCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickSlackMessageSend( /// /// /// - public global::Vapi.UpdateSlackSendMessageToolDTO PickSlackMessageSend() => IsSlackMessageSend - ? SlackMessageSend! + public global::Vapi.UpdateSlackSendMessageToolDTO PickSlackMessageSend() => SlackMessageSend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackMessageSend' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickSms( /// /// /// - public global::Vapi.UpdateSmsToolDTO PickSms() => IsSms - ? Sms! + public global::Vapi.UpdateSmsToolDTO PickSms() => Sms is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Sms' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickMcp( /// /// /// - public global::Vapi.UpdateMcpToolDTO PickMcp() => IsMcp - ? Mcp! + public global::Vapi.UpdateMcpToolDTO PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickGohighlevelCalendarAvailabilityCheck( /// /// /// - public global::Vapi.UpdateGoHighLevelCalendarAvailabilityToolDTO PickGohighlevelCalendarAvailabilityCheck() => IsGohighlevelCalendarAvailabilityCheck - ? GohighlevelCalendarAvailabilityCheck! + public global::Vapi.UpdateGoHighLevelCalendarAvailabilityToolDTO PickGohighlevelCalendarAvailabilityCheck() => GohighlevelCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGohighlevelCalendarEventCreate( /// /// /// - public global::Vapi.UpdateGoHighLevelCalendarEventCreateToolDTO PickGohighlevelCalendarEventCreate() => IsGohighlevelCalendarEventCreate - ? GohighlevelCalendarEventCreate! + public global::Vapi.UpdateGoHighLevelCalendarEventCreateToolDTO PickGohighlevelCalendarEventCreate() => GohighlevelCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarEventCreate' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickGohighlevelContactCreate( /// /// /// - public global::Vapi.UpdateGoHighLevelContactCreateToolDTO PickGohighlevelContactCreate() => IsGohighlevelContactCreate - ? GohighlevelContactCreate! + public global::Vapi.UpdateGoHighLevelContactCreateToolDTO PickGohighlevelContactCreate() => GohighlevelContactCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactCreate' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickGohighlevelContactGet( /// /// /// - public global::Vapi.UpdateGoHighLevelContactGetToolDTO PickGohighlevelContactGet() => IsGohighlevelContactGet - ? GohighlevelContactGet! + public global::Vapi.UpdateGoHighLevelContactGetToolDTO PickGohighlevelContactGet() => GohighlevelContactGet is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactGet' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickSipRequest( /// /// /// - public global::Vapi.UpdateSipRequestToolDTO PickSipRequest() => IsSipRequest - ? SipRequest! + public global::Vapi.UpdateSipRequestToolDTO PickSipRequest() => SipRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SipRequest' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickVoicemail( /// /// /// - public global::Vapi.UpdateVoicemailToolDTO PickVoicemail() => IsVoicemail - ? Voicemail! + public global::Vapi.UpdateVoicemailToolDTO PickVoicemail() => Voicemail is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Voicemail' but the value was {ToString()}."); /// /// @@ -1615,101 +1615,101 @@ public bool Validate() Validate(); } - if (IsApiRequest && apiRequest != null) + if (ApiRequest is { } __value0 && apiRequest != null) { - return apiRequest(ApiRequest!); + return apiRequest(__value0); } - else if (IsCode && code != null) + else if (Code is { } __value1 && code != null) { - return code(Code!); + return code(__value1); } - else if (IsDtmf && dtmf != null) + else if (Dtmf is { } __value2 && dtmf != null) { - return dtmf(Dtmf!); + return dtmf(__value2); } - else if (IsEndCall && endCall != null) + else if (EndCall is { } __value3 && endCall != null) { - return endCall(EndCall!); + return endCall(__value3); } - else if (IsFunction && function != null) + else if (Function is { } __value4 && function != null) { - return function(Function!); + return function(__value4); } - else if (IsKnowledgeBase && knowledgeBase != null) + else if (KnowledgeBase is { } __value5 && knowledgeBase != null) { - return knowledgeBase(KnowledgeBase!); + return knowledgeBase(__value5); } - else if (IsTransferCall && transferCall != null) + else if (TransferCall is { } __value6 && transferCall != null) { - return transferCall(TransferCall!); + return transferCall(__value6); } - else if (IsHandoff && handoff != null) + else if (Handoff is { } __value7 && handoff != null) { - return handoff(Handoff!); + return handoff(__value7); } - else if (IsBash && bash != null) + else if (Bash is { } __value8 && bash != null) { - return bash(Bash!); + return bash(__value8); } - else if (IsComputer && computer != null) + else if (Computer is { } __value9 && computer != null) { - return computer(Computer!); + return computer(__value9); } - else if (IsTextEditor && textEditor != null) + else if (TextEditor is { } __value10 && textEditor != null) { - return textEditor(TextEditor!); + return textEditor(__value10); } - else if (IsQuery && query != null) + else if (Query is { } __value11 && query != null) { - return query(Query!); + return query(__value11); } - else if (IsGoogleCalendarEventCreate && googleCalendarEventCreate != null) + else if (GoogleCalendarEventCreate is { } __value12 && googleCalendarEventCreate != null) { - return googleCalendarEventCreate(GoogleCalendarEventCreate!); + return googleCalendarEventCreate(__value12); } - else if (IsGoogleSheetsRowAppend && googleSheetsRowAppend != null) + else if (GoogleSheetsRowAppend is { } __value13 && googleSheetsRowAppend != null) { - return googleSheetsRowAppend(GoogleSheetsRowAppend!); + return googleSheetsRowAppend(__value13); } - else if (IsGoogleCalendarAvailabilityCheck && googleCalendarAvailabilityCheck != null) + else if (GoogleCalendarAvailabilityCheck is { } __value14 && googleCalendarAvailabilityCheck != null) { - return googleCalendarAvailabilityCheck(GoogleCalendarAvailabilityCheck!); + return googleCalendarAvailabilityCheck(__value14); } - else if (IsSlackMessageSend && slackMessageSend != null) + else if (SlackMessageSend is { } __value15 && slackMessageSend != null) { - return slackMessageSend(SlackMessageSend!); + return slackMessageSend(__value15); } - else if (IsSms && sms != null) + else if (Sms is { } __value16 && sms != null) { - return sms(Sms!); + return sms(__value16); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value17 && mcp != null) { - return mcp(Mcp!); + return mcp(__value17); } - else if (IsGohighlevelCalendarAvailabilityCheck && gohighlevelCalendarAvailabilityCheck != null) + else if (GohighlevelCalendarAvailabilityCheck is { } __value18 && gohighlevelCalendarAvailabilityCheck != null) { - return gohighlevelCalendarAvailabilityCheck(GohighlevelCalendarAvailabilityCheck!); + return gohighlevelCalendarAvailabilityCheck(__value18); } - else if (IsGohighlevelCalendarEventCreate && gohighlevelCalendarEventCreate != null) + else if (GohighlevelCalendarEventCreate is { } __value19 && gohighlevelCalendarEventCreate != null) { - return gohighlevelCalendarEventCreate(GohighlevelCalendarEventCreate!); + return gohighlevelCalendarEventCreate(__value19); } - else if (IsGohighlevelContactCreate && gohighlevelContactCreate != null) + else if (GohighlevelContactCreate is { } __value20 && gohighlevelContactCreate != null) { - return gohighlevelContactCreate(GohighlevelContactCreate!); + return gohighlevelContactCreate(__value20); } - else if (IsGohighlevelContactGet && gohighlevelContactGet != null) + else if (GohighlevelContactGet is { } __value21 && gohighlevelContactGet != null) { - return gohighlevelContactGet(GohighlevelContactGet!); + return gohighlevelContactGet(__value21); } - else if (IsSipRequest && sipRequest != null) + else if (SipRequest is { } __value22 && sipRequest != null) { - return sipRequest(SipRequest!); + return sipRequest(__value22); } - else if (IsVoicemail && voicemail != null) + else if (Voicemail is { } __value23 && voicemail != null) { - return voicemail(Voicemail!); + return voicemail(__value23); } return default(TResult); @@ -1773,101 +1773,101 @@ public void Match( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsTransferCall) + else if (TransferCall is { } __value6) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value6); } - else if (IsHandoff) + else if (Handoff is { } __value7) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value7); } - else if (IsBash) + else if (Bash is { } __value8) { - bash?.Invoke(Bash!); + bash?.Invoke(__value8); } - else if (IsComputer) + else if (Computer is { } __value9) { - computer?.Invoke(Computer!); + computer?.Invoke(__value9); } - else if (IsTextEditor) + else if (TextEditor is { } __value10) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value10); } - else if (IsQuery) + else if (Query is { } __value11) { - query?.Invoke(Query!); + query?.Invoke(__value11); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value12) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value12); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value13) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value13); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value14) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value14); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value15) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value15); } - else if (IsSms) + else if (Sms is { } __value16) { - sms?.Invoke(Sms!); + sms?.Invoke(__value16); } - else if (IsMcp) + else if (Mcp is { } __value17) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value17); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value18) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value18); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value19) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value19); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value20) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value20); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value21) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value21); } - else if (IsSipRequest) + else if (SipRequest is { } __value22) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value22); } - else if (IsVoicemail) + else if (Voicemail is { } __value23) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value23); } } @@ -1906,101 +1906,101 @@ public void Switch( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsTransferCall) + else if (TransferCall is { } __value6) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value6); } - else if (IsHandoff) + else if (Handoff is { } __value7) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value7); } - else if (IsBash) + else if (Bash is { } __value8) { - bash?.Invoke(Bash!); + bash?.Invoke(__value8); } - else if (IsComputer) + else if (Computer is { } __value9) { - computer?.Invoke(Computer!); + computer?.Invoke(__value9); } - else if (IsTextEditor) + else if (TextEditor is { } __value10) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value10); } - else if (IsQuery) + else if (Query is { } __value11) { - query?.Invoke(Query!); + query?.Invoke(__value11); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value12) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value12); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value13) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value13); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value14) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value14); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value15) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value15); } - else if (IsSms) + else if (Sms is { } __value16) { - sms?.Invoke(Sms!); + sms?.Invoke(__value16); } - else if (IsMcp) + else if (Mcp is { } __value17) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value17); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value18) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value18); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value19) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value19); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value20) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value20); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value21) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value21); } - else if (IsSipRequest) + else if (SipRequest is { } __value22) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value22); } - else if (IsVoicemail) + else if (Voicemail is { } __value23) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value23); } } diff --git a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerUpdateResponse.g.cs b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerUpdateResponse.g.cs index 1510f67c..36acde7a 100644 --- a/src/libs/Vapi/Generated/Vapi.Models.ToolControllerUpdateResponse.g.cs +++ b/src/libs/Vapi/Generated/Vapi.Models.ToolControllerUpdateResponse.g.cs @@ -47,8 +47,8 @@ public bool TryPickApiRequest( /// /// /// - public global::Vapi.ApiRequestTool PickApiRequest() => IsApiRequest - ? ApiRequest! + public global::Vapi.ApiRequestTool PickApiRequest() => ApiRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ApiRequest' but the value was {ToString()}."); /// @@ -84,8 +84,8 @@ public bool TryPickCode( /// /// /// - public global::Vapi.CodeTool PickCode() => IsCode - ? Code! + public global::Vapi.CodeTool PickCode() => Code is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Code' but the value was {ToString()}."); /// @@ -121,8 +121,8 @@ public bool TryPickDtmf( /// /// /// - public global::Vapi.DtmfTool PickDtmf() => IsDtmf - ? Dtmf! + public global::Vapi.DtmfTool PickDtmf() => Dtmf is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Dtmf' but the value was {ToString()}."); /// @@ -158,8 +158,8 @@ public bool TryPickEndCall( /// /// /// - public global::Vapi.EndCallTool PickEndCall() => IsEndCall - ? EndCall! + public global::Vapi.EndCallTool PickEndCall() => EndCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EndCall' but the value was {ToString()}."); /// @@ -195,8 +195,8 @@ public bool TryPickFunction( /// /// /// - public global::Vapi.FunctionTool PickFunction() => IsFunction - ? Function! + public global::Vapi.FunctionTool PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -232,8 +232,8 @@ public bool TryPickKnowledgeBase( /// /// /// - public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => IsKnowledgeBase - ? KnowledgeBase! + public global::Vapi.KnowledgeBaseTool PickKnowledgeBase() => KnowledgeBase is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'KnowledgeBase' but the value was {ToString()}."); /// @@ -269,8 +269,8 @@ public bool TryPickGhl( /// /// /// - public global::Vapi.GhlTool PickGhl() => IsGhl - ? Ghl! + public global::Vapi.GhlTool PickGhl() => Ghl is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Ghl' but the value was {ToString()}."); /// @@ -306,8 +306,8 @@ public bool TryPickTransferCall( /// /// /// - public global::Vapi.TransferCallTool PickTransferCall() => IsTransferCall - ? TransferCall! + public global::Vapi.TransferCallTool PickTransferCall() => TransferCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TransferCall' but the value was {ToString()}."); /// @@ -343,8 +343,8 @@ public bool TryPickHandoff( /// /// /// - public global::Vapi.HandoffTool PickHandoff() => IsHandoff - ? Handoff! + public global::Vapi.HandoffTool PickHandoff() => Handoff is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Handoff' but the value was {ToString()}."); /// @@ -380,8 +380,8 @@ public bool TryPickBash( /// /// /// - public global::Vapi.BashTool PickBash() => IsBash - ? Bash! + public global::Vapi.BashTool PickBash() => Bash is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Bash' but the value was {ToString()}."); /// @@ -417,8 +417,8 @@ public bool TryPickComputer( /// /// /// - public global::Vapi.ComputerTool PickComputer() => IsComputer - ? Computer! + public global::Vapi.ComputerTool PickComputer() => Computer is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Computer' but the value was {ToString()}."); /// @@ -454,8 +454,8 @@ public bool TryPickTextEditor( /// /// /// - public global::Vapi.TextEditorTool PickTextEditor() => IsTextEditor - ? TextEditor! + public global::Vapi.TextEditorTool PickTextEditor() => TextEditor is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextEditor' but the value was {ToString()}."); /// @@ -491,8 +491,8 @@ public bool TryPickQuery( /// /// /// - public global::Vapi.QueryTool PickQuery() => IsQuery - ? Query! + public global::Vapi.QueryTool PickQuery() => Query is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Query' but the value was {ToString()}."); /// @@ -528,8 +528,8 @@ public bool TryPickGoogleCalendarEventCreate( /// /// /// - public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => IsGoogleCalendarEventCreate - ? GoogleCalendarEventCreate! + public global::Vapi.GoogleCalendarCreateEventTool PickGoogleCalendarEventCreate() => GoogleCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarEventCreate' but the value was {ToString()}."); /// @@ -565,8 +565,8 @@ public bool TryPickGoogleSheetsRowAppend( /// /// /// - public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => IsGoogleSheetsRowAppend - ? GoogleSheetsRowAppend! + public global::Vapi.GoogleSheetsRowAppendTool PickGoogleSheetsRowAppend() => GoogleSheetsRowAppend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSheetsRowAppend' but the value was {ToString()}."); /// @@ -602,8 +602,8 @@ public bool TryPickGoogleCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => IsGoogleCalendarAvailabilityCheck - ? GoogleCalendarAvailabilityCheck! + public global::Vapi.GoogleCalendarCheckAvailabilityTool PickGoogleCalendarAvailabilityCheck() => GoogleCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -639,8 +639,8 @@ public bool TryPickSlackMessageSend( /// /// /// - public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => IsSlackMessageSend - ? SlackMessageSend! + public global::Vapi.SlackSendMessageTool PickSlackMessageSend() => SlackMessageSend is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SlackMessageSend' but the value was {ToString()}."); /// @@ -676,8 +676,8 @@ public bool TryPickSms( /// /// /// - public global::Vapi.SmsTool PickSms() => IsSms - ? Sms! + public global::Vapi.SmsTool PickSms() => Sms is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Sms' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickMcp( /// /// /// - public global::Vapi.McpTool PickMcp() => IsMcp - ? Mcp! + public global::Vapi.McpTool PickMcp() => Mcp is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Mcp' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickGohighlevelCalendarAvailabilityCheck( /// /// /// - public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => IsGohighlevelCalendarAvailabilityCheck - ? GohighlevelCalendarAvailabilityCheck! + public global::Vapi.GoHighLevelCalendarAvailabilityTool PickGohighlevelCalendarAvailabilityCheck() => GohighlevelCalendarAvailabilityCheck is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarAvailabilityCheck' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickGohighlevelCalendarEventCreate( /// /// /// - public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => IsGohighlevelCalendarEventCreate - ? GohighlevelCalendarEventCreate! + public global::Vapi.GoHighLevelCalendarEventCreateTool PickGohighlevelCalendarEventCreate() => GohighlevelCalendarEventCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelCalendarEventCreate' but the value was {ToString()}."); /// @@ -824,8 +824,8 @@ public bool TryPickGohighlevelContactCreate( /// /// /// - public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => IsGohighlevelContactCreate - ? GohighlevelContactCreate! + public global::Vapi.GoHighLevelContactCreateTool PickGohighlevelContactCreate() => GohighlevelContactCreate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactCreate' but the value was {ToString()}."); /// @@ -861,8 +861,8 @@ public bool TryPickGohighlevelContactGet( /// /// /// - public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => IsGohighlevelContactGet - ? GohighlevelContactGet! + public global::Vapi.GoHighLevelContactGetTool PickGohighlevelContactGet() => GohighlevelContactGet is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GohighlevelContactGet' but the value was {ToString()}."); /// @@ -898,8 +898,8 @@ public bool TryPickSipRequest( /// /// /// - public global::Vapi.SipRequestTool PickSipRequest() => IsSipRequest - ? SipRequest! + public global::Vapi.SipRequestTool PickSipRequest() => SipRequest is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'SipRequest' but the value was {ToString()}."); /// @@ -935,8 +935,8 @@ public bool TryPickVoicemail( /// /// /// - public global::Vapi.VoicemailTool PickVoicemail() => IsVoicemail - ? Voicemail! + public global::Vapi.VoicemailTool PickVoicemail() => Voicemail is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Voicemail' but the value was {ToString()}."); /// /// @@ -1680,105 +1680,105 @@ public bool Validate() Validate(); } - if (IsApiRequest && apiRequest != null) + if (ApiRequest is { } __value0 && apiRequest != null) { - return apiRequest(ApiRequest!); + return apiRequest(__value0); } - else if (IsCode && code != null) + else if (Code is { } __value1 && code != null) { - return code(Code!); + return code(__value1); } - else if (IsDtmf && dtmf != null) + else if (Dtmf is { } __value2 && dtmf != null) { - return dtmf(Dtmf!); + return dtmf(__value2); } - else if (IsEndCall && endCall != null) + else if (EndCall is { } __value3 && endCall != null) { - return endCall(EndCall!); + return endCall(__value3); } - else if (IsFunction && function != null) + else if (Function is { } __value4 && function != null) { - return function(Function!); + return function(__value4); } - else if (IsKnowledgeBase && knowledgeBase != null) + else if (KnowledgeBase is { } __value5 && knowledgeBase != null) { - return knowledgeBase(KnowledgeBase!); + return knowledgeBase(__value5); } - else if (IsGhl && ghl != null) + else if (Ghl is { } __value6 && ghl != null) { - return ghl(Ghl!); + return ghl(__value6); } - else if (IsTransferCall && transferCall != null) + else if (TransferCall is { } __value7 && transferCall != null) { - return transferCall(TransferCall!); + return transferCall(__value7); } - else if (IsHandoff && handoff != null) + else if (Handoff is { } __value8 && handoff != null) { - return handoff(Handoff!); + return handoff(__value8); } - else if (IsBash && bash != null) + else if (Bash is { } __value9 && bash != null) { - return bash(Bash!); + return bash(__value9); } - else if (IsComputer && computer != null) + else if (Computer is { } __value10 && computer != null) { - return computer(Computer!); + return computer(__value10); } - else if (IsTextEditor && textEditor != null) + else if (TextEditor is { } __value11 && textEditor != null) { - return textEditor(TextEditor!); + return textEditor(__value11); } - else if (IsQuery && query != null) + else if (Query is { } __value12 && query != null) { - return query(Query!); + return query(__value12); } - else if (IsGoogleCalendarEventCreate && googleCalendarEventCreate != null) + else if (GoogleCalendarEventCreate is { } __value13 && googleCalendarEventCreate != null) { - return googleCalendarEventCreate(GoogleCalendarEventCreate!); + return googleCalendarEventCreate(__value13); } - else if (IsGoogleSheetsRowAppend && googleSheetsRowAppend != null) + else if (GoogleSheetsRowAppend is { } __value14 && googleSheetsRowAppend != null) { - return googleSheetsRowAppend(GoogleSheetsRowAppend!); + return googleSheetsRowAppend(__value14); } - else if (IsGoogleCalendarAvailabilityCheck && googleCalendarAvailabilityCheck != null) + else if (GoogleCalendarAvailabilityCheck is { } __value15 && googleCalendarAvailabilityCheck != null) { - return googleCalendarAvailabilityCheck(GoogleCalendarAvailabilityCheck!); + return googleCalendarAvailabilityCheck(__value15); } - else if (IsSlackMessageSend && slackMessageSend != null) + else if (SlackMessageSend is { } __value16 && slackMessageSend != null) { - return slackMessageSend(SlackMessageSend!); + return slackMessageSend(__value16); } - else if (IsSms && sms != null) + else if (Sms is { } __value17 && sms != null) { - return sms(Sms!); + return sms(__value17); } - else if (IsMcp && mcp != null) + else if (Mcp is { } __value18 && mcp != null) { - return mcp(Mcp!); + return mcp(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck && gohighlevelCalendarAvailabilityCheck != null) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19 && gohighlevelCalendarAvailabilityCheck != null) { - return gohighlevelCalendarAvailabilityCheck(GohighlevelCalendarAvailabilityCheck!); + return gohighlevelCalendarAvailabilityCheck(__value19); } - else if (IsGohighlevelCalendarEventCreate && gohighlevelCalendarEventCreate != null) + else if (GohighlevelCalendarEventCreate is { } __value20 && gohighlevelCalendarEventCreate != null) { - return gohighlevelCalendarEventCreate(GohighlevelCalendarEventCreate!); + return gohighlevelCalendarEventCreate(__value20); } - else if (IsGohighlevelContactCreate && gohighlevelContactCreate != null) + else if (GohighlevelContactCreate is { } __value21 && gohighlevelContactCreate != null) { - return gohighlevelContactCreate(GohighlevelContactCreate!); + return gohighlevelContactCreate(__value21); } - else if (IsGohighlevelContactGet && gohighlevelContactGet != null) + else if (GohighlevelContactGet is { } __value22 && gohighlevelContactGet != null) { - return gohighlevelContactGet(GohighlevelContactGet!); + return gohighlevelContactGet(__value22); } - else if (IsSipRequest && sipRequest != null) + else if (SipRequest is { } __value23 && sipRequest != null) { - return sipRequest(SipRequest!); + return sipRequest(__value23); } - else if (IsVoicemail && voicemail != null) + else if (Voicemail is { } __value24 && voicemail != null) { - return voicemail(Voicemail!); + return voicemail(__value24); } return default(TResult); @@ -1844,105 +1844,105 @@ public void Match( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } @@ -1982,105 +1982,105 @@ public void Switch( Validate(); } - if (IsApiRequest) + if (ApiRequest is { } __value0) { - apiRequest?.Invoke(ApiRequest!); + apiRequest?.Invoke(__value0); } - else if (IsCode) + else if (Code is { } __value1) { - code?.Invoke(Code!); + code?.Invoke(__value1); } - else if (IsDtmf) + else if (Dtmf is { } __value2) { - dtmf?.Invoke(Dtmf!); + dtmf?.Invoke(__value2); } - else if (IsEndCall) + else if (EndCall is { } __value3) { - endCall?.Invoke(EndCall!); + endCall?.Invoke(__value3); } - else if (IsFunction) + else if (Function is { } __value4) { - function?.Invoke(Function!); + function?.Invoke(__value4); } - else if (IsKnowledgeBase) + else if (KnowledgeBase is { } __value5) { - knowledgeBase?.Invoke(KnowledgeBase!); + knowledgeBase?.Invoke(__value5); } - else if (IsGhl) + else if (Ghl is { } __value6) { - ghl?.Invoke(Ghl!); + ghl?.Invoke(__value6); } - else if (IsTransferCall) + else if (TransferCall is { } __value7) { - transferCall?.Invoke(TransferCall!); + transferCall?.Invoke(__value7); } - else if (IsHandoff) + else if (Handoff is { } __value8) { - handoff?.Invoke(Handoff!); + handoff?.Invoke(__value8); } - else if (IsBash) + else if (Bash is { } __value9) { - bash?.Invoke(Bash!); + bash?.Invoke(__value9); } - else if (IsComputer) + else if (Computer is { } __value10) { - computer?.Invoke(Computer!); + computer?.Invoke(__value10); } - else if (IsTextEditor) + else if (TextEditor is { } __value11) { - textEditor?.Invoke(TextEditor!); + textEditor?.Invoke(__value11); } - else if (IsQuery) + else if (Query is { } __value12) { - query?.Invoke(Query!); + query?.Invoke(__value12); } - else if (IsGoogleCalendarEventCreate) + else if (GoogleCalendarEventCreate is { } __value13) { - googleCalendarEventCreate?.Invoke(GoogleCalendarEventCreate!); + googleCalendarEventCreate?.Invoke(__value13); } - else if (IsGoogleSheetsRowAppend) + else if (GoogleSheetsRowAppend is { } __value14) { - googleSheetsRowAppend?.Invoke(GoogleSheetsRowAppend!); + googleSheetsRowAppend?.Invoke(__value14); } - else if (IsGoogleCalendarAvailabilityCheck) + else if (GoogleCalendarAvailabilityCheck is { } __value15) { - googleCalendarAvailabilityCheck?.Invoke(GoogleCalendarAvailabilityCheck!); + googleCalendarAvailabilityCheck?.Invoke(__value15); } - else if (IsSlackMessageSend) + else if (SlackMessageSend is { } __value16) { - slackMessageSend?.Invoke(SlackMessageSend!); + slackMessageSend?.Invoke(__value16); } - else if (IsSms) + else if (Sms is { } __value17) { - sms?.Invoke(Sms!); + sms?.Invoke(__value17); } - else if (IsMcp) + else if (Mcp is { } __value18) { - mcp?.Invoke(Mcp!); + mcp?.Invoke(__value18); } - else if (IsGohighlevelCalendarAvailabilityCheck) + else if (GohighlevelCalendarAvailabilityCheck is { } __value19) { - gohighlevelCalendarAvailabilityCheck?.Invoke(GohighlevelCalendarAvailabilityCheck!); + gohighlevelCalendarAvailabilityCheck?.Invoke(__value19); } - else if (IsGohighlevelCalendarEventCreate) + else if (GohighlevelCalendarEventCreate is { } __value20) { - gohighlevelCalendarEventCreate?.Invoke(GohighlevelCalendarEventCreate!); + gohighlevelCalendarEventCreate?.Invoke(__value20); } - else if (IsGohighlevelContactCreate) + else if (GohighlevelContactCreate is { } __value21) { - gohighlevelContactCreate?.Invoke(GohighlevelContactCreate!); + gohighlevelContactCreate?.Invoke(__value21); } - else if (IsGohighlevelContactGet) + else if (GohighlevelContactGet is { } __value22) { - gohighlevelContactGet?.Invoke(GohighlevelContactGet!); + gohighlevelContactGet?.Invoke(__value22); } - else if (IsSipRequest) + else if (SipRequest is { } __value23) { - sipRequest?.Invoke(SipRequest!); + sipRequest?.Invoke(__value23); } - else if (IsVoicemail) + else if (Voicemail is { } __value24) { - voicemail?.Invoke(Voicemail!); + voicemail?.Invoke(__value24); } } diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerCreate.g.cs index 9aaed428..ea69b94c 100644 --- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessScorecardControllerCreateResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessScorecardControllerCreateResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessScorecardControllerCreateResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessScorecardControllerCreateResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessScorecardControllerCreateResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGet.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGet.g.cs index 9f6907ca..0cf16fff 100644 --- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGet.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGet.g.cs @@ -145,7 +145,7 @@ partial void ProcessScorecardControllerGetResponseContent( PrepareScorecardControllerGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessScorecardControllerGetResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessScorecardControllerGetResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessScorecardControllerGetResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessScorecardControllerGetResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessScorecardControllerGetResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGetPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGetPaginated.g.cs index 2d4ac49f..6de51133 100644 --- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGetPaginated.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerGetPaginated.g.cs @@ -290,7 +290,7 @@ partial void ProcessScorecardControllerGetPaginatedResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ partial void ProcessScorecardControllerGetPaginatedResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -365,7 +365,7 @@ partial void ProcessScorecardControllerGetPaginatedResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessScorecardControllerGetPaginatedResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -435,7 +435,7 @@ partial void ProcessScorecardControllerGetPaginatedResponseContent( pathTemplate: "\"/observability/scorecard\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerRemove.g.cs index 91999dda..7b13d444 100644 --- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessScorecardControllerRemoveResponseContent( PrepareScorecardControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessScorecardControllerRemoveResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessScorecardControllerRemoveResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessScorecardControllerRemoveResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessScorecardControllerRemoveResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessScorecardControllerRemoveResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerUpdate.g.cs index f6963e76..e0b865c1 100644 --- a/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ObservabilityScorecardClient.ScorecardControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessScorecardControllerUpdateResponseContent( PrepareScorecardControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessScorecardControllerUpdateResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessScorecardControllerUpdateResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessScorecardControllerUpdateResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessScorecardControllerUpdateResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessScorecardControllerUpdateResponseContent( pathTemplate: "$\"/observability/scorecard/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.13.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.13.g.cs index f0b76a06..f46171ab 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.13.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.13.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// @@ -374,8 +374,8 @@ public bool TryPickValue10( /// /// /// - public T10 PickValue10() => IsValue10 - ? Value10! + public T10 PickValue10() => Value10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}."); /// @@ -411,8 +411,8 @@ public bool TryPickValue11( /// /// /// - public T11 PickValue11() => IsValue11 - ? Value11! + public T11 PickValue11() => Value11 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}."); /// @@ -448,8 +448,8 @@ public bool TryPickValue12( /// /// /// - public T12 PickValue12() => IsValue12 - ? Value12! + public T12 PickValue12() => Value12 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickValue13( /// /// /// - public T13 PickValue13() => IsValue13 - ? Value13! + public T13 PickValue13() => Value13 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}."); /// /// @@ -891,57 +891,57 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } - else if (IsValue10 && value10 != null) + else if (Value10 is { } __value9 && value10 != null) { - return value10(Value10!); + return value10(__value9); } - else if (IsValue11 && value11 != null) + else if (Value11 is { } __value10 && value11 != null) { - return value11(Value11!); + return value11(__value10); } - else if (IsValue12 && value12 != null) + else if (Value12 is { } __value11 && value12 != null) { - return value12(Value12!); + return value12(__value11); } - else if (IsValue13 && value13 != null) + else if (Value13 is { } __value12 && value13 != null) { - return value13(Value13!); + return value13(__value12); } return default(TResult); @@ -983,57 +983,57 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } } @@ -1061,57 +1061,57 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.14.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.14.g.cs index ae4e1b79..ad596a57 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.14.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.14.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// @@ -374,8 +374,8 @@ public bool TryPickValue10( /// /// /// - public T10 PickValue10() => IsValue10 - ? Value10! + public T10 PickValue10() => Value10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}."); /// @@ -411,8 +411,8 @@ public bool TryPickValue11( /// /// /// - public T11 PickValue11() => IsValue11 - ? Value11! + public T11 PickValue11() => Value11 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}."); /// @@ -448,8 +448,8 @@ public bool TryPickValue12( /// /// /// - public T12 PickValue12() => IsValue12 - ? Value12! + public T12 PickValue12() => Value12 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickValue13( /// /// /// - public T13 PickValue13() => IsValue13 - ? Value13! + public T13 PickValue13() => Value13 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}."); /// @@ -522,8 +522,8 @@ public bool TryPickValue14( /// /// /// - public T14 PickValue14() => IsValue14 - ? Value14! + public T14 PickValue14() => Value14 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value14' but the value was {ToString()}."); /// /// @@ -956,61 +956,61 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } - else if (IsValue10 && value10 != null) + else if (Value10 is { } __value9 && value10 != null) { - return value10(Value10!); + return value10(__value9); } - else if (IsValue11 && value11 != null) + else if (Value11 is { } __value10 && value11 != null) { - return value11(Value11!); + return value11(__value10); } - else if (IsValue12 && value12 != null) + else if (Value12 is { } __value11 && value12 != null) { - return value12(Value12!); + return value12(__value11); } - else if (IsValue13 && value13 != null) + else if (Value13 is { } __value12 && value13 != null) { - return value13(Value13!); + return value13(__value12); } - else if (IsValue14 && value14 != null) + else if (Value14 is { } __value13 && value14 != null) { - return value14(Value14!); + return value14(__value13); } return default(TResult); @@ -1054,61 +1054,61 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } } @@ -1137,61 +1137,61 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.17.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.17.g.cs index 531acdb5..5b54f107 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.17.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.17.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// @@ -374,8 +374,8 @@ public bool TryPickValue10( /// /// /// - public T10 PickValue10() => IsValue10 - ? Value10! + public T10 PickValue10() => Value10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}."); /// @@ -411,8 +411,8 @@ public bool TryPickValue11( /// /// /// - public T11 PickValue11() => IsValue11 - ? Value11! + public T11 PickValue11() => Value11 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}."); /// @@ -448,8 +448,8 @@ public bool TryPickValue12( /// /// /// - public T12 PickValue12() => IsValue12 - ? Value12! + public T12 PickValue12() => Value12 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickValue13( /// /// /// - public T13 PickValue13() => IsValue13 - ? Value13! + public T13 PickValue13() => Value13 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}."); /// @@ -522,8 +522,8 @@ public bool TryPickValue14( /// /// /// - public T14 PickValue14() => IsValue14 - ? Value14! + public T14 PickValue14() => Value14 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value14' but the value was {ToString()}."); /// @@ -559,8 +559,8 @@ public bool TryPickValue15( /// /// /// - public T15 PickValue15() => IsValue15 - ? Value15! + public T15 PickValue15() => Value15 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value15' but the value was {ToString()}."); /// @@ -596,8 +596,8 @@ public bool TryPickValue16( /// /// /// - public T16 PickValue16() => IsValue16 - ? Value16! + public T16 PickValue16() => Value16 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value16' but the value was {ToString()}."); /// @@ -633,8 +633,8 @@ public bool TryPickValue17( /// /// /// - public T17 PickValue17() => IsValue17 - ? Value17! + public T17 PickValue17() => Value17 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value17' but the value was {ToString()}."); /// /// @@ -1151,73 +1151,73 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } - else if (IsValue10 && value10 != null) + else if (Value10 is { } __value9 && value10 != null) { - return value10(Value10!); + return value10(__value9); } - else if (IsValue11 && value11 != null) + else if (Value11 is { } __value10 && value11 != null) { - return value11(Value11!); + return value11(__value10); } - else if (IsValue12 && value12 != null) + else if (Value12 is { } __value11 && value12 != null) { - return value12(Value12!); + return value12(__value11); } - else if (IsValue13 && value13 != null) + else if (Value13 is { } __value12 && value13 != null) { - return value13(Value13!); + return value13(__value12); } - else if (IsValue14 && value14 != null) + else if (Value14 is { } __value13 && value14 != null) { - return value14(Value14!); + return value14(__value13); } - else if (IsValue15 && value15 != null) + else if (Value15 is { } __value14 && value15 != null) { - return value15(Value15!); + return value15(__value14); } - else if (IsValue16 && value16 != null) + else if (Value16 is { } __value15 && value16 != null) { - return value16(Value16!); + return value16(__value15); } - else if (IsValue17 && value17 != null) + else if (Value17 is { } __value16 && value17 != null) { - return value17(Value17!); + return value17(__value16); } return default(TResult); @@ -1267,73 +1267,73 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } } @@ -1365,73 +1365,73 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.19.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.19.g.cs index e6b64d4f..5a4657c0 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.19.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.19.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// @@ -374,8 +374,8 @@ public bool TryPickValue10( /// /// /// - public T10 PickValue10() => IsValue10 - ? Value10! + public T10 PickValue10() => Value10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}."); /// @@ -411,8 +411,8 @@ public bool TryPickValue11( /// /// /// - public T11 PickValue11() => IsValue11 - ? Value11! + public T11 PickValue11() => Value11 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}."); /// @@ -448,8 +448,8 @@ public bool TryPickValue12( /// /// /// - public T12 PickValue12() => IsValue12 - ? Value12! + public T12 PickValue12() => Value12 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickValue13( /// /// /// - public T13 PickValue13() => IsValue13 - ? Value13! + public T13 PickValue13() => Value13 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}."); /// @@ -522,8 +522,8 @@ public bool TryPickValue14( /// /// /// - public T14 PickValue14() => IsValue14 - ? Value14! + public T14 PickValue14() => Value14 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value14' but the value was {ToString()}."); /// @@ -559,8 +559,8 @@ public bool TryPickValue15( /// /// /// - public T15 PickValue15() => IsValue15 - ? Value15! + public T15 PickValue15() => Value15 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value15' but the value was {ToString()}."); /// @@ -596,8 +596,8 @@ public bool TryPickValue16( /// /// /// - public T16 PickValue16() => IsValue16 - ? Value16! + public T16 PickValue16() => Value16 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value16' but the value was {ToString()}."); /// @@ -633,8 +633,8 @@ public bool TryPickValue17( /// /// /// - public T17 PickValue17() => IsValue17 - ? Value17! + public T17 PickValue17() => Value17 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value17' but the value was {ToString()}."); /// @@ -670,8 +670,8 @@ public bool TryPickValue18( /// /// /// - public T18 PickValue18() => IsValue18 - ? Value18! + public T18 PickValue18() => Value18 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value18' but the value was {ToString()}."); /// @@ -707,8 +707,8 @@ public bool TryPickValue19( /// /// /// - public T19 PickValue19() => IsValue19 - ? Value19! + public T19 PickValue19() => Value19 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value19' but the value was {ToString()}."); /// /// @@ -1281,81 +1281,81 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } - else if (IsValue10 && value10 != null) + else if (Value10 is { } __value9 && value10 != null) { - return value10(Value10!); + return value10(__value9); } - else if (IsValue11 && value11 != null) + else if (Value11 is { } __value10 && value11 != null) { - return value11(Value11!); + return value11(__value10); } - else if (IsValue12 && value12 != null) + else if (Value12 is { } __value11 && value12 != null) { - return value12(Value12!); + return value12(__value11); } - else if (IsValue13 && value13 != null) + else if (Value13 is { } __value12 && value13 != null) { - return value13(Value13!); + return value13(__value12); } - else if (IsValue14 && value14 != null) + else if (Value14 is { } __value13 && value14 != null) { - return value14(Value14!); + return value14(__value13); } - else if (IsValue15 && value15 != null) + else if (Value15 is { } __value14 && value15 != null) { - return value15(Value15!); + return value15(__value14); } - else if (IsValue16 && value16 != null) + else if (Value16 is { } __value15 && value16 != null) { - return value16(Value16!); + return value16(__value15); } - else if (IsValue17 && value17 != null) + else if (Value17 is { } __value16 && value17 != null) { - return value17(Value17!); + return value17(__value16); } - else if (IsValue18 && value18 != null) + else if (Value18 is { } __value17 && value18 != null) { - return value18(Value18!); + return value18(__value17); } - else if (IsValue19 && value19 != null) + else if (Value19 is { } __value18 && value19 != null) { - return value19(Value19!); + return value19(__value18); } return default(TResult); @@ -1409,81 +1409,81 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } } @@ -1517,81 +1517,81 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.2.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.2.g.cs index dd2bfb03..26d96a72 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.2.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.20.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.20.g.cs index 2cbc8db7..a65ceec6 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.20.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.20.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// @@ -374,8 +374,8 @@ public bool TryPickValue10( /// /// /// - public T10 PickValue10() => IsValue10 - ? Value10! + public T10 PickValue10() => Value10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}."); /// @@ -411,8 +411,8 @@ public bool TryPickValue11( /// /// /// - public T11 PickValue11() => IsValue11 - ? Value11! + public T11 PickValue11() => Value11 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}."); /// @@ -448,8 +448,8 @@ public bool TryPickValue12( /// /// /// - public T12 PickValue12() => IsValue12 - ? Value12! + public T12 PickValue12() => Value12 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickValue13( /// /// /// - public T13 PickValue13() => IsValue13 - ? Value13! + public T13 PickValue13() => Value13 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}."); /// @@ -522,8 +522,8 @@ public bool TryPickValue14( /// /// /// - public T14 PickValue14() => IsValue14 - ? Value14! + public T14 PickValue14() => Value14 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value14' but the value was {ToString()}."); /// @@ -559,8 +559,8 @@ public bool TryPickValue15( /// /// /// - public T15 PickValue15() => IsValue15 - ? Value15! + public T15 PickValue15() => Value15 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value15' but the value was {ToString()}."); /// @@ -596,8 +596,8 @@ public bool TryPickValue16( /// /// /// - public T16 PickValue16() => IsValue16 - ? Value16! + public T16 PickValue16() => Value16 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value16' but the value was {ToString()}."); /// @@ -633,8 +633,8 @@ public bool TryPickValue17( /// /// /// - public T17 PickValue17() => IsValue17 - ? Value17! + public T17 PickValue17() => Value17 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value17' but the value was {ToString()}."); /// @@ -670,8 +670,8 @@ public bool TryPickValue18( /// /// /// - public T18 PickValue18() => IsValue18 - ? Value18! + public T18 PickValue18() => Value18 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value18' but the value was {ToString()}."); /// @@ -707,8 +707,8 @@ public bool TryPickValue19( /// /// /// - public T19 PickValue19() => IsValue19 - ? Value19! + public T19 PickValue19() => Value19 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value19' but the value was {ToString()}."); /// @@ -744,8 +744,8 @@ public bool TryPickValue20( /// /// /// - public T20 PickValue20() => IsValue20 - ? Value20! + public T20 PickValue20() => Value20 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value20' but the value was {ToString()}."); /// /// @@ -1346,85 +1346,85 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } - else if (IsValue10 && value10 != null) + else if (Value10 is { } __value9 && value10 != null) { - return value10(Value10!); + return value10(__value9); } - else if (IsValue11 && value11 != null) + else if (Value11 is { } __value10 && value11 != null) { - return value11(Value11!); + return value11(__value10); } - else if (IsValue12 && value12 != null) + else if (Value12 is { } __value11 && value12 != null) { - return value12(Value12!); + return value12(__value11); } - else if (IsValue13 && value13 != null) + else if (Value13 is { } __value12 && value13 != null) { - return value13(Value13!); + return value13(__value12); } - else if (IsValue14 && value14 != null) + else if (Value14 is { } __value13 && value14 != null) { - return value14(Value14!); + return value14(__value13); } - else if (IsValue15 && value15 != null) + else if (Value15 is { } __value14 && value15 != null) { - return value15(Value15!); + return value15(__value14); } - else if (IsValue16 && value16 != null) + else if (Value16 is { } __value15 && value16 != null) { - return value16(Value16!); + return value16(__value15); } - else if (IsValue17 && value17 != null) + else if (Value17 is { } __value16 && value17 != null) { - return value17(Value17!); + return value17(__value16); } - else if (IsValue18 && value18 != null) + else if (Value18 is { } __value17 && value18 != null) { - return value18(Value18!); + return value18(__value17); } - else if (IsValue19 && value19 != null) + else if (Value19 is { } __value18 && value19 != null) { - return value19(Value19!); + return value19(__value18); } - else if (IsValue20 && value20 != null) + else if (Value20 is { } __value19 && value20 != null) { - return value20(Value20!); + return value20(__value19); } return default(TResult); @@ -1480,85 +1480,85 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } } @@ -1593,85 +1593,85 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.22.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.22.g.cs index c5b75dea..3b7522ff 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.22.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.22.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// @@ -374,8 +374,8 @@ public bool TryPickValue10( /// /// /// - public T10 PickValue10() => IsValue10 - ? Value10! + public T10 PickValue10() => Value10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}."); /// @@ -411,8 +411,8 @@ public bool TryPickValue11( /// /// /// - public T11 PickValue11() => IsValue11 - ? Value11! + public T11 PickValue11() => Value11 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}."); /// @@ -448,8 +448,8 @@ public bool TryPickValue12( /// /// /// - public T12 PickValue12() => IsValue12 - ? Value12! + public T12 PickValue12() => Value12 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickValue13( /// /// /// - public T13 PickValue13() => IsValue13 - ? Value13! + public T13 PickValue13() => Value13 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}."); /// @@ -522,8 +522,8 @@ public bool TryPickValue14( /// /// /// - public T14 PickValue14() => IsValue14 - ? Value14! + public T14 PickValue14() => Value14 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value14' but the value was {ToString()}."); /// @@ -559,8 +559,8 @@ public bool TryPickValue15( /// /// /// - public T15 PickValue15() => IsValue15 - ? Value15! + public T15 PickValue15() => Value15 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value15' but the value was {ToString()}."); /// @@ -596,8 +596,8 @@ public bool TryPickValue16( /// /// /// - public T16 PickValue16() => IsValue16 - ? Value16! + public T16 PickValue16() => Value16 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value16' but the value was {ToString()}."); /// @@ -633,8 +633,8 @@ public bool TryPickValue17( /// /// /// - public T17 PickValue17() => IsValue17 - ? Value17! + public T17 PickValue17() => Value17 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value17' but the value was {ToString()}."); /// @@ -670,8 +670,8 @@ public bool TryPickValue18( /// /// /// - public T18 PickValue18() => IsValue18 - ? Value18! + public T18 PickValue18() => Value18 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value18' but the value was {ToString()}."); /// @@ -707,8 +707,8 @@ public bool TryPickValue19( /// /// /// - public T19 PickValue19() => IsValue19 - ? Value19! + public T19 PickValue19() => Value19 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value19' but the value was {ToString()}."); /// @@ -744,8 +744,8 @@ public bool TryPickValue20( /// /// /// - public T20 PickValue20() => IsValue20 - ? Value20! + public T20 PickValue20() => Value20 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value20' but the value was {ToString()}."); /// @@ -781,8 +781,8 @@ public bool TryPickValue21( /// /// /// - public T21 PickValue21() => IsValue21 - ? Value21! + public T21 PickValue21() => Value21 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value21' but the value was {ToString()}."); /// @@ -818,8 +818,8 @@ public bool TryPickValue22( /// /// /// - public T22 PickValue22() => IsValue22 - ? Value22! + public T22 PickValue22() => Value22 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value22' but the value was {ToString()}."); /// /// @@ -1476,93 +1476,93 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } - else if (IsValue10 && value10 != null) + else if (Value10 is { } __value9 && value10 != null) { - return value10(Value10!); + return value10(__value9); } - else if (IsValue11 && value11 != null) + else if (Value11 is { } __value10 && value11 != null) { - return value11(Value11!); + return value11(__value10); } - else if (IsValue12 && value12 != null) + else if (Value12 is { } __value11 && value12 != null) { - return value12(Value12!); + return value12(__value11); } - else if (IsValue13 && value13 != null) + else if (Value13 is { } __value12 && value13 != null) { - return value13(Value13!); + return value13(__value12); } - else if (IsValue14 && value14 != null) + else if (Value14 is { } __value13 && value14 != null) { - return value14(Value14!); + return value14(__value13); } - else if (IsValue15 && value15 != null) + else if (Value15 is { } __value14 && value15 != null) { - return value15(Value15!); + return value15(__value14); } - else if (IsValue16 && value16 != null) + else if (Value16 is { } __value15 && value16 != null) { - return value16(Value16!); + return value16(__value15); } - else if (IsValue17 && value17 != null) + else if (Value17 is { } __value16 && value17 != null) { - return value17(Value17!); + return value17(__value16); } - else if (IsValue18 && value18 != null) + else if (Value18 is { } __value17 && value18 != null) { - return value18(Value18!); + return value18(__value17); } - else if (IsValue19 && value19 != null) + else if (Value19 is { } __value18 && value19 != null) { - return value19(Value19!); + return value19(__value18); } - else if (IsValue20 && value20 != null) + else if (Value20 is { } __value19 && value20 != null) { - return value20(Value20!); + return value20(__value19); } - else if (IsValue21 && value21 != null) + else if (Value21 is { } __value20 && value21 != null) { - return value21(Value21!); + return value21(__value20); } - else if (IsValue22 && value22 != null) + else if (Value22 is { } __value21 && value22 != null) { - return value22(Value22!); + return value22(__value21); } return default(TResult); @@ -1622,93 +1622,93 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } - else if (IsValue21) + else if (Value21 is { } __value20) { - value21?.Invoke(Value21!); + value21?.Invoke(__value20); } - else if (IsValue22) + else if (Value22 is { } __value21) { - value22?.Invoke(Value22!); + value22?.Invoke(__value21); } } @@ -1745,93 +1745,93 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } - else if (IsValue21) + else if (Value21 is { } __value20) { - value21?.Invoke(Value21!); + value21?.Invoke(__value20); } - else if (IsValue22) + else if (Value22 is { } __value21) { - value22?.Invoke(Value22!); + value22?.Invoke(__value21); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.23.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.23.g.cs index b415c75f..2eb47644 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.23.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.23.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// @@ -374,8 +374,8 @@ public bool TryPickValue10( /// /// /// - public T10 PickValue10() => IsValue10 - ? Value10! + public T10 PickValue10() => Value10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}."); /// @@ -411,8 +411,8 @@ public bool TryPickValue11( /// /// /// - public T11 PickValue11() => IsValue11 - ? Value11! + public T11 PickValue11() => Value11 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}."); /// @@ -448,8 +448,8 @@ public bool TryPickValue12( /// /// /// - public T12 PickValue12() => IsValue12 - ? Value12! + public T12 PickValue12() => Value12 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickValue13( /// /// /// - public T13 PickValue13() => IsValue13 - ? Value13! + public T13 PickValue13() => Value13 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}."); /// @@ -522,8 +522,8 @@ public bool TryPickValue14( /// /// /// - public T14 PickValue14() => IsValue14 - ? Value14! + public T14 PickValue14() => Value14 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value14' but the value was {ToString()}."); /// @@ -559,8 +559,8 @@ public bool TryPickValue15( /// /// /// - public T15 PickValue15() => IsValue15 - ? Value15! + public T15 PickValue15() => Value15 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value15' but the value was {ToString()}."); /// @@ -596,8 +596,8 @@ public bool TryPickValue16( /// /// /// - public T16 PickValue16() => IsValue16 - ? Value16! + public T16 PickValue16() => Value16 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value16' but the value was {ToString()}."); /// @@ -633,8 +633,8 @@ public bool TryPickValue17( /// /// /// - public T17 PickValue17() => IsValue17 - ? Value17! + public T17 PickValue17() => Value17 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value17' but the value was {ToString()}."); /// @@ -670,8 +670,8 @@ public bool TryPickValue18( /// /// /// - public T18 PickValue18() => IsValue18 - ? Value18! + public T18 PickValue18() => Value18 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value18' but the value was {ToString()}."); /// @@ -707,8 +707,8 @@ public bool TryPickValue19( /// /// /// - public T19 PickValue19() => IsValue19 - ? Value19! + public T19 PickValue19() => Value19 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value19' but the value was {ToString()}."); /// @@ -744,8 +744,8 @@ public bool TryPickValue20( /// /// /// - public T20 PickValue20() => IsValue20 - ? Value20! + public T20 PickValue20() => Value20 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value20' but the value was {ToString()}."); /// @@ -781,8 +781,8 @@ public bool TryPickValue21( /// /// /// - public T21 PickValue21() => IsValue21 - ? Value21! + public T21 PickValue21() => Value21 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value21' but the value was {ToString()}."); /// @@ -818,8 +818,8 @@ public bool TryPickValue22( /// /// /// - public T22 PickValue22() => IsValue22 - ? Value22! + public T22 PickValue22() => Value22 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value22' but the value was {ToString()}."); /// @@ -855,8 +855,8 @@ public bool TryPickValue23( /// /// /// - public T23 PickValue23() => IsValue23 - ? Value23! + public T23 PickValue23() => Value23 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value23' but the value was {ToString()}."); /// /// @@ -1541,97 +1541,97 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } - else if (IsValue10 && value10 != null) + else if (Value10 is { } __value9 && value10 != null) { - return value10(Value10!); + return value10(__value9); } - else if (IsValue11 && value11 != null) + else if (Value11 is { } __value10 && value11 != null) { - return value11(Value11!); + return value11(__value10); } - else if (IsValue12 && value12 != null) + else if (Value12 is { } __value11 && value12 != null) { - return value12(Value12!); + return value12(__value11); } - else if (IsValue13 && value13 != null) + else if (Value13 is { } __value12 && value13 != null) { - return value13(Value13!); + return value13(__value12); } - else if (IsValue14 && value14 != null) + else if (Value14 is { } __value13 && value14 != null) { - return value14(Value14!); + return value14(__value13); } - else if (IsValue15 && value15 != null) + else if (Value15 is { } __value14 && value15 != null) { - return value15(Value15!); + return value15(__value14); } - else if (IsValue16 && value16 != null) + else if (Value16 is { } __value15 && value16 != null) { - return value16(Value16!); + return value16(__value15); } - else if (IsValue17 && value17 != null) + else if (Value17 is { } __value16 && value17 != null) { - return value17(Value17!); + return value17(__value16); } - else if (IsValue18 && value18 != null) + else if (Value18 is { } __value17 && value18 != null) { - return value18(Value18!); + return value18(__value17); } - else if (IsValue19 && value19 != null) + else if (Value19 is { } __value18 && value19 != null) { - return value19(Value19!); + return value19(__value18); } - else if (IsValue20 && value20 != null) + else if (Value20 is { } __value19 && value20 != null) { - return value20(Value20!); + return value20(__value19); } - else if (IsValue21 && value21 != null) + else if (Value21 is { } __value20 && value21 != null) { - return value21(Value21!); + return value21(__value20); } - else if (IsValue22 && value22 != null) + else if (Value22 is { } __value21 && value22 != null) { - return value22(Value22!); + return value22(__value21); } - else if (IsValue23 && value23 != null) + else if (Value23 is { } __value22 && value23 != null) { - return value23(Value23!); + return value23(__value22); } return default(TResult); @@ -1693,97 +1693,97 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } - else if (IsValue21) + else if (Value21 is { } __value20) { - value21?.Invoke(Value21!); + value21?.Invoke(__value20); } - else if (IsValue22) + else if (Value22 is { } __value21) { - value22?.Invoke(Value22!); + value22?.Invoke(__value21); } - else if (IsValue23) + else if (Value23 is { } __value22) { - value23?.Invoke(Value23!); + value23?.Invoke(__value22); } } @@ -1821,97 +1821,97 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } - else if (IsValue21) + else if (Value21 is { } __value20) { - value21?.Invoke(Value21!); + value21?.Invoke(__value20); } - else if (IsValue22) + else if (Value22 is { } __value21) { - value22?.Invoke(Value22!); + value22?.Invoke(__value21); } - else if (IsValue23) + else if (Value23 is { } __value22) { - value23?.Invoke(Value23!); + value23?.Invoke(__value22); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.29.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.29.g.cs index 63192d0a..04251ca3 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.29.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.29.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// @@ -374,8 +374,8 @@ public bool TryPickValue10( /// /// /// - public T10 PickValue10() => IsValue10 - ? Value10! + public T10 PickValue10() => Value10 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}."); /// @@ -411,8 +411,8 @@ public bool TryPickValue11( /// /// /// - public T11 PickValue11() => IsValue11 - ? Value11! + public T11 PickValue11() => Value11 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}."); /// @@ -448,8 +448,8 @@ public bool TryPickValue12( /// /// /// - public T12 PickValue12() => IsValue12 - ? Value12! + public T12 PickValue12() => Value12 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}."); /// @@ -485,8 +485,8 @@ public bool TryPickValue13( /// /// /// - public T13 PickValue13() => IsValue13 - ? Value13! + public T13 PickValue13() => Value13 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}."); /// @@ -522,8 +522,8 @@ public bool TryPickValue14( /// /// /// - public T14 PickValue14() => IsValue14 - ? Value14! + public T14 PickValue14() => Value14 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value14' but the value was {ToString()}."); /// @@ -559,8 +559,8 @@ public bool TryPickValue15( /// /// /// - public T15 PickValue15() => IsValue15 - ? Value15! + public T15 PickValue15() => Value15 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value15' but the value was {ToString()}."); /// @@ -596,8 +596,8 @@ public bool TryPickValue16( /// /// /// - public T16 PickValue16() => IsValue16 - ? Value16! + public T16 PickValue16() => Value16 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value16' but the value was {ToString()}."); /// @@ -633,8 +633,8 @@ public bool TryPickValue17( /// /// /// - public T17 PickValue17() => IsValue17 - ? Value17! + public T17 PickValue17() => Value17 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value17' but the value was {ToString()}."); /// @@ -670,8 +670,8 @@ public bool TryPickValue18( /// /// /// - public T18 PickValue18() => IsValue18 - ? Value18! + public T18 PickValue18() => Value18 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value18' but the value was {ToString()}."); /// @@ -707,8 +707,8 @@ public bool TryPickValue19( /// /// /// - public T19 PickValue19() => IsValue19 - ? Value19! + public T19 PickValue19() => Value19 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value19' but the value was {ToString()}."); /// @@ -744,8 +744,8 @@ public bool TryPickValue20( /// /// /// - public T20 PickValue20() => IsValue20 - ? Value20! + public T20 PickValue20() => Value20 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value20' but the value was {ToString()}."); /// @@ -781,8 +781,8 @@ public bool TryPickValue21( /// /// /// - public T21 PickValue21() => IsValue21 - ? Value21! + public T21 PickValue21() => Value21 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value21' but the value was {ToString()}."); /// @@ -818,8 +818,8 @@ public bool TryPickValue22( /// /// /// - public T22 PickValue22() => IsValue22 - ? Value22! + public T22 PickValue22() => Value22 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value22' but the value was {ToString()}."); /// @@ -855,8 +855,8 @@ public bool TryPickValue23( /// /// /// - public T23 PickValue23() => IsValue23 - ? Value23! + public T23 PickValue23() => Value23 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value23' but the value was {ToString()}."); /// @@ -892,8 +892,8 @@ public bool TryPickValue24( /// /// /// - public T24 PickValue24() => IsValue24 - ? Value24! + public T24 PickValue24() => Value24 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value24' but the value was {ToString()}."); /// @@ -929,8 +929,8 @@ public bool TryPickValue25( /// /// /// - public T25 PickValue25() => IsValue25 - ? Value25! + public T25 PickValue25() => Value25 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value25' but the value was {ToString()}."); /// @@ -966,8 +966,8 @@ public bool TryPickValue26( /// /// /// - public T26 PickValue26() => IsValue26 - ? Value26! + public T26 PickValue26() => Value26 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value26' but the value was {ToString()}."); /// @@ -1003,8 +1003,8 @@ public bool TryPickValue27( /// /// /// - public T27 PickValue27() => IsValue27 - ? Value27! + public T27 PickValue27() => Value27 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value27' but the value was {ToString()}."); /// @@ -1040,8 +1040,8 @@ public bool TryPickValue28( /// /// /// - public T28 PickValue28() => IsValue28 - ? Value28! + public T28 PickValue28() => Value28 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value28' but the value was {ToString()}."); /// @@ -1077,8 +1077,8 @@ public bool TryPickValue29( /// /// /// - public T29 PickValue29() => IsValue29 - ? Value29! + public T29 PickValue29() => Value29 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value29' but the value was {ToString()}."); /// /// @@ -1931,121 +1931,121 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } - else if (IsValue10 && value10 != null) + else if (Value10 is { } __value9 && value10 != null) { - return value10(Value10!); + return value10(__value9); } - else if (IsValue11 && value11 != null) + else if (Value11 is { } __value10 && value11 != null) { - return value11(Value11!); + return value11(__value10); } - else if (IsValue12 && value12 != null) + else if (Value12 is { } __value11 && value12 != null) { - return value12(Value12!); + return value12(__value11); } - else if (IsValue13 && value13 != null) + else if (Value13 is { } __value12 && value13 != null) { - return value13(Value13!); + return value13(__value12); } - else if (IsValue14 && value14 != null) + else if (Value14 is { } __value13 && value14 != null) { - return value14(Value14!); + return value14(__value13); } - else if (IsValue15 && value15 != null) + else if (Value15 is { } __value14 && value15 != null) { - return value15(Value15!); + return value15(__value14); } - else if (IsValue16 && value16 != null) + else if (Value16 is { } __value15 && value16 != null) { - return value16(Value16!); + return value16(__value15); } - else if (IsValue17 && value17 != null) + else if (Value17 is { } __value16 && value17 != null) { - return value17(Value17!); + return value17(__value16); } - else if (IsValue18 && value18 != null) + else if (Value18 is { } __value17 && value18 != null) { - return value18(Value18!); + return value18(__value17); } - else if (IsValue19 && value19 != null) + else if (Value19 is { } __value18 && value19 != null) { - return value19(Value19!); + return value19(__value18); } - else if (IsValue20 && value20 != null) + else if (Value20 is { } __value19 && value20 != null) { - return value20(Value20!); + return value20(__value19); } - else if (IsValue21 && value21 != null) + else if (Value21 is { } __value20 && value21 != null) { - return value21(Value21!); + return value21(__value20); } - else if (IsValue22 && value22 != null) + else if (Value22 is { } __value21 && value22 != null) { - return value22(Value22!); + return value22(__value21); } - else if (IsValue23 && value23 != null) + else if (Value23 is { } __value22 && value23 != null) { - return value23(Value23!); + return value23(__value22); } - else if (IsValue24 && value24 != null) + else if (Value24 is { } __value23 && value24 != null) { - return value24(Value24!); + return value24(__value23); } - else if (IsValue25 && value25 != null) + else if (Value25 is { } __value24 && value25 != null) { - return value25(Value25!); + return value25(__value24); } - else if (IsValue26 && value26 != null) + else if (Value26 is { } __value25 && value26 != null) { - return value26(Value26!); + return value26(__value25); } - else if (IsValue27 && value27 != null) + else if (Value27 is { } __value26 && value27 != null) { - return value27(Value27!); + return value27(__value26); } - else if (IsValue28 && value28 != null) + else if (Value28 is { } __value27 && value28 != null) { - return value28(Value28!); + return value28(__value27); } - else if (IsValue29 && value29 != null) + else if (Value29 is { } __value28 && value29 != null) { - return value29(Value29!); + return value29(__value28); } return default(TResult); @@ -2119,121 +2119,121 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } - else if (IsValue21) + else if (Value21 is { } __value20) { - value21?.Invoke(Value21!); + value21?.Invoke(__value20); } - else if (IsValue22) + else if (Value22 is { } __value21) { - value22?.Invoke(Value22!); + value22?.Invoke(__value21); } - else if (IsValue23) + else if (Value23 is { } __value22) { - value23?.Invoke(Value23!); + value23?.Invoke(__value22); } - else if (IsValue24) + else if (Value24 is { } __value23) { - value24?.Invoke(Value24!); + value24?.Invoke(__value23); } - else if (IsValue25) + else if (Value25 is { } __value24) { - value25?.Invoke(Value25!); + value25?.Invoke(__value24); } - else if (IsValue26) + else if (Value26 is { } __value25) { - value26?.Invoke(Value26!); + value26?.Invoke(__value25); } - else if (IsValue27) + else if (Value27 is { } __value26) { - value27?.Invoke(Value27!); + value27?.Invoke(__value26); } - else if (IsValue28) + else if (Value28 is { } __value27) { - value28?.Invoke(Value28!); + value28?.Invoke(__value27); } - else if (IsValue29) + else if (Value29 is { } __value28) { - value29?.Invoke(Value29!); + value29?.Invoke(__value28); } } @@ -2277,121 +2277,121 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } - else if (IsValue10) + else if (Value10 is { } __value9) { - value10?.Invoke(Value10!); + value10?.Invoke(__value9); } - else if (IsValue11) + else if (Value11 is { } __value10) { - value11?.Invoke(Value11!); + value11?.Invoke(__value10); } - else if (IsValue12) + else if (Value12 is { } __value11) { - value12?.Invoke(Value12!); + value12?.Invoke(__value11); } - else if (IsValue13) + else if (Value13 is { } __value12) { - value13?.Invoke(Value13!); + value13?.Invoke(__value12); } - else if (IsValue14) + else if (Value14 is { } __value13) { - value14?.Invoke(Value14!); + value14?.Invoke(__value13); } - else if (IsValue15) + else if (Value15 is { } __value14) { - value15?.Invoke(Value15!); + value15?.Invoke(__value14); } - else if (IsValue16) + else if (Value16 is { } __value15) { - value16?.Invoke(Value16!); + value16?.Invoke(__value15); } - else if (IsValue17) + else if (Value17 is { } __value16) { - value17?.Invoke(Value17!); + value17?.Invoke(__value16); } - else if (IsValue18) + else if (Value18 is { } __value17) { - value18?.Invoke(Value18!); + value18?.Invoke(__value17); } - else if (IsValue19) + else if (Value19 is { } __value18) { - value19?.Invoke(Value19!); + value19?.Invoke(__value18); } - else if (IsValue20) + else if (Value20 is { } __value19) { - value20?.Invoke(Value20!); + value20?.Invoke(__value19); } - else if (IsValue21) + else if (Value21 is { } __value20) { - value21?.Invoke(Value21!); + value21?.Invoke(__value20); } - else if (IsValue22) + else if (Value22 is { } __value21) { - value22?.Invoke(Value22!); + value22?.Invoke(__value21); } - else if (IsValue23) + else if (Value23 is { } __value22) { - value23?.Invoke(Value23!); + value23?.Invoke(__value22); } - else if (IsValue24) + else if (Value24 is { } __value23) { - value24?.Invoke(Value24!); + value24?.Invoke(__value23); } - else if (IsValue25) + else if (Value25 is { } __value24) { - value25?.Invoke(Value25!); + value25?.Invoke(__value24); } - else if (IsValue26) + else if (Value26 is { } __value25) { - value26?.Invoke(Value26!); + value26?.Invoke(__value25); } - else if (IsValue27) + else if (Value27 is { } __value26) { - value27?.Invoke(Value27!); + value27?.Invoke(__value26); } - else if (IsValue28) + else if (Value28 is { } __value27) { - value28?.Invoke(Value28!); + value28?.Invoke(__value27); } - else if (IsValue29) + else if (Value29 is { } __value28) { - value29?.Invoke(Value29!); + value29?.Invoke(__value28); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.3.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.3.g.cs index afedef8f..0e5eea6c 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.3.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.3.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// /// @@ -241,17 +241,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } return default(TResult); @@ -273,17 +273,17 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } @@ -301,17 +301,17 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.4.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.4.g.cs index 6762d3ab..39f057bd 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.4.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.4.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// /// @@ -306,21 +306,21 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } return default(TResult); @@ -344,21 +344,21 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } @@ -377,21 +377,21 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.5.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.5.g.cs index 7a33b377..b09b345b 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.5.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.5.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// /// @@ -371,25 +371,25 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } return default(TResult); @@ -415,25 +415,25 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } } @@ -453,25 +453,25 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.6.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.6.g.cs index 069ff578..00be4b34 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.6.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.6.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// /// @@ -436,29 +436,29 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } return default(TResult); @@ -486,29 +486,29 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } } @@ -529,29 +529,29 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.7.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.7.g.cs index 5c168c27..87fda85f 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.7.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.7.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// /// @@ -501,33 +501,33 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } return default(TResult); @@ -557,33 +557,33 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } } @@ -605,33 +605,33 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.8.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.8.g.cs index 3130767c..56df72b8 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.8.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.8.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// /// @@ -566,37 +566,37 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } return default(TResult); @@ -628,37 +628,37 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } } @@ -681,37 +681,37 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } } diff --git a/src/libs/Vapi/Generated/Vapi.OneOf.9.g.cs b/src/libs/Vapi/Generated/Vapi.OneOf.9.g.cs index bb38ab7f..8b5ff98f 100644 --- a/src/libs/Vapi/Generated/Vapi.OneOf.9.g.cs +++ b/src/libs/Vapi/Generated/Vapi.OneOf.9.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// @@ -189,8 +189,8 @@ public bool TryPickValue5( /// /// /// - public T5 PickValue5() => IsValue5 - ? Value5! + public T5 PickValue5() => Value5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}."); /// @@ -226,8 +226,8 @@ public bool TryPickValue6( /// /// /// - public T6 PickValue6() => IsValue6 - ? Value6! + public T6 PickValue6() => Value6 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}."); /// @@ -263,8 +263,8 @@ public bool TryPickValue7( /// /// /// - public T7 PickValue7() => IsValue7 - ? Value7! + public T7 PickValue7() => Value7 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}."); /// @@ -300,8 +300,8 @@ public bool TryPickValue8( /// /// /// - public T8 PickValue8() => IsValue8 - ? Value8! + public T8 PickValue8() => Value8 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}."); /// @@ -337,8 +337,8 @@ public bool TryPickValue9( /// /// /// - public T9 PickValue9() => IsValue9 - ? Value9! + public T9 PickValue9() => Value9 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}."); /// /// @@ -631,41 +631,41 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } - else if (IsValue5 && value5 != null) + else if (Value5 is { } __value4 && value5 != null) { - return value5(Value5!); + return value5(__value4); } - else if (IsValue6 && value6 != null) + else if (Value6 is { } __value5 && value6 != null) { - return value6(Value6!); + return value6(__value5); } - else if (IsValue7 && value7 != null) + else if (Value7 is { } __value6 && value7 != null) { - return value7(Value7!); + return value7(__value6); } - else if (IsValue8 && value8 != null) + else if (Value8 is { } __value7 && value8 != null) { - return value8(Value8!); + return value8(__value7); } - else if (IsValue9 && value9 != null) + else if (Value9 is { } __value8 && value9 != null) { - return value9(Value9!); + return value9(__value8); } return default(TResult); @@ -699,41 +699,41 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } } @@ -757,41 +757,41 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } - else if (IsValue5) + else if (Value5 is { } __value4) { - value5?.Invoke(Value5!); + value5?.Invoke(__value4); } - else if (IsValue6) + else if (Value6 is { } __value5) { - value6?.Invoke(Value6!); + value6?.Invoke(__value5); } - else if (IsValue7) + else if (Value7 is { } __value6) { - value7?.Invoke(Value7!); + value7?.Invoke(__value6); } - else if (IsValue8) + else if (Value8 is { } __value7) { - value8?.Invoke(Value8!); + value8?.Invoke(__value7); } - else if (IsValue9) + else if (Value9 is { } __value8) { - value9?.Invoke(Value9!); + value9?.Invoke(__value8); } } diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerCreate.g.cs index 4aab62af..184bfcc5 100644 --- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerCreate.g.cs @@ -176,7 +176,7 @@ partial void ProcessPhoneNumberControllerCreateResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessPhoneNumberControllerCreateResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessPhoneNumberControllerCreateResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessPhoneNumberControllerCreateResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessPhoneNumberControllerCreateResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAll.g.cs index faf7bfd1..be06def0 100644 --- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAll.g.cs @@ -250,7 +250,7 @@ partial void ProcessPhoneNumberControllerFindAllResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -284,7 +284,7 @@ partial void ProcessPhoneNumberControllerFindAllResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessPhoneNumberControllerFindAllResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -373,7 +373,7 @@ partial void ProcessPhoneNumberControllerFindAllResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -395,7 +395,7 @@ partial void ProcessPhoneNumberControllerFindAllResponseContent( pathTemplate: "\"/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAllPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAllPaginated.g.cs index d57fe0ca..382dbebf 100644 --- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAllPaginated.g.cs +++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindAllPaginated.g.cs @@ -290,7 +290,7 @@ partial void ProcessPhoneNumberControllerFindAllPaginatedResponseContent( pathTemplate: "\"/v2/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ partial void ProcessPhoneNumberControllerFindAllPaginatedResponseContent( pathTemplate: "\"/v2/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -365,7 +365,7 @@ partial void ProcessPhoneNumberControllerFindAllPaginatedResponseContent( pathTemplate: "\"/v2/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessPhoneNumberControllerFindAllPaginatedResponseContent( pathTemplate: "\"/v2/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -435,7 +435,7 @@ partial void ProcessPhoneNumberControllerFindAllPaginatedResponseContent( pathTemplate: "\"/v2/phone-number\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindOne.g.cs index d35a0d3f..3b821952 100644 --- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessPhoneNumberControllerFindOneResponseContent( PreparePhoneNumberControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessPhoneNumberControllerFindOneResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessPhoneNumberControllerFindOneResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessPhoneNumberControllerFindOneResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessPhoneNumberControllerFindOneResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessPhoneNumberControllerFindOneResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerRemove.g.cs index d64b28db..30246ec5 100644 --- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessPhoneNumberControllerRemoveResponseContent( PreparePhoneNumberControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessPhoneNumberControllerRemoveResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessPhoneNumberControllerRemoveResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessPhoneNumberControllerRemoveResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessPhoneNumberControllerRemoveResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessPhoneNumberControllerRemoveResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerUpdate.g.cs index 20bdf120..777a6fdd 100644 --- a/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.PhoneNumbersClient.PhoneNumberControllerUpdate.g.cs @@ -162,7 +162,7 @@ partial void ProcessPhoneNumberControllerUpdateResponseContent( PreparePhoneNumberControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -185,7 +185,7 @@ partial void ProcessPhoneNumberControllerUpdateResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessPhoneNumberControllerUpdateResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessPhoneNumberControllerUpdateResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -308,7 +308,7 @@ partial void ProcessPhoneNumberControllerUpdateResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -330,7 +330,7 @@ partial void ProcessPhoneNumberControllerUpdateResponseContent( pathTemplate: "$\"/phone-number/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerCreateProviderResource.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerCreateProviderResource.g.cs index d2e51438..7bd185e6 100644 --- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerCreateProviderResource.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerCreateProviderResource.g.cs @@ -164,9 +164,9 @@ partial void ProcessProviderResourceControllerCreateProviderResourceResponseCont PrepareProviderResourceControllerCreateProviderResourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - contentType: contentType!, - provider: provider!, - resourceName: resourceName!); + contentType: contentType, + provider: provider, + resourceName: resourceName); return __httpRequest; } @@ -188,7 +188,7 @@ partial void ProcessProviderResourceControllerCreateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -222,7 +222,7 @@ partial void ProcessProviderResourceControllerCreateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -263,7 +263,7 @@ partial void ProcessProviderResourceControllerCreateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -311,7 +311,7 @@ partial void ProcessProviderResourceControllerCreateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -333,7 +333,7 @@ partial void ProcessProviderResourceControllerCreateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerDeleteProviderResource.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerDeleteProviderResource.g.cs index fb5b016e..35e23f1e 100644 --- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerDeleteProviderResource.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerDeleteProviderResource.g.cs @@ -161,9 +161,9 @@ partial void ProcessProviderResourceControllerDeleteProviderResourceResponseCont PrepareProviderResourceControllerDeleteProviderResourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - provider: provider!, - resourceName: resourceName!, - id: id!); + provider: provider, + resourceName: resourceName, + id: id); return __httpRequest; } @@ -185,7 +185,7 @@ partial void ProcessProviderResourceControllerDeleteProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessProviderResourceControllerDeleteProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessProviderResourceControllerDeleteProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -308,7 +308,7 @@ partial void ProcessProviderResourceControllerDeleteProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -330,7 +330,7 @@ partial void ProcessProviderResourceControllerDeleteProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResource.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResource.g.cs index fcad98e7..f9373ef6 100644 --- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResource.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResource.g.cs @@ -161,9 +161,9 @@ partial void ProcessProviderResourceControllerGetProviderResourceResponseContent PrepareProviderResourceControllerGetProviderResourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - provider: provider!, - resourceName: resourceName!, - id: id!); + provider: provider, + resourceName: resourceName, + id: id); return __httpRequest; } @@ -185,7 +185,7 @@ partial void ProcessProviderResourceControllerGetProviderResourceResponseContent pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessProviderResourceControllerGetProviderResourceResponseContent pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessProviderResourceControllerGetProviderResourceResponseContent pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -308,7 +308,7 @@ partial void ProcessProviderResourceControllerGetProviderResourceResponseContent pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -330,7 +330,7 @@ partial void ProcessProviderResourceControllerGetProviderResourceResponseContent pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResourcesPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResourcesPaginated.g.cs index ab35e7f7..9e5e4956 100644 --- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResourcesPaginated.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerGetProviderResourcesPaginated.g.cs @@ -281,8 +281,8 @@ partial void ProcessProviderResourceControllerGetProviderResourcesPaginatedRespo PrepareProviderResourceControllerGetProviderResourcesPaginatedRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - provider: provider!, - resourceName: resourceName!, + provider: provider, + resourceName: resourceName, id: id, resourceId: resourceId, page: page, @@ -318,7 +318,7 @@ partial void ProcessProviderResourceControllerGetProviderResourcesPaginatedRespo pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -352,7 +352,7 @@ partial void ProcessProviderResourceControllerGetProviderResourcesPaginatedRespo pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -393,7 +393,7 @@ partial void ProcessProviderResourceControllerGetProviderResourcesPaginatedRespo pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -441,7 +441,7 @@ partial void ProcessProviderResourceControllerGetProviderResourcesPaginatedRespo pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -463,7 +463,7 @@ partial void ProcessProviderResourceControllerGetProviderResourcesPaginatedRespo pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerUpdateProviderResource.g.cs b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerUpdateProviderResource.g.cs index 848bbbf6..30ab8e66 100644 --- a/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerUpdateProviderResource.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ProviderResourcesClient.ProviderResourceControllerUpdateProviderResource.g.cs @@ -161,9 +161,9 @@ partial void ProcessProviderResourceControllerUpdateProviderResourceResponseCont PrepareProviderResourceControllerUpdateProviderResourceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - provider: provider!, - resourceName: resourceName!, - id: id!); + provider: provider, + resourceName: resourceName, + id: id); return __httpRequest; } @@ -185,7 +185,7 @@ partial void ProcessProviderResourceControllerUpdateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessProviderResourceControllerUpdateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessProviderResourceControllerUpdateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -308,7 +308,7 @@ partial void ProcessProviderResourceControllerUpdateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -330,7 +330,7 @@ partial void ProcessProviderResourceControllerUpdateProviderResourceResponseCont pathTemplate: "$\"/provider/{(global::System.Uri.EscapeDataString(provider.ToValueString()))}/{(global::System.Uri.EscapeDataString(resourceName.ToValueString()))}/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerCreate.g.cs index ea507b6d..8781f287 100644 --- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessSessionControllerCreateResponseContent( pathTemplate: "\"/session\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessSessionControllerCreateResponseContent( pathTemplate: "\"/session\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessSessionControllerCreateResponseContent( pathTemplate: "\"/session\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessSessionControllerCreateResponseContent( pathTemplate: "\"/session\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessSessionControllerCreateResponseContent( pathTemplate: "\"/session\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindAllPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindAllPaginated.g.cs index 00944f30..73128aee 100644 --- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindAllPaginated.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindAllPaginated.g.cs @@ -486,7 +486,7 @@ partial void ProcessSessionControllerFindAllPaginatedResponseContent( pathTemplate: "\"/session\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -520,7 +520,7 @@ partial void ProcessSessionControllerFindAllPaginatedResponseContent( pathTemplate: "\"/session\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -561,7 +561,7 @@ partial void ProcessSessionControllerFindAllPaginatedResponseContent( pathTemplate: "\"/session\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -609,7 +609,7 @@ partial void ProcessSessionControllerFindAllPaginatedResponseContent( pathTemplate: "\"/session\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -631,7 +631,7 @@ partial void ProcessSessionControllerFindAllPaginatedResponseContent( pathTemplate: "\"/session\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindOne.g.cs index 7731285e..ce655d15 100644 --- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessSessionControllerFindOneResponseContent( PrepareSessionControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSessionControllerFindOneResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSessionControllerFindOneResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSessionControllerFindOneResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSessionControllerFindOneResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSessionControllerFindOneResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerRemove.g.cs index bc52900e..954708d9 100644 --- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessSessionControllerRemoveResponseContent( PrepareSessionControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSessionControllerRemoveResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSessionControllerRemoveResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSessionControllerRemoveResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSessionControllerRemoveResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSessionControllerRemoveResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerUpdate.g.cs index a1076ce1..4a7d1110 100644 --- a/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SessionsClient.SessionControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessSessionControllerUpdateResponseContent( PrepareSessionControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessSessionControllerUpdateResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessSessionControllerUpdateResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessSessionControllerUpdateResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessSessionControllerUpdateResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessSessionControllerUpdateResponseContent( pathTemplate: "$\"/session/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerCreate.g.cs index aa7e1a91..98ba8bdb 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessPersonalityControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessPersonalityControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessPersonalityControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessPersonalityControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessPersonalityControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerFindAll.g.cs index 513c8374..81259afc 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerFindAll.g.cs @@ -280,7 +280,7 @@ partial void ProcessPersonalityControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessPersonalityControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -355,7 +355,7 @@ partial void ProcessPersonalityControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -403,7 +403,7 @@ partial void ProcessPersonalityControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -425,7 +425,7 @@ partial void ProcessPersonalityControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/personality\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerFindOne.g.cs index 6ceae1f9..a146c0eb 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessPersonalityControllerFindOneResponseContent( PreparePersonalityControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessPersonalityControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessPersonalityControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessPersonalityControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessPersonalityControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessPersonalityControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerRemove.g.cs index 174de26a..afaaccbf 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessPersonalityControllerRemoveResponseContent( PreparePersonalityControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessPersonalityControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessPersonalityControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessPersonalityControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessPersonalityControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessPersonalityControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerUpdate.g.cs index 276687c9..bae9c6d0 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationPersonalitiesClient.PersonalityControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessPersonalityControllerUpdateResponseContent( PreparePersonalityControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessPersonalityControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessPersonalityControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessPersonalityControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessPersonalityControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessPersonalityControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/personality/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerCancelItem.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerCancelItem.g.cs index 180f9bdd..4bd5fecc 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerCancelItem.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerCancelItem.g.cs @@ -153,8 +153,8 @@ partial void ProcessSimulationRunControllerCancelItemResponseContent( PrepareSimulationRunControllerCancelItemRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, - itemId: itemId!); + id: id, + itemId: itemId); return __httpRequest; } @@ -176,7 +176,7 @@ partial void ProcessSimulationRunControllerCancelItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessSimulationRunControllerCancelItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessSimulationRunControllerCancelItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessSimulationRunControllerCancelItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessSimulationRunControllerCancelItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerFindItem.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerFindItem.g.cs index c5a1bd0e..2c9fd4fb 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerFindItem.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerFindItem.g.cs @@ -153,8 +153,8 @@ partial void ProcessSimulationRunControllerFindItemResponseContent( PrepareSimulationRunControllerFindItemRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, - itemId: itemId!); + id: id, + itemId: itemId); return __httpRequest; } @@ -176,7 +176,7 @@ partial void ProcessSimulationRunControllerFindItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessSimulationRunControllerFindItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessSimulationRunControllerFindItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessSimulationRunControllerFindItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessSimulationRunControllerFindItemResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerFindItems.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerFindItems.g.cs index 9f50e151..7f7bc2bb 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerFindItems.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerFindItems.g.cs @@ -282,7 +282,7 @@ partial void ProcessSimulationRunControllerFindItemsResponseContent( PrepareSimulationRunControllerFindItemsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, simulationId: simulationId, runId: runId, status: status, @@ -319,7 +319,7 @@ partial void ProcessSimulationRunControllerFindItemsResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -353,7 +353,7 @@ partial void ProcessSimulationRunControllerFindItemsResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -394,7 +394,7 @@ partial void ProcessSimulationRunControllerFindItemsResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -442,7 +442,7 @@ partial void ProcessSimulationRunControllerFindItemsResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -464,7 +464,7 @@ partial void ProcessSimulationRunControllerFindItemsResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}/item\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerGenerateSuggestions.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerGenerateSuggestions.g.cs index bbc1f154..025ee276 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerGenerateSuggestions.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationRunItemsClient.SimulationRunControllerGenerateSuggestions.g.cs @@ -166,9 +166,9 @@ await SimulationRunControllerGenerateSuggestionsAsResponseAsync( PrepareSimulationRunControllerGenerateSuggestionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, - itemId: itemId!, - force: force!, + id: id, + itemId: itemId, + force: force, persist: persist); return __httpRequest; @@ -191,7 +191,7 @@ await SimulationRunControllerGenerateSuggestionsAsResponseAsync( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -225,7 +225,7 @@ await SimulationRunControllerGenerateSuggestionsAsResponseAsync( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -266,7 +266,7 @@ await SimulationRunControllerGenerateSuggestionsAsResponseAsync( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ await SimulationRunControllerGenerateSuggestionsAsResponseAsync( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -336,7 +336,7 @@ await SimulationRunControllerGenerateSuggestionsAsResponseAsync( pathTemplate: "$\"/eval/simulation/run/{id}/item/{itemId}/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerCancelGroup.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerCancelGroup.g.cs index e2cb3eeb..09be9109 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerCancelGroup.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerCancelGroup.g.cs @@ -145,7 +145,7 @@ partial void ProcessSimulationRunControllerCancelGroupResponseContent( PrepareSimulationRunControllerCancelGroupRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSimulationRunControllerCancelGroupResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSimulationRunControllerCancelGroupResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSimulationRunControllerCancelGroupResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSimulationRunControllerCancelGroupResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSimulationRunControllerCancelGroupResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerCreate.g.cs index 9d31dca8..5df76209 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerCreate.g.cs @@ -193,7 +193,7 @@ partial void ProcessSimulationRunControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -227,7 +227,7 @@ partial void ProcessSimulationRunControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -268,7 +268,7 @@ partial void ProcessSimulationRunControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -316,7 +316,7 @@ partial void ProcessSimulationRunControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessSimulationRunControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerFindAll.g.cs index 67547e8e..f7023efc 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerFindAll.g.cs @@ -320,7 +320,7 @@ partial void ProcessSimulationRunControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -354,7 +354,7 @@ partial void ProcessSimulationRunControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -395,7 +395,7 @@ partial void ProcessSimulationRunControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -443,7 +443,7 @@ partial void ProcessSimulationRunControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -465,7 +465,7 @@ partial void ProcessSimulationRunControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/run\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerFindOne.g.cs index 126f7cfd..e8b32b95 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationRunsClient.SimulationRunControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessSimulationRunControllerFindOneResponseContent( PrepareSimulationRunControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSimulationRunControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSimulationRunControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSimulationRunControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSimulationRunControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSimulationRunControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/run/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerCreate.g.cs index 87a5925f..6924387d 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessScenarioControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessScenarioControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessScenarioControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessScenarioControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessScenarioControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerFindAll.g.cs index 49069f9d..269e4381 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerFindAll.g.cs @@ -300,7 +300,7 @@ partial void ProcessScenarioControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessScenarioControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -375,7 +375,7 @@ partial void ProcessScenarioControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -423,7 +423,7 @@ partial void ProcessScenarioControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -445,7 +445,7 @@ partial void ProcessScenarioControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/scenario\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerFindOne.g.cs index 2f0d263f..6bea748f 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessScenarioControllerFindOneResponseContent( PrepareScenarioControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessScenarioControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessScenarioControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessScenarioControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessScenarioControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessScenarioControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerRemove.g.cs index 13768a8e..bce67b82 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessScenarioControllerRemoveResponseContent( PrepareScenarioControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessScenarioControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessScenarioControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessScenarioControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessScenarioControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessScenarioControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerUpdate.g.cs index e4a1fe53..bcc71ba3 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationScenariosClient.ScenarioControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessScenarioControllerUpdateResponseContent( PrepareScenarioControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessScenarioControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessScenarioControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessScenarioControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessScenarioControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessScenarioControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/scenario/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerCreate.g.cs index ddf9d22c..1196489c 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessSimulationSuiteControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessSimulationSuiteControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessSimulationSuiteControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessSimulationSuiteControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessSimulationSuiteControllerCreateResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerDuplicate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerDuplicate.g.cs index 28710743..045b0112 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerDuplicate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerDuplicate.g.cs @@ -145,7 +145,7 @@ partial void ProcessSimulationSuiteControllerDuplicateResponseContent( PrepareSimulationSuiteControllerDuplicateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSimulationSuiteControllerDuplicateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}/duplicate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSimulationSuiteControllerDuplicateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}/duplicate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSimulationSuiteControllerDuplicateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}/duplicate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSimulationSuiteControllerDuplicateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}/duplicate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSimulationSuiteControllerDuplicateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}/duplicate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerFindAll.g.cs index f15b9a8d..0a8990fd 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerFindAll.g.cs @@ -290,7 +290,7 @@ partial void ProcessSimulationSuiteControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ partial void ProcessSimulationSuiteControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -365,7 +365,7 @@ partial void ProcessSimulationSuiteControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -413,7 +413,7 @@ partial void ProcessSimulationSuiteControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -435,7 +435,7 @@ partial void ProcessSimulationSuiteControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation/suite\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerFindOne.g.cs index af17d8f2..e24f6969 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessSimulationSuiteControllerFindOneResponseContent( PrepareSimulationSuiteControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSimulationSuiteControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSimulationSuiteControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSimulationSuiteControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSimulationSuiteControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSimulationSuiteControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerRemove.g.cs index 2a806a05..8fa256ca 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessSimulationSuiteControllerRemoveResponseContent( PrepareSimulationSuiteControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSimulationSuiteControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSimulationSuiteControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSimulationSuiteControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSimulationSuiteControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSimulationSuiteControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerUpdate.g.cs index b695cf44..2445f2bf 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationSuitesClient.SimulationSuiteControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessSimulationSuiteControllerUpdateResponseContent( PrepareSimulationSuiteControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessSimulationSuiteControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessSimulationSuiteControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessSimulationSuiteControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessSimulationSuiteControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessSimulationSuiteControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/suite/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerCreate.g.cs index bede8061..dc4f0356 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessSimulationControllerCreateResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessSimulationControllerCreateResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessSimulationControllerCreateResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessSimulationControllerCreateResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessSimulationControllerCreateResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerFindAll.g.cs index bd1a0771..84d704e1 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerFindAll.g.cs @@ -300,7 +300,7 @@ partial void ProcessSimulationControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessSimulationControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -375,7 +375,7 @@ partial void ProcessSimulationControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -423,7 +423,7 @@ partial void ProcessSimulationControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -445,7 +445,7 @@ partial void ProcessSimulationControllerFindAllResponseContent( pathTemplate: "\"/eval/simulation\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerFindOne.g.cs index f9488fbd..e969cda7 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessSimulationControllerFindOneResponseContent( PrepareSimulationControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSimulationControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSimulationControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSimulationControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSimulationControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSimulationControllerFindOneResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerGetConcurrency.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerGetConcurrency.g.cs index 88c2f6a2..4cd6312b 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerGetConcurrency.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerGetConcurrency.g.cs @@ -158,7 +158,7 @@ partial void ProcessSimulationControllerGetConcurrencyResponseContent( pathTemplate: "\"/eval/simulation/concurrency\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -192,7 +192,7 @@ partial void ProcessSimulationControllerGetConcurrencyResponseContent( pathTemplate: "\"/eval/simulation/concurrency\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessSimulationControllerGetConcurrencyResponseContent( pathTemplate: "\"/eval/simulation/concurrency\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -281,7 +281,7 @@ partial void ProcessSimulationControllerGetConcurrencyResponseContent( pathTemplate: "\"/eval/simulation/concurrency\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessSimulationControllerGetConcurrencyResponseContent( pathTemplate: "\"/eval/simulation/concurrency\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerRemove.g.cs index fc57c755..f14f3649 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessSimulationControllerRemoveResponseContent( PrepareSimulationControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSimulationControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSimulationControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSimulationControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSimulationControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSimulationControllerRemoveResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerUpdate.g.cs index 9ce207ed..1456b0db 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessSimulationControllerUpdateResponseContent( PrepareSimulationControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessSimulationControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessSimulationControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessSimulationControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessSimulationControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessSimulationControllerUpdateResponseContent( pathTemplate: "$\"/eval/simulation/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationGenerateControllerGenerate.g.cs b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationGenerateControllerGenerate.g.cs index 2ea49e0c..2b8c5fb6 100644 --- a/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationGenerateControllerGenerate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SimulationsClient.SimulationGenerateControllerGenerate.g.cs @@ -180,7 +180,7 @@ partial void ProcessSimulationGenerateControllerGenerateResponseContent( pathTemplate: "\"/eval/simulation/scenario/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessSimulationGenerateControllerGenerateResponseContent( pathTemplate: "\"/eval/simulation/scenario/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessSimulationGenerateControllerGenerateResponseContent( pathTemplate: "\"/eval/simulation/scenario/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessSimulationGenerateControllerGenerateResponseContent( pathTemplate: "\"/eval/simulation/scenario/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessSimulationGenerateControllerGenerateResponseContent( pathTemplate: "\"/eval/simulation/scenario/generate\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerCreate.g.cs index 475f5cd7..454e1142 100644 --- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessSquadControllerCreateResponseContent( pathTemplate: "\"/squad\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessSquadControllerCreateResponseContent( pathTemplate: "\"/squad\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessSquadControllerCreateResponseContent( pathTemplate: "\"/squad\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessSquadControllerCreateResponseContent( pathTemplate: "\"/squad\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessSquadControllerCreateResponseContent( pathTemplate: "\"/squad\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindAll.g.cs index a1c82215..7e095b69 100644 --- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindAll.g.cs @@ -260,7 +260,7 @@ partial void ProcessSquadControllerFindAllResponseContent( pathTemplate: "\"/squad\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -294,7 +294,7 @@ partial void ProcessSquadControllerFindAllResponseContent( pathTemplate: "\"/squad\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -335,7 +335,7 @@ partial void ProcessSquadControllerFindAllResponseContent( pathTemplate: "\"/squad\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -383,7 +383,7 @@ partial void ProcessSquadControllerFindAllResponseContent( pathTemplate: "\"/squad\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -405,7 +405,7 @@ partial void ProcessSquadControllerFindAllResponseContent( pathTemplate: "\"/squad\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindOne.g.cs index 769e2896..f9cec9b9 100644 --- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessSquadControllerFindOneResponseContent( PrepareSquadControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSquadControllerFindOneResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSquadControllerFindOneResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSquadControllerFindOneResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSquadControllerFindOneResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSquadControllerFindOneResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerRemove.g.cs index 9e4241e1..860cd424 100644 --- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessSquadControllerRemoveResponseContent( PrepareSquadControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessSquadControllerRemoveResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessSquadControllerRemoveResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessSquadControllerRemoveResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessSquadControllerRemoveResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessSquadControllerRemoveResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerUpdate.g.cs index c063160e..80a6c04a 100644 --- a/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.SquadsClient.SquadControllerUpdate.g.cs @@ -164,7 +164,7 @@ partial void ProcessSquadControllerUpdateResponseContent( PrepareSquadControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessSquadControllerUpdateResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessSquadControllerUpdateResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessSquadControllerUpdateResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessSquadControllerUpdateResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessSquadControllerUpdateResponseContent( pathTemplate: "$\"/squad/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerCreate.g.cs index 77166503..6c664a40 100644 --- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerCreate.g.cs @@ -178,7 +178,7 @@ partial void ProcessStructuredOutputControllerCreateResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessStructuredOutputControllerCreateResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessStructuredOutputControllerCreateResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessStructuredOutputControllerCreateResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessStructuredOutputControllerCreateResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindAll.g.cs index 4304b5f7..540b1b67 100644 --- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindAll.g.cs @@ -300,7 +300,7 @@ partial void ProcessStructuredOutputControllerFindAllResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessStructuredOutputControllerFindAllResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -375,7 +375,7 @@ partial void ProcessStructuredOutputControllerFindAllResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -423,7 +423,7 @@ partial void ProcessStructuredOutputControllerFindAllResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -445,7 +445,7 @@ partial void ProcessStructuredOutputControllerFindAllResponseContent( pathTemplate: "\"/structured-output\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindOne.g.cs index fb534b30..1681c95e 100644 --- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessStructuredOutputControllerFindOneResponseContent( PrepareStructuredOutputControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessStructuredOutputControllerFindOneResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessStructuredOutputControllerFindOneResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessStructuredOutputControllerFindOneResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessStructuredOutputControllerFindOneResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessStructuredOutputControllerFindOneResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRemove.g.cs index ec773a7a..e018c6be 100644 --- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessStructuredOutputControllerRemoveResponseContent( PrepareStructuredOutputControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessStructuredOutputControllerRemoveResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessStructuredOutputControllerRemoveResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessStructuredOutputControllerRemoveResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessStructuredOutputControllerRemoveResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessStructuredOutputControllerRemoveResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRun.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRun.g.cs index 7655d758..97733fce 100644 --- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRun.g.cs +++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerRun.g.cs @@ -178,7 +178,7 @@ partial void ProcessStructuredOutputControllerRunResponseContent( pathTemplate: "\"/structured-output/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessStructuredOutputControllerRunResponseContent( pathTemplate: "\"/structured-output/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessStructuredOutputControllerRunResponseContent( pathTemplate: "\"/structured-output/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessStructuredOutputControllerRunResponseContent( pathTemplate: "\"/structured-output/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessStructuredOutputControllerRunResponseContent( pathTemplate: "\"/structured-output/run\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerUpdate.g.cs index df75deca..b2c10465 100644 --- a/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.StructuredOutputsClient.StructuredOutputControllerUpdate.g.cs @@ -175,8 +175,8 @@ partial void ProcessStructuredOutputControllerUpdateResponseContent( PrepareStructuredOutputControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, - schemaOverride: schemaOverride!, + id: id, + schemaOverride: schemaOverride, request: request); return __httpRequest; @@ -199,7 +199,7 @@ partial void ProcessStructuredOutputControllerUpdateResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessStructuredOutputControllerUpdateResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -274,7 +274,7 @@ partial void ProcessStructuredOutputControllerUpdateResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessStructuredOutputControllerUpdateResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -344,7 +344,7 @@ partial void ProcessStructuredOutputControllerUpdateResponseContent( pathTemplate: "$\"/structured-output/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerCreate.g.cs index 5100a92e..01c6feee 100644 --- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerCreate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerCreate.g.cs @@ -176,7 +176,7 @@ partial void ProcessToolControllerCreateResponseContent( pathTemplate: "\"/tool\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessToolControllerCreateResponseContent( pathTemplate: "\"/tool\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessToolControllerCreateResponseContent( pathTemplate: "\"/tool\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessToolControllerCreateResponseContent( pathTemplate: "\"/tool\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessToolControllerCreateResponseContent( pathTemplate: "\"/tool\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindAll.g.cs index 8f3a0130..02c290c0 100644 --- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindAll.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindAll.g.cs @@ -250,7 +250,7 @@ partial void ProcessToolControllerFindAllResponseContent( pathTemplate: "\"/tool\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -284,7 +284,7 @@ partial void ProcessToolControllerFindAllResponseContent( pathTemplate: "\"/tool\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessToolControllerFindAllResponseContent( pathTemplate: "\"/tool\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -373,7 +373,7 @@ partial void ProcessToolControllerFindAllResponseContent( pathTemplate: "\"/tool\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -395,7 +395,7 @@ partial void ProcessToolControllerFindAllResponseContent( pathTemplate: "\"/tool\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindOne.g.cs index fb04c7e0..81cb021d 100644 --- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindOne.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerFindOne.g.cs @@ -145,7 +145,7 @@ partial void ProcessToolControllerFindOneResponseContent( PrepareToolControllerFindOneRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessToolControllerFindOneResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessToolControllerFindOneResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessToolControllerFindOneResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessToolControllerFindOneResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessToolControllerFindOneResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerRemove.g.cs index d0edda4f..778969cd 100644 --- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerRemove.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerRemove.g.cs @@ -145,7 +145,7 @@ partial void ProcessToolControllerRemoveResponseContent( PrepareToolControllerRemoveRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessToolControllerRemoveResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessToolControllerRemoveResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessToolControllerRemoveResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessToolControllerRemoveResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessToolControllerRemoveResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerUpdate.g.cs index f22823c9..2a6b66e9 100644 --- a/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerUpdate.g.cs +++ b/src/libs/Vapi/Generated/Vapi.ToolsClient.ToolControllerUpdate.g.cs @@ -162,7 +162,7 @@ partial void ProcessToolControllerUpdateResponseContent( PrepareToolControllerUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -185,7 +185,7 @@ partial void ProcessToolControllerUpdateResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -219,7 +219,7 @@ partial void ProcessToolControllerUpdateResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -260,7 +260,7 @@ partial void ProcessToolControllerUpdateResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -308,7 +308,7 @@ partial void ProcessToolControllerUpdateResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -330,7 +330,7 @@ partial void ProcessToolControllerUpdateResponseContent( pathTemplate: "$\"/tool/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options,