diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentResponse.g.cs index 83167dc..48f0578 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentResponse.g.cs @@ -95,9 +95,9 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::RetellAI.AgentResponseVariant1? value1 = default; - global::RetellAI.AgentRequest? value2 = default; - global::RetellAI.AgentResponseVariant3? value3 = default; + global::RetellAI.AgentResponseVariant1? agentResponseVariant1 = default; + global::RetellAI.AgentRequest? request = default; + global::RetellAI.AgentResponseVariant3? agentResponseVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -106,7 +106,7 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -121,7 +121,7 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentRequest).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + request = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -136,7 +136,7 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentResponseVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -147,13 +147,13 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization } } - if (value1 == null && value2 == null && value3 == null) + if (agentResponseVariant1 == null && request == null && agentResponseVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -166,7 +166,7 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentRequest).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + request = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -179,7 +179,7 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentResponseVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -190,11 +190,11 @@ public class AgentResponseJsonConverter : global::System.Text.Json.Serialization } var __value = new global::RetellAI.AgentResponse( - value1, + agentResponseVariant1, - value2, + request, - value3 + agentResponseVariant3 ); return __value; @@ -209,23 +209,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsAgentResponseVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentResponseVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentResponseVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Request!, typeInfo); } - else if (value.IsValue3) + else if (value.IsAgentResponseVariant3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentResponseVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentResponseVariant3!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentSwapNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentSwapNode.g.cs index 582fe73..2706852 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentSwapNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AgentSwapNode.g.cs @@ -43,8 +43,8 @@ public class AgentSwapNodeJsonConverter : global::System.Text.Json.Serialization if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.AgentSwapNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.AgentSwapNodeVariant2? agentSwapNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -53,7 +53,7 @@ public class AgentSwapNodeJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -68,7 +68,7 @@ public class AgentSwapNodeJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentSwapNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentSwapNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentSwapNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -79,13 +79,13 @@ public class AgentSwapNodeJsonConverter : global::System.Text.Json.Serialization } } - if (value1 == null && value2 == null) + if (@base == null && agentSwapNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,7 +98,7 @@ public class AgentSwapNodeJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentSwapNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentSwapNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentSwapNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,9 +109,9 @@ public class AgentSwapNodeJsonConverter : global::System.Text.Json.Serialization } var __value = new global::RetellAI.AgentSwapNode( - value1, + @base, - value2 + agentSwapNodeVariant2 ); return __value; @@ -126,17 +126,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsAgentSwapNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentSwapNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentSwapNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSwapNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AlwaysEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AlwaysEdge.g.cs index ea6fa63..099229e 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AlwaysEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.AlwaysEdge.g.cs @@ -37,8 +37,8 @@ public class AlwaysEdgeJsonConverter : global::System.Text.Json.Serialization.Js if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeEdge? value1 = default; - global::RetellAI.AlwaysEdgeVariant2? value2 = default; + global::RetellAI.NodeEdge? node = default; + global::RetellAI.AlwaysEdgeVariant2? alwaysEdgeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class AlwaysEdgeJsonConverter : global::System.Text.Json.Serialization.Js { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class AlwaysEdgeJsonConverter : global::System.Text.Json.Serialization.Js { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AlwaysEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AlwaysEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + alwaysEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class AlwaysEdgeJsonConverter : global::System.Text.Json.Serialization.Js } } - if (value1 == null && value2 == null) + if (node == null && alwaysEdgeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class AlwaysEdgeJsonConverter : global::System.Text.Json.Serialization.Js { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AlwaysEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AlwaysEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + alwaysEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class AlwaysEdgeJsonConverter : global::System.Text.Json.Serialization.Js } var __value = new global::RetellAI.AlwaysEdge( - value1, + node, - value2 + alwaysEdgeVariant2 ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsNode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Node!, typeInfo); } - else if (value.IsValue2) + else if (value.IsAlwaysEdgeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AlwaysEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AlwaysEdgeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AlwaysEdgeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BranchNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BranchNode.g.cs index f9e8878..2d8c700 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BranchNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BranchNode.g.cs @@ -37,8 +37,8 @@ public class BranchNodeJsonConverter : global::System.Text.Json.Serialization.Js if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.BranchNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.BranchNodeVariant2? branchNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class BranchNodeJsonConverter : global::System.Text.Json.Serialization.Js { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class BranchNodeJsonConverter : global::System.Text.Json.Serialization.Js { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BranchNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BranchNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + branchNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class BranchNodeJsonConverter : global::System.Text.Json.Serialization.Js } } - if (value1 == null && value2 == null) + if (@base == null && branchNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class BranchNodeJsonConverter : global::System.Text.Json.Serialization.Js { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BranchNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BranchNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + branchNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class BranchNodeJsonConverter : global::System.Text.Json.Serialization.Js } var __value = new global::RetellAI.BranchNode( - value1, + @base, - value2 + branchNodeVariant2 ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsBranchNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BranchNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BranchNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.BranchNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BridgeTransferNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BridgeTransferNode.g.cs index 291e30e..44f163f 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BridgeTransferNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.BridgeTransferNode.g.cs @@ -36,8 +36,8 @@ public class BridgeTransferNodeJsonConverter : global::System.Text.Json.Serializ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.BridgeTransferNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.BridgeTransferNodeVariant2? bridgeTransferNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -46,7 +46,7 @@ public class BridgeTransferNodeJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,7 +61,7 @@ public class BridgeTransferNodeJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BridgeTransferNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BridgeTransferNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + bridgeTransferNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,13 +72,13 @@ public class BridgeTransferNodeJsonConverter : global::System.Text.Json.Serializ } } - if (value1 == null && value2 == null) + if (@base == null && bridgeTransferNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +91,7 @@ public class BridgeTransferNodeJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BridgeTransferNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BridgeTransferNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + bridgeTransferNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +102,9 @@ public class BridgeTransferNodeJsonConverter : global::System.Text.Json.Serializ } var __value = new global::RetellAI.BridgeTransferNode( - value1, + @base, - value2 + bridgeTransferNodeVariant2 ); return __value; @@ -119,17 +119,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsBridgeTransferNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BridgeTransferNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BridgeTransferNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.BridgeTransferNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CancelTransferNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CancelTransferNode.g.cs index 96f7682..fb01c14 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CancelTransferNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CancelTransferNode.g.cs @@ -36,8 +36,8 @@ public class CancelTransferNodeJsonConverter : global::System.Text.Json.Serializ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.CancelTransferNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.CancelTransferNodeVariant2? cancelTransferNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -46,7 +46,7 @@ public class CancelTransferNodeJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,7 +61,7 @@ public class CancelTransferNodeJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CancelTransferNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CancelTransferNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + cancelTransferNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,13 +72,13 @@ public class CancelTransferNodeJsonConverter : global::System.Text.Json.Serializ } } - if (value1 == null && value2 == null) + if (@base == null && cancelTransferNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +91,7 @@ public class CancelTransferNodeJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CancelTransferNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CancelTransferNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + cancelTransferNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +102,9 @@ public class CancelTransferNodeJsonConverter : global::System.Text.Json.Serializ } var __value = new global::RetellAI.CancelTransferNode( - value1, + @base, - value2 + cancelTransferNodeVariant2 ); return __value; @@ -119,17 +119,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsCancelTransferNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CancelTransferNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CancelTransferNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CancelTransferNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ChatAgentResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ChatAgentResponse.g.cs index 2ae7b51..eff7a49 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ChatAgentResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ChatAgentResponse.g.cs @@ -61,9 +61,9 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::RetellAI.ChatAgentResponseVariant1? value1 = default; - global::RetellAI.ChatAgentRequest? value2 = default; - global::RetellAI.ChatAgentResponseVariant3? value3 = default; + global::RetellAI.ChatAgentResponseVariant1? chatAgentResponseVariant1 = default; + global::RetellAI.ChatAgentRequest? request = default; + global::RetellAI.ChatAgentResponseVariant3? chatAgentResponseVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -72,7 +72,7 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatAgentResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatAgentResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatAgentResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -87,7 +87,7 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatAgentRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatAgentRequest).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + request = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,7 +102,7 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatAgentResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatAgentResponseVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatAgentResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -113,13 +113,13 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null && value2 == null && value3 == null) + if (chatAgentResponseVariant1 == null && request == null && chatAgentResponseVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatAgentResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatAgentResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatAgentResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -132,7 +132,7 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatAgentRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatAgentRequest).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + request = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -145,7 +145,7 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatAgentResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatAgentResponseVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + chatAgentResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -156,11 +156,11 @@ public class ChatAgentResponseJsonConverter : global::System.Text.Json.Serializa } var __value = new global::RetellAI.ChatAgentResponse( - value1, + chatAgentResponseVariant1, - value2, + request, - value3 + chatAgentResponseVariant3 ); return __value; @@ -175,23 +175,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsChatAgentResponseVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatAgentResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatAgentResponseVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatAgentResponseVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatAgentRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatAgentRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Request!, typeInfo); } - else if (value.IsValue3) + else if (value.IsChatAgentResponseVariant3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatAgentResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatAgentResponseVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatAgentResponseVariant3!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CodeNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CodeNode.g.cs index 7ae0e1a..c8ebf63 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CodeNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CodeNode.g.cs @@ -43,8 +43,8 @@ public class CodeNodeJsonConverter : global::System.Text.Json.Serialization.Json if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.CodeNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.CodeNodeVariant2? codeNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -53,7 +53,7 @@ public class CodeNodeJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -68,7 +68,7 @@ public class CodeNodeJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CodeNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CodeNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -79,13 +79,13 @@ public class CodeNodeJsonConverter : global::System.Text.Json.Serialization.Json } } - if (value1 == null && value2 == null) + if (@base == null && codeNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,7 +98,7 @@ public class CodeNodeJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CodeNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CodeNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + codeNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,9 +109,9 @@ public class CodeNodeJsonConverter : global::System.Text.Json.Serialization.Json } var __value = new global::RetellAI.CodeNode( - value1, + @base, - value2 + codeNodeVariant2 ); return __value; @@ -126,17 +126,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsCodeNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CodeNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CodeNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ComponentNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ComponentNode.g.cs index abc9d2c..cd00e86 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ComponentNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ComponentNode.g.cs @@ -43,8 +43,8 @@ public class ComponentNodeJsonConverter : global::System.Text.Json.Serialization if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBaseCommon? value1 = default; - global::RetellAI.ComponentNodeVariant2? value2 = default; + global::RetellAI.NodeBaseCommon? baseCommon = default; + global::RetellAI.ComponentNodeVariant2? componentNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -53,7 +53,7 @@ public class ComponentNodeJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBaseCommon), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBaseCommon).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + baseCommon = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -68,7 +68,7 @@ public class ComponentNodeJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ComponentNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ComponentNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + componentNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -79,13 +79,13 @@ public class ComponentNodeJsonConverter : global::System.Text.Json.Serialization } } - if (value1 == null && value2 == null) + if (baseCommon == null && componentNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBaseCommon), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBaseCommon).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + baseCommon = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,7 +98,7 @@ public class ComponentNodeJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ComponentNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ComponentNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + componentNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,9 +109,9 @@ public class ComponentNodeJsonConverter : global::System.Text.Json.Serialization } var __value = new global::RetellAI.ComponentNode( - value1, + baseCommon, - value2 + componentNodeVariant2 ); return __value; @@ -126,17 +126,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBaseCommon) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBaseCommon), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBaseCommon).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.BaseCommon!, typeInfo); } - else if (value.IsValue2) + else if (value.IsComponentNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ComponentNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ComponentNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComponentNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlow.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlow.g.cs index 06b4995..bae00e1 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlow.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlow.g.cs @@ -50,8 +50,8 @@ public class ConversationFlowJsonConverter : global::System.Text.Json.Serializat if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.ConversationFlowOverride? value1 = default; - global::RetellAI.ConversationFlowVariant2? value2 = default; + global::RetellAI.ConversationFlowOverride? @override = default; + global::RetellAI.ConversationFlowVariant2? conversationFlowVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -60,7 +60,7 @@ public class ConversationFlowJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowOverride), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowOverride).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @override = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +75,7 @@ public class ConversationFlowJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlowVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -86,13 +86,13 @@ public class ConversationFlowJsonConverter : global::System.Text.Json.Serializat } } - if (value1 == null && value2 == null) + if (@override == null && conversationFlowVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowOverride), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowOverride).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @override = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -105,7 +105,7 @@ public class ConversationFlowJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlowVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -116,9 +116,9 @@ public class ConversationFlowJsonConverter : global::System.Text.Json.Serializat } var __value = new global::RetellAI.ConversationFlow( - value1, + @override, - value2 + conversationFlowVariant2 ); return __value; @@ -133,17 +133,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsOverride) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowOverride), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowOverride).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Override!, typeInfo); } - else if (value.IsValue2) + else if (value.IsConversationFlowVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationFlowVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowComponentResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowComponentResponse.g.cs index 049c665..3d19c78 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowComponentResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowComponentResponse.g.cs @@ -36,8 +36,8 @@ public class ConversationFlowComponentResponseJsonConverter : global::System.Tex if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.CreateConversationFlowComponentRequest? value1 = default; - global::RetellAI.ConversationFlowComponentResponseVariant2? value2 = default; + global::RetellAI.CreateConversationFlowComponentRequest? createRequest = default; + global::RetellAI.ConversationFlowComponentResponseVariant2? conversationFlowComponentResponseVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -46,7 +46,7 @@ public class ConversationFlowComponentResponseJsonConverter : global::System.Tex { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CreateConversationFlowComponentRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CreateConversationFlowComponentRequest).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,7 +61,7 @@ public class ConversationFlowComponentResponseJsonConverter : global::System.Tex { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowComponentResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowComponentResponseVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlowComponentResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,13 +72,13 @@ public class ConversationFlowComponentResponseJsonConverter : global::System.Tex } } - if (value1 == null && value2 == null) + if (createRequest == null && conversationFlowComponentResponseVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CreateConversationFlowComponentRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CreateConversationFlowComponentRequest).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +91,7 @@ public class ConversationFlowComponentResponseJsonConverter : global::System.Tex { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowComponentResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowComponentResponseVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlowComponentResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +102,9 @@ public class ConversationFlowComponentResponseJsonConverter : global::System.Tex } var __value = new global::RetellAI.ConversationFlowComponentResponse( - value1, + createRequest, - value2 + conversationFlowComponentResponseVariant2 ); return __value; @@ -119,17 +119,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsCreateRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CreateConversationFlowComponentRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CreateConversationFlowComponentRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateRequest!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsConversationFlowComponentResponseVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowComponentResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowComponentResponseVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationFlowComponentResponseVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowNode.g.cs index 5481c03..3cbdf80 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowNode.g.cs @@ -210,21 +210,21 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial if (__score13 > __bestScore) { __bestScore = __score13; __bestIndex = 13; } if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } - global::RetellAI.ConversationNode? value1 = default; - global::RetellAI.SubagentNode? value2 = default; - global::RetellAI.EndNode? value3 = default; - global::RetellAI.FunctionNode? value4 = default; - global::RetellAI.CodeNode? value5 = default; - global::RetellAI.TransferCallNode? value6 = default; - global::RetellAI.PressDigitNode? value7 = default; - global::RetellAI.BranchNode? value8 = default; - global::RetellAI.SmsNode? value9 = default; - global::RetellAI.ExtractDynamicVariablesNode? value10 = default; - global::RetellAI.AgentSwapNode? value11 = default; - global::RetellAI.MCPNode? value12 = default; - global::RetellAI.ComponentNode? value13 = default; - global::RetellAI.BridgeTransferNode? value14 = default; - global::RetellAI.CancelTransferNode? value15 = default; + global::RetellAI.ConversationNode? conversationNode = default; + global::RetellAI.SubagentNode? subagent = default; + global::RetellAI.EndNode? end = default; + global::RetellAI.FunctionNode? function = default; + global::RetellAI.CodeNode? code = default; + global::RetellAI.TransferCallNode? transferCall = default; + global::RetellAI.PressDigitNode? pressDigit = default; + global::RetellAI.BranchNode? branch = default; + global::RetellAI.SmsNode? sms = default; + global::RetellAI.ExtractDynamicVariablesNode? extractDynamicVariables = default; + global::RetellAI.AgentSwapNode? agentSwap = default; + global::RetellAI.MCPNode? mcp = default; + global::RetellAI.ComponentNode? component = default; + global::RetellAI.BridgeTransferNode? bridgeTransfer = default; + global::RetellAI.CancelTransferNode? cancelTransfer = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -234,7 +234,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationNode).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationNode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -251,7 +251,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SubagentNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SubagentNode).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + subagent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -268,7 +268,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.EndNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.EndNode).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + end = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -285,7 +285,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FunctionNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FunctionNode).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -302,7 +302,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CodeNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CodeNode).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + code = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -319,7 +319,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TransferCallNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TransferCallNode).Name}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transferCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -336,7 +336,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.PressDigitNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.PressDigitNode).Name}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pressDigit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -353,7 +353,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BranchNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BranchNode).Name}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + branch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -370,7 +370,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsNode).Name}"); - value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sms = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -387,7 +387,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ExtractDynamicVariablesNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ExtractDynamicVariablesNode).Name}"); - value10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + extractDynamicVariables = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -404,7 +404,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentSwapNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentSwapNode).Name}"); - value11 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentSwap = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -421,7 +421,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MCPNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MCPNode).Name}"); - value12 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -438,7 +438,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ComponentNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ComponentNode).Name}"); - value13 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + component = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -455,7 +455,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BridgeTransferNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BridgeTransferNode).Name}"); - value14 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + bridgeTransfer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -472,7 +472,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CancelTransferNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CancelTransferNode).Name}"); - value15 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + cancelTransfer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -483,14 +483,14 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null && value10 == null && value11 == null && value12 == null && value13 == null && value14 == null && value15 == null) + if (conversationNode == null && subagent == null && end == null && function == null && code == null && transferCall == null && pressDigit == null && branch == null && sms == null && extractDynamicVariables == null && agentSwap == null && mcp == null && component == null && bridgeTransfer == null && cancelTransfer == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationNode).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationNode = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -504,7 +504,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SubagentNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SubagentNode).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + subagent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -518,7 +518,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.EndNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.EndNode).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + end = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -532,7 +532,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FunctionNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FunctionNode).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -546,7 +546,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CodeNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CodeNode).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + code = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -560,7 +560,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TransferCallNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TransferCallNode).Name}"); - value6 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transferCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -574,7 +574,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.PressDigitNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.PressDigitNode).Name}"); - value7 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pressDigit = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -588,7 +588,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BranchNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BranchNode).Name}"); - value8 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + branch = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -602,7 +602,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsNode).Name}"); - value9 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sms = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -616,7 +616,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ExtractDynamicVariablesNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ExtractDynamicVariablesNode).Name}"); - value10 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + extractDynamicVariables = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -630,7 +630,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentSwapNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentSwapNode).Name}"); - value11 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentSwap = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -644,7 +644,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MCPNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MCPNode).Name}"); - value12 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -658,7 +658,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ComponentNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ComponentNode).Name}"); - value13 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + component = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -672,7 +672,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BridgeTransferNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BridgeTransferNode).Name}"); - value14 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + bridgeTransfer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -686,7 +686,7 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CancelTransferNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CancelTransferNode).Name}"); - value15 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + cancelTransfer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -697,35 +697,35 @@ public class ConversationFlowNodeJsonConverter : global::System.Text.Json.Serial } var __value = new global::RetellAI.ConversationFlowNode( - value1, + conversationNode, - value2, + subagent, - value3, + end, - value4, + function, - value5, + code, - value6, + transferCall, - value7, + pressDigit, - value8, + branch, - value9, + sms, - value10, + extractDynamicVariables, - value11, + agentSwap, - value12, + mcp, - value13, + component, - value14, + bridgeTransfer, - value15 + cancelTransfer ); return __value; @@ -740,95 +740,95 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsConversationNode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationNode!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsSubagent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SubagentNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SubagentNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Subagent!.Value, typeInfo); } - else if (value.IsValue3) + else if (value.IsEnd) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.EndNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.EndNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.End!.Value, typeInfo); } - else if (value.IsValue4) + else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FunctionNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FunctionNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!.Value, typeInfo); } - else if (value.IsValue5) + else if (value.IsCode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CodeNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CodeNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Code!.Value, typeInfo); } - else if (value.IsValue6) + else if (value.IsTransferCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TransferCallNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TransferCallNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value6!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferCall!.Value, typeInfo); } - else if (value.IsValue7) + else if (value.IsPressDigit) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.PressDigitNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.PressDigitNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value7!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PressDigit!.Value, typeInfo); } - else if (value.IsValue8) + else if (value.IsBranch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BranchNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BranchNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value8!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Branch!.Value, typeInfo); } - else if (value.IsValue9) + else if (value.IsSms) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value9!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sms!.Value, typeInfo); } - else if (value.IsValue10) + else if (value.IsExtractDynamicVariables) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ExtractDynamicVariablesNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ExtractDynamicVariablesNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value10!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ExtractDynamicVariables!.Value, typeInfo); } - else if (value.IsValue11) + else if (value.IsAgentSwap) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentSwapNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentSwapNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value11!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentSwap!.Value, typeInfo); } - else if (value.IsValue12) + else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MCPNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MCPNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value12!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!.Value, typeInfo); } - else if (value.IsValue13) + else if (value.IsComponent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ComponentNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ComponentNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value13!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Component!.Value, typeInfo); } - else if (value.IsValue14) + else if (value.IsBridgeTransfer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.BridgeTransferNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.BridgeTransferNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value14!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.BridgeTransfer!.Value, typeInfo); } - else if (value.IsValue15) + else if (value.IsCancelTransfer) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CancelTransferNode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CancelTransferNode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value15!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CancelTransfer!.Value, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowResponse.g.cs index dd79d06..e97a12e 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationFlowResponse.g.cs @@ -35,8 +35,8 @@ public class ConversationFlowResponseJsonConverter : global::System.Text.Json.Se if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.ConversationFlow? value1 = default; - global::RetellAI.ConversationFlowResponseVariant2? value2 = default; + global::RetellAI.ConversationFlow? conversationFlow = default; + global::RetellAI.ConversationFlowResponseVariant2? conversationFlowResponseVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -45,7 +45,7 @@ public class ConversationFlowResponseJsonConverter : global::System.Text.Json.Se { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlow), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlow).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlow = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +60,7 @@ public class ConversationFlowResponseJsonConverter : global::System.Text.Json.Se { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowResponseVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlowResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,13 +71,13 @@ public class ConversationFlowResponseJsonConverter : global::System.Text.Json.Se } } - if (value1 == null && value2 == null) + if (conversationFlow == null && conversationFlowResponseVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlow), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlow).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlow = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -90,7 +90,7 @@ public class ConversationFlowResponseJsonConverter : global::System.Text.Json.Se { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowResponseVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlowResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -101,9 +101,9 @@ public class ConversationFlowResponseJsonConverter : global::System.Text.Json.Se } var __value = new global::RetellAI.ConversationFlowResponse( - value1, + conversationFlow, - value2 + conversationFlowResponseVariant2 ); return __value; @@ -118,17 +118,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsConversationFlow) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlow), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlow).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationFlow!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsConversationFlowResponseVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowResponseVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationFlowResponseVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationNode.g.cs index 2441f9f..0244150 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ConversationNode.g.cs @@ -46,9 +46,9 @@ public class ConversationNodeJsonConverter : global::System.Text.Json.Serializat if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.AgentOverrideConfig? value2 = default; - global::RetellAI.ConversationNodeVariant3? value3 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.AgentOverrideConfig? agentOverrideConfig = default; + global::RetellAI.ConversationNodeVariant3? conversationNodeVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -57,7 +57,7 @@ public class ConversationNodeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,7 +72,7 @@ public class ConversationNodeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentOverrideConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentOverrideConfig).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentOverrideConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -87,7 +87,7 @@ public class ConversationNodeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationNodeVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationNodeVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationNodeVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,13 +98,13 @@ public class ConversationNodeJsonConverter : global::System.Text.Json.Serializat } } - if (value1 == null && value2 == null && value3 == null) + if (@base == null && agentOverrideConfig == null && conversationNodeVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -117,7 +117,7 @@ public class ConversationNodeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentOverrideConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentOverrideConfig).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentOverrideConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -130,7 +130,7 @@ public class ConversationNodeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationNodeVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationNodeVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationNodeVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -141,11 +141,11 @@ public class ConversationNodeJsonConverter : global::System.Text.Json.Serializat } var __value = new global::RetellAI.ConversationNode( - value1, + @base, - value2, + agentOverrideConfig, - value3 + conversationNodeVariant3 ); return __value; @@ -160,23 +160,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsAgentOverrideConfig) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentOverrideConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentOverrideConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentOverrideConfig!, typeInfo); } - else if (value.IsValue3) + else if (value.IsConversationNodeVariant3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationNodeVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationNodeVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationNodeVariant3!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateConversationFlowComponentRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateConversationFlowComponentRequest.g.cs index 82724d8..10b02a8 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateConversationFlowComponentRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateConversationFlowComponentRequest.g.cs @@ -40,8 +40,8 @@ public class CreateConversationFlowComponentRequestJsonConverter : global::Syste if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.ConversationFlowComponent? value1 = default; - object? value2 = default; + global::RetellAI.ConversationFlowComponent? conversationFlowComponent = default; + object? createConversationFlowComponentRequestVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -50,7 +50,7 @@ public class CreateConversationFlowComponentRequestJsonConverter : global::Syste { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowComponent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowComponent).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlowComponent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -65,7 +65,7 @@ public class CreateConversationFlowComponentRequestJsonConverter : global::Syste { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createConversationFlowComponentRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -76,13 +76,13 @@ public class CreateConversationFlowComponentRequestJsonConverter : global::Syste } } - if (value1 == null && value2 == null) + if (conversationFlowComponent == null && createConversationFlowComponentRequestVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowComponent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowComponent).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlowComponent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +95,7 @@ public class CreateConversationFlowComponentRequestJsonConverter : global::Syste { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createConversationFlowComponentRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -106,9 +106,9 @@ public class CreateConversationFlowComponentRequestJsonConverter : global::Syste } var __value = new global::RetellAI.CreateConversationFlowComponentRequest( - value1, + conversationFlowComponent, - value2 + createConversationFlowComponentRequestVariant2 ); return __value; @@ -123,17 +123,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsConversationFlowComponent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlowComponent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlowComponent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationFlowComponent!, typeInfo); } - else if (value.IsValue2) + else if (value.IsCreateConversationFlowComponentRequestVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateConversationFlowComponentRequestVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateConversationFlowRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateConversationFlowRequest.g.cs index b978dfa..759d9b8 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateConversationFlowRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CreateConversationFlowRequest.g.cs @@ -54,8 +54,8 @@ public class CreateConversationFlowRequestJsonConverter : global::System.Text.Js if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.ConversationFlow? value1 = default; - object? value2 = default; + global::RetellAI.ConversationFlow? conversationFlow = default; + object? createConversationFlowRequestVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -65,7 +65,7 @@ public class CreateConversationFlowRequestJsonConverter : global::System.Text.Js var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlow), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlow).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlow = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +82,7 @@ public class CreateConversationFlowRequestJsonConverter : global::System.Text.Js var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createConversationFlowRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,14 +93,14 @@ public class CreateConversationFlowRequestJsonConverter : global::System.Text.Js } } - if (value1 == null && value2 == null) + if (conversationFlow == null && createConversationFlowRequestVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlow), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlow).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + conversationFlow = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +114,7 @@ public class CreateConversationFlowRequestJsonConverter : global::System.Text.Js var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + createConversationFlowRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -125,9 +125,9 @@ public class CreateConversationFlowRequestJsonConverter : global::System.Text.Js } var __value = new global::RetellAI.CreateConversationFlowRequest( - value1, + conversationFlow, - value2 + createConversationFlowRequestVariant2 ); return __value; @@ -142,17 +142,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsConversationFlow) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ConversationFlow), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ConversationFlow).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ConversationFlow!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsCreateConversationFlowRequestVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CreateConversationFlowRequestVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CustomFieldFilter.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CustomFieldFilter.g.cs index 745370c..3176182 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CustomFieldFilter.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.CustomFieldFilter.g.cs @@ -34,8 +34,8 @@ public class CustomFieldFilterJsonConverter : global::System.Text.Json.Serializa if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.ValueFilter? value1 = default; - global::RetellAI.CustomFieldFilterVariant2? value2 = default; + global::RetellAI.ValueFilter? value = default; + global::RetellAI.CustomFieldFilterVariant2? customFieldFilterVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -44,7 +44,7 @@ public class CustomFieldFilterJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ValueFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ValueFilter).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -59,7 +59,7 @@ public class CustomFieldFilterJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CustomFieldFilterVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CustomFieldFilterVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customFieldFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -70,13 +70,13 @@ public class CustomFieldFilterJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null && value2 == null) + if (value == null && customFieldFilterVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ValueFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ValueFilter).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +89,7 @@ public class CustomFieldFilterJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CustomFieldFilterVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CustomFieldFilterVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + customFieldFilterVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +100,9 @@ public class CustomFieldFilterJsonConverter : global::System.Text.Json.Serializa } var __value = new global::RetellAI.CustomFieldFilter( - value1, + value, - value2 + customFieldFilterVariant2 ); return __value; @@ -117,17 +117,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsValue) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ValueFilter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ValueFilter).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsCustomFieldFilterVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CustomFieldFilterVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CustomFieldFilterVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomFieldFilterVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ElseEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ElseEdge.g.cs index 198a8a2..9fc1362 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ElseEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ElseEdge.g.cs @@ -37,8 +37,8 @@ public class ElseEdgeJsonConverter : global::System.Text.Json.Serialization.Json if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeEdge? value1 = default; - global::RetellAI.ElseEdgeVariant2? value2 = default; + global::RetellAI.NodeEdge? node = default; + global::RetellAI.ElseEdgeVariant2? elseEdgeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class ElseEdgeJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class ElseEdgeJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ElseEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ElseEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + elseEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class ElseEdgeJsonConverter : global::System.Text.Json.Serialization.Json } } - if (value1 == null && value2 == null) + if (node == null && elseEdgeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class ElseEdgeJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ElseEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ElseEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + elseEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class ElseEdgeJsonConverter : global::System.Text.Json.Serialization.Json } var __value = new global::RetellAI.ElseEdge( - value1, + node, - value2 + elseEdgeVariant2 ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsNode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Node!, typeInfo); } - else if (value.IsValue2) + else if (value.IsElseEdgeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ElseEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ElseEdgeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ElseEdgeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.EndNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.EndNode.g.cs index c96560b..8a35669 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.EndNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.EndNode.g.cs @@ -36,8 +36,8 @@ public class EndNodeJsonConverter : global::System.Text.Json.Serialization.JsonC if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.EndNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.EndNodeVariant2? endNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -46,7 +46,7 @@ public class EndNodeJsonConverter : global::System.Text.Json.Serialization.JsonC { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,7 +61,7 @@ public class EndNodeJsonConverter : global::System.Text.Json.Serialization.JsonC { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.EndNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.EndNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + endNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,13 +72,13 @@ public class EndNodeJsonConverter : global::System.Text.Json.Serialization.JsonC } } - if (value1 == null && value2 == null) + if (@base == null && endNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +91,7 @@ public class EndNodeJsonConverter : global::System.Text.Json.Serialization.JsonC { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.EndNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.EndNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + endNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +102,9 @@ public class EndNodeJsonConverter : global::System.Text.Json.Serialization.JsonC } var __value = new global::RetellAI.EndNode( - value1, + @base, - value2 + endNodeVariant2 ); return __value; @@ -119,17 +119,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsEndNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.EndNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.EndNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EndNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ExtractDynamicVariablesNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ExtractDynamicVariablesNode.g.cs index 4a30fa0..77debb2 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ExtractDynamicVariablesNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ExtractDynamicVariablesNode.g.cs @@ -38,8 +38,8 @@ public class ExtractDynamicVariablesNodeJsonConverter : global::System.Text.Json if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.ExtractDynamicVariablesNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.ExtractDynamicVariablesNodeVariant2? extractDynamicVariablesNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -48,7 +48,7 @@ public class ExtractDynamicVariablesNodeJsonConverter : global::System.Text.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -63,7 +63,7 @@ public class ExtractDynamicVariablesNodeJsonConverter : global::System.Text.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + extractDynamicVariablesNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,13 +74,13 @@ public class ExtractDynamicVariablesNodeJsonConverter : global::System.Text.Json } } - if (value1 == null && value2 == null) + if (@base == null && extractDynamicVariablesNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,7 +93,7 @@ public class ExtractDynamicVariablesNodeJsonConverter : global::System.Text.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + extractDynamicVariablesNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,9 +104,9 @@ public class ExtractDynamicVariablesNodeJsonConverter : global::System.Text.Json } var __value = new global::RetellAI.ExtractDynamicVariablesNode( - value1, + @base, - value2 + extractDynamicVariablesNodeVariant2 ); return __value; @@ -121,17 +121,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsExtractDynamicVariablesNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ExtractDynamicVariablesNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FinetuneExampleUtterance.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FinetuneExampleUtterance.g.cs index f33a39d..1609cfb 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FinetuneExampleUtterance.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FinetuneExampleUtterance.g.cs @@ -44,9 +44,9 @@ public class FinetuneExampleUtteranceJsonConverter : global::System.Text.Json.Se if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::RetellAI.FinetuneExampleUtteranceVariant1? value1 = default; - global::RetellAI.FinetuneExampleUtteranceVariant2? value2 = default; - global::RetellAI.FinetuneExampleUtteranceVariant3? value3 = default; + global::RetellAI.FinetuneExampleUtteranceVariant1? finetuneExampleUtteranceVariant1 = default; + global::RetellAI.FinetuneExampleUtteranceVariant2? finetuneExampleUtteranceVariant2 = default; + global::RetellAI.FinetuneExampleUtteranceVariant3? finetuneExampleUtteranceVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -55,7 +55,7 @@ public class FinetuneExampleUtteranceJsonConverter : global::System.Text.Json.Se { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FinetuneExampleUtteranceVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FinetuneExampleUtteranceVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + finetuneExampleUtteranceVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -70,7 +70,7 @@ public class FinetuneExampleUtteranceJsonConverter : global::System.Text.Json.Se { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FinetuneExampleUtteranceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FinetuneExampleUtteranceVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + finetuneExampleUtteranceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -85,7 +85,7 @@ public class FinetuneExampleUtteranceJsonConverter : global::System.Text.Json.Se { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FinetuneExampleUtteranceVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FinetuneExampleUtteranceVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + finetuneExampleUtteranceVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -96,13 +96,13 @@ public class FinetuneExampleUtteranceJsonConverter : global::System.Text.Json.Se } } - if (value1 == null && value2 == null && value3 == null) + if (finetuneExampleUtteranceVariant1 == null && finetuneExampleUtteranceVariant2 == null && finetuneExampleUtteranceVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FinetuneExampleUtteranceVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FinetuneExampleUtteranceVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + finetuneExampleUtteranceVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -115,7 +115,7 @@ public class FinetuneExampleUtteranceJsonConverter : global::System.Text.Json.Se { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FinetuneExampleUtteranceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FinetuneExampleUtteranceVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + finetuneExampleUtteranceVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -128,7 +128,7 @@ public class FinetuneExampleUtteranceJsonConverter : global::System.Text.Json.Se { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FinetuneExampleUtteranceVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FinetuneExampleUtteranceVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + finetuneExampleUtteranceVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -139,11 +139,11 @@ public class FinetuneExampleUtteranceJsonConverter : global::System.Text.Json.Se } var __value = new global::RetellAI.FinetuneExampleUtterance( - value1, + finetuneExampleUtteranceVariant1, - value2, + finetuneExampleUtteranceVariant2, - value3 + finetuneExampleUtteranceVariant3 ); return __value; @@ -158,23 +158,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsFinetuneExampleUtteranceVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FinetuneExampleUtteranceVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FinetuneExampleUtteranceVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FinetuneExampleUtteranceVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsFinetuneExampleUtteranceVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FinetuneExampleUtteranceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FinetuneExampleUtteranceVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FinetuneExampleUtteranceVariant2!, typeInfo); } - else if (value.IsValue3) + else if (value.IsFinetuneExampleUtteranceVariant3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FinetuneExampleUtteranceVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FinetuneExampleUtteranceVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FinetuneExampleUtteranceVariant3!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FunctionNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FunctionNode.g.cs index b78d7cc..5159511 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FunctionNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.FunctionNode.g.cs @@ -42,8 +42,8 @@ public class FunctionNodeJsonConverter : global::System.Text.Json.Serialization. if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.FunctionNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.FunctionNodeVariant2? functionNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -52,7 +52,7 @@ public class FunctionNodeJsonConverter : global::System.Text.Json.Serialization. { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -67,7 +67,7 @@ public class FunctionNodeJsonConverter : global::System.Text.Json.Serialization. { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FunctionNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FunctionNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,13 +78,13 @@ public class FunctionNodeJsonConverter : global::System.Text.Json.Serialization. } } - if (value1 == null && value2 == null) + if (@base == null && functionNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -97,7 +97,7 @@ public class FunctionNodeJsonConverter : global::System.Text.Json.Serialization. { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FunctionNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FunctionNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + functionNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,9 +108,9 @@ public class FunctionNodeJsonConverter : global::System.Text.Json.Serialization. } var __value = new global::RetellAI.FunctionNode( - value1, + @base, - value2 + functionNodeVariant2 ); return __value; @@ -125,17 +125,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsFunctionNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.FunctionNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.FunctionNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MCPNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MCPNode.g.cs index ab60a11..277bdd8 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MCPNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MCPNode.g.cs @@ -43,8 +43,8 @@ public class MCPNodeJsonConverter : global::System.Text.Json.Serialization.JsonC if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.MCPNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.MCPNodeVariant2? mCPNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -53,7 +53,7 @@ public class MCPNodeJsonConverter : global::System.Text.Json.Serialization.JsonC { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -68,7 +68,7 @@ public class MCPNodeJsonConverter : global::System.Text.Json.Serialization.JsonC { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MCPNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MCPNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mCPNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -79,13 +79,13 @@ public class MCPNodeJsonConverter : global::System.Text.Json.Serialization.JsonC } } - if (value1 == null && value2 == null) + if (@base == null && mCPNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -98,7 +98,7 @@ public class MCPNodeJsonConverter : global::System.Text.Json.Serialization.JsonC { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MCPNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MCPNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mCPNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -109,9 +109,9 @@ public class MCPNodeJsonConverter : global::System.Text.Json.Serialization.JsonC } var __value = new global::RetellAI.MCPNode( - value1, + @base, - value2 + mCPNodeVariant2 ); return __value; @@ -126,17 +126,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsMCPNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MCPNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MCPNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MCPNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageOrToolCall.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageOrToolCall.g.cs index 873806f..5fa0a4a 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageOrToolCall.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.MessageOrToolCall.g.cs @@ -68,11 +68,11 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - global::RetellAI.Message? value1 = default; - global::RetellAI.ToolCallInvocationMessage? value2 = default; - global::RetellAI.ToolCallResultMessage? value3 = default; - global::RetellAI.NodeTransitionMessage? value4 = default; - global::RetellAI.StateTransitionMessage? value5 = default; + global::RetellAI.Message? message = default; + global::RetellAI.ToolCallInvocationMessage? invocation = default; + global::RetellAI.ToolCallResultMessage? result = default; + global::RetellAI.NodeTransitionMessage? nodeTransition = default; + global::RetellAI.StateTransitionMessage? stateTransition = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -81,7 +81,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Message).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -96,7 +96,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationMessage).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + invocation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -111,7 +111,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultMessage).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + result = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -126,7 +126,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionMessage).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -141,7 +141,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StateTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StateTransitionMessage).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stateTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -152,13 +152,13 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + if (message == null && invocation == null && result == null && nodeTransition == null && stateTransition == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Message).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -171,7 +171,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationMessage).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + invocation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -184,7 +184,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultMessage).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + result = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -197,7 +197,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionMessage).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -210,7 +210,7 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StateTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StateTransitionMessage).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + stateTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -221,15 +221,15 @@ public class MessageOrToolCallJsonConverter : global::System.Text.Json.Serializa } var __value = new global::RetellAI.MessageOrToolCall( - value1, + message, - value2, + invocation, - value3, + result, - value4, + nodeTransition, - value5 + stateTransition ); return __value; @@ -244,35 +244,35 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsMessage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Message), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Message).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Message!, typeInfo); } - else if (value.IsValue2) + else if (value.IsInvocation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Invocation!, typeInfo); } - else if (value.IsValue3) + else if (value.IsResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Result!, typeInfo); } - else if (value.IsValue4) + else if (value.IsNodeTransition) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NodeTransition!, typeInfo); } - else if (value.IsValue5) + else if (value.IsStateTransition) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.StateTransitionMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.StateTransitionMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StateTransition!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeBase.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeBase.g.cs index eaa9005..91a45cd 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeBase.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeBase.g.cs @@ -38,8 +38,8 @@ public class NodeBaseJsonConverter : global::System.Text.Json.Serialization.Json if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBaseCommon? value1 = default; - global::RetellAI.NodeBaseVariant2? value2 = default; + global::RetellAI.NodeBaseCommon? common = default; + global::RetellAI.NodeBaseVariant2? nodeBaseVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -48,7 +48,7 @@ public class NodeBaseJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBaseCommon), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBaseCommon).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + common = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -63,7 +63,7 @@ public class NodeBaseJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBaseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBaseVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeBaseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,13 +74,13 @@ public class NodeBaseJsonConverter : global::System.Text.Json.Serialization.Json } } - if (value1 == null && value2 == null) + if (common == null && nodeBaseVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBaseCommon), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBaseCommon).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + common = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,7 +93,7 @@ public class NodeBaseJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBaseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBaseVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeBaseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,9 +104,9 @@ public class NodeBaseJsonConverter : global::System.Text.Json.Serialization.Json } var __value = new global::RetellAI.NodeBase( - value1, + common, - value2 + nodeBaseVariant2 ); return __value; @@ -121,17 +121,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsCommon) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBaseCommon), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBaseCommon).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Common!, typeInfo); } - else if (value.IsValue2) + else if (value.IsNodeBaseVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBaseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBaseVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NodeBaseVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTool.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTool.g.cs index 9e86443..6f09452 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTool.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.NodeTool.g.cs @@ -34,8 +34,8 @@ public class NodeToolJsonConverter : global::System.Text.Json.Serialization.Json if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.OneOf? value1 = default; - global::RetellAI.NodeToolVariant2? value2 = default; + global::RetellAI.OneOf? nodeToolVariant1 = default; + global::RetellAI.NodeToolVariant2? nodeToolVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -44,7 +44,7 @@ public class NodeToolJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OneOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OneOf).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeToolVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -59,7 +59,7 @@ public class NodeToolJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeToolVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeToolVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeToolVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -70,13 +70,13 @@ public class NodeToolJsonConverter : global::System.Text.Json.Serialization.Json } } - if (value1 == null && value2 == null) + if (nodeToolVariant1 == null && nodeToolVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OneOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OneOf).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeToolVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +89,7 @@ public class NodeToolJsonConverter : global::System.Text.Json.Serialization.Json { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeToolVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeToolVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeToolVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -100,9 +100,9 @@ public class NodeToolJsonConverter : global::System.Text.Json.Serialization.Json } var __value = new global::RetellAI.NodeTool( - value1, + nodeToolVariant1, - value2 + nodeToolVariant2 ); return __value; @@ -117,17 +117,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsNodeToolVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OneOf), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OneOf).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NodeToolVariant1!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsNodeToolVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeToolVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeToolVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NodeToolVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OrganizationResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OrganizationResponse.g.cs index 7c9f3f2..e75ba55 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OrganizationResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.OrganizationResponse.g.cs @@ -53,8 +53,8 @@ public class OrganizationResponseJsonConverter : global::System.Text.Json.Serial if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.Organization? value1 = default; - global::RetellAI.OrganizationResponseVariant2? value2 = default; + global::RetellAI.Organization? organization = default; + global::RetellAI.OrganizationResponseVariant2? organizationResponseVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -63,7 +63,7 @@ public class OrganizationResponseJsonConverter : global::System.Text.Json.Serial { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Organization), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Organization).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + organization = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -78,7 +78,7 @@ public class OrganizationResponseJsonConverter : global::System.Text.Json.Serial { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OrganizationResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OrganizationResponseVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + organizationResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,13 +89,13 @@ public class OrganizationResponseJsonConverter : global::System.Text.Json.Serial } } - if (value1 == null && value2 == null) + if (organization == null && organizationResponseVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Organization), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Organization).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + organization = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -108,7 +108,7 @@ public class OrganizationResponseJsonConverter : global::System.Text.Json.Serial { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OrganizationResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OrganizationResponseVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + organizationResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -119,9 +119,9 @@ public class OrganizationResponseJsonConverter : global::System.Text.Json.Serial } var __value = new global::RetellAI.OrganizationResponse( - value1, + organization, - value2 + organizationResponseVariant2 ); return __value; @@ -136,17 +136,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsOrganization) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Organization), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Organization).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Organization!, typeInfo); } - else if (value.IsValue2) + else if (value.IsOrganizationResponseVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.OrganizationResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.OrganizationResponseVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OrganizationResponseVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PostCallAnalysisData.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PostCallAnalysisData.g.cs index d8b2bff..57456ee 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PostCallAnalysisData.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PostCallAnalysisData.g.cs @@ -38,8 +38,8 @@ public class PostCallAnalysisDataJsonConverter : global::System.Text.Json.Serial if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.AnalysisData? value1 = default; - global::RetellAI.CallPresetAnalysisData? value2 = default; + global::RetellAI.AnalysisData? analysisData = default; + global::RetellAI.CallPresetAnalysisData? preset = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -48,7 +48,7 @@ public class PostCallAnalysisDataJsonConverter : global::System.Text.Json.Serial { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AnalysisData).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + analysisData = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -63,7 +63,7 @@ public class PostCallAnalysisDataJsonConverter : global::System.Text.Json.Serial { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CallPresetAnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CallPresetAnalysisData).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + preset = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,13 +74,13 @@ public class PostCallAnalysisDataJsonConverter : global::System.Text.Json.Serial } } - if (value1 == null && value2 == null) + if (analysisData == null && preset == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AnalysisData).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + analysisData = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,7 +93,7 @@ public class PostCallAnalysisDataJsonConverter : global::System.Text.Json.Serial { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CallPresetAnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CallPresetAnalysisData).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + preset = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,9 +104,9 @@ public class PostCallAnalysisDataJsonConverter : global::System.Text.Json.Serial } var __value = new global::RetellAI.PostCallAnalysisData( - value1, + analysisData, - value2 + preset ); return __value; @@ -121,17 +121,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsAnalysisData) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AnalysisData).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnalysisData!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsPreset) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CallPresetAnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CallPresetAnalysisData).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Preset!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PostChatAnalysisData.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PostChatAnalysisData.g.cs index 92cf782..dbc4883 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PostChatAnalysisData.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PostChatAnalysisData.g.cs @@ -38,8 +38,8 @@ public class PostChatAnalysisDataJsonConverter : global::System.Text.Json.Serial if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.AnalysisData? value1 = default; - global::RetellAI.ChatPresetAnalysisData? value2 = default; + global::RetellAI.AnalysisData? analysisData = default; + global::RetellAI.ChatPresetAnalysisData? preset = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -48,7 +48,7 @@ public class PostChatAnalysisDataJsonConverter : global::System.Text.Json.Serial { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AnalysisData).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + analysisData = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -63,7 +63,7 @@ public class PostChatAnalysisDataJsonConverter : global::System.Text.Json.Serial { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatPresetAnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatPresetAnalysisData).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + preset = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,13 +74,13 @@ public class PostChatAnalysisDataJsonConverter : global::System.Text.Json.Serial } } - if (value1 == null && value2 == null) + if (analysisData == null && preset == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AnalysisData).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + analysisData = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,7 +93,7 @@ public class PostChatAnalysisDataJsonConverter : global::System.Text.Json.Serial { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatPresetAnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatPresetAnalysisData).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + preset = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,9 +104,9 @@ public class PostChatAnalysisDataJsonConverter : global::System.Text.Json.Serial } var __value = new global::RetellAI.PostChatAnalysisData( - value1, + analysisData, - value2 + preset ); return __value; @@ -121,17 +121,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsAnalysisData) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AnalysisData).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnalysisData!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsPreset) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ChatPresetAnalysisData), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ChatPresetAnalysisData).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Preset!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PressDigitNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PressDigitNode.g.cs index 28faf03..be0f1bc 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PressDigitNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.PressDigitNode.g.cs @@ -38,8 +38,8 @@ public class PressDigitNodeJsonConverter : global::System.Text.Json.Serializatio if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.PressDigitNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.PressDigitNodeVariant2? pressDigitNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -48,7 +48,7 @@ public class PressDigitNodeJsonConverter : global::System.Text.Json.Serializatio { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -63,7 +63,7 @@ public class PressDigitNodeJsonConverter : global::System.Text.Json.Serializatio { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.PressDigitNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.PressDigitNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pressDigitNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,13 +74,13 @@ public class PressDigitNodeJsonConverter : global::System.Text.Json.Serializatio } } - if (value1 == null && value2 == null) + if (@base == null && pressDigitNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,7 +93,7 @@ public class PressDigitNodeJsonConverter : global::System.Text.Json.Serializatio { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.PressDigitNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.PressDigitNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + pressDigitNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -104,9 +104,9 @@ public class PressDigitNodeJsonConverter : global::System.Text.Json.Serializatio } var __value = new global::RetellAI.PressDigitNode( - value1, + @base, - value2 + pressDigitNodeVariant2 ); return __value; @@ -121,17 +121,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsPressDigitNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.PressDigitNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.PressDigitNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PressDigitNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RetellLLMResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RetellLLMResponse.g.cs index 826049c..67a5e86 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RetellLLMResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RetellLLMResponse.g.cs @@ -39,9 +39,9 @@ public class RetellLLMResponseJsonConverter : global::System.Text.Json.Serializa if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::RetellAI.RetellLLMResponseVariant1? value1 = default; - global::RetellAI.RetellLlmRequest? value2 = default; - global::RetellAI.RetellLLMResponseVariant3? value3 = default; + global::RetellAI.RetellLLMResponseVariant1? retellLLMResponseVariant1 = default; + global::RetellAI.RetellLlmRequest? llmRequest = default; + global::RetellAI.RetellLLMResponseVariant3? retellLLMResponseVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -50,7 +50,7 @@ public class RetellLLMResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLLMResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLLMResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + retellLLMResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -65,7 +65,7 @@ public class RetellLLMResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLlmRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLlmRequest).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + llmRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,7 +80,7 @@ public class RetellLLMResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLLMResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLLMResponseVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + retellLLMResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,13 +91,13 @@ public class RetellLLMResponseJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null && value2 == null && value3 == null) + if (retellLLMResponseVariant1 == null && llmRequest == null && retellLLMResponseVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLLMResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLLMResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + retellLLMResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,7 +110,7 @@ public class RetellLLMResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLlmRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLlmRequest).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + llmRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -123,7 +123,7 @@ public class RetellLLMResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLLMResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLLMResponseVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + retellLLMResponseVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -134,11 +134,11 @@ public class RetellLLMResponseJsonConverter : global::System.Text.Json.Serializa } var __value = new global::RetellAI.RetellLLMResponse( - value1, + retellLLMResponseVariant1, - value2, + llmRequest, - value3 + retellLLMResponseVariant3 ); return __value; @@ -153,23 +153,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsRetellLLMResponseVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLLMResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLLMResponseVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RetellLLMResponseVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsLlmRequest) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLlmRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLlmRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.LlmRequest!.Value, typeInfo); } - else if (value.IsValue3) + else if (value.IsRetellLLMResponseVariant3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLLMResponseVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLLMResponseVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RetellLLMResponseVariant3!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RetellLlmRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RetellLlmRequest.g.cs index f4b8f18..5bb5437 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RetellLlmRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.RetellLlmRequest.g.cs @@ -50,8 +50,8 @@ public class RetellLlmRequestJsonConverter : global::System.Text.Json.Serializat if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.RetellLlmOverride? value1 = default; - global::RetellAI.RetellLlmRequestVariant2? value2 = default; + global::RetellAI.RetellLlmOverride? @override = default; + global::RetellAI.RetellLlmRequestVariant2? retellLlmRequestVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -60,7 +60,7 @@ public class RetellLlmRequestJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLlmOverride), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLlmOverride).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @override = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -75,7 +75,7 @@ public class RetellLlmRequestJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLlmRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLlmRequestVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + retellLlmRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -86,13 +86,13 @@ public class RetellLlmRequestJsonConverter : global::System.Text.Json.Serializat } } - if (value1 == null && value2 == null) + if (@override == null && retellLlmRequestVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLlmOverride), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLlmOverride).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @override = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -105,7 +105,7 @@ public class RetellLlmRequestJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLlmRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLlmRequestVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + retellLlmRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -116,9 +116,9 @@ public class RetellLlmRequestJsonConverter : global::System.Text.Json.Serializat } var __value = new global::RetellAI.RetellLlmRequest( - value1, + @override, - value2 + retellLlmRequestVariant2 ); return __value; @@ -133,17 +133,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsOverride) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLlmOverride), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLlmOverride).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Override!, typeInfo); } - else if (value.IsValue2) + else if (value.IsRetellLlmRequestVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.RetellLlmRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.RetellLlmRequestVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.RetellLlmRequestVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SkipResponseEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SkipResponseEdge.g.cs index 359995a..a246a3b 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SkipResponseEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SkipResponseEdge.g.cs @@ -37,8 +37,8 @@ public class SkipResponseEdgeJsonConverter : global::System.Text.Json.Serializat if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeEdge? value1 = default; - global::RetellAI.SkipResponseEdgeVariant2? value2 = default; + global::RetellAI.NodeEdge? node = default; + global::RetellAI.SkipResponseEdgeVariant2? skipResponseEdgeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class SkipResponseEdgeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class SkipResponseEdgeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SkipResponseEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SkipResponseEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + skipResponseEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class SkipResponseEdgeJsonConverter : global::System.Text.Json.Serializat } } - if (value1 == null && value2 == null) + if (node == null && skipResponseEdgeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class SkipResponseEdgeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SkipResponseEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SkipResponseEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + skipResponseEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class SkipResponseEdgeJsonConverter : global::System.Text.Json.Serializat } var __value = new global::RetellAI.SkipResponseEdge( - value1, + node, - value2 + skipResponseEdgeVariant2 ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsNode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Node!, typeInfo); } - else if (value.IsValue2) + else if (value.IsSkipResponseEdgeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SkipResponseEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SkipResponseEdgeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SkipResponseEdgeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsDestination.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsDestination.g.cs index b46db6d..0c38e5c 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsDestination.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsDestination.g.cs @@ -37,8 +37,8 @@ public class SmsDestinationJsonConverter : global::System.Text.Json.Serializatio if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.SmsDestinationVariant1? value1 = default; - global::RetellAI.SmsDestinationVariant2? value2 = default; + global::RetellAI.SmsDestinationVariant1? smsDestinationVariant1 = default; + global::RetellAI.SmsDestinationVariant2? smsDestinationVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class SmsDestinationJsonConverter : global::System.Text.Json.Serializatio { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsDestinationVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsDestinationVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsDestinationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class SmsDestinationJsonConverter : global::System.Text.Json.Serializatio { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsDestinationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsDestinationVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsDestinationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class SmsDestinationJsonConverter : global::System.Text.Json.Serializatio } } - if (value1 == null && value2 == null) + if (smsDestinationVariant1 == null && smsDestinationVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsDestinationVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsDestinationVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsDestinationVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class SmsDestinationJsonConverter : global::System.Text.Json.Serializatio { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsDestinationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsDestinationVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsDestinationVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class SmsDestinationJsonConverter : global::System.Text.Json.Serializatio } var __value = new global::RetellAI.SmsDestination( - value1, + smsDestinationVariant1, - value2 + smsDestinationVariant2 ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsSmsDestinationVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsDestinationVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsDestinationVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmsDestinationVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsSmsDestinationVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsDestinationVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsDestinationVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmsDestinationVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsFailedEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsFailedEdge.g.cs index 0c6c0f4..234f763 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsFailedEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsFailedEdge.g.cs @@ -37,8 +37,8 @@ public class SmsFailedEdgeJsonConverter : global::System.Text.Json.Serialization if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeEdge? value1 = default; - global::RetellAI.SmsFailedEdgeVariant2? value2 = default; + global::RetellAI.NodeEdge? node = default; + global::RetellAI.SmsFailedEdgeVariant2? smsFailedEdgeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class SmsFailedEdgeJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class SmsFailedEdgeJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsFailedEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsFailedEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsFailedEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class SmsFailedEdgeJsonConverter : global::System.Text.Json.Serialization } } - if (value1 == null && value2 == null) + if (node == null && smsFailedEdgeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class SmsFailedEdgeJsonConverter : global::System.Text.Json.Serialization { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsFailedEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsFailedEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsFailedEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class SmsFailedEdgeJsonConverter : global::System.Text.Json.Serialization } var __value = new global::RetellAI.SmsFailedEdge( - value1, + node, - value2 + smsFailedEdgeVariant2 ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsNode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Node!, typeInfo); } - else if (value.IsValue2) + else if (value.IsSmsFailedEdgeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsFailedEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsFailedEdgeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmsFailedEdgeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsNode.g.cs index 9777d4d..5bb30d7 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsNode.g.cs @@ -37,8 +37,8 @@ public class SmsNodeJsonConverter : global::System.Text.Json.Serialization.JsonC if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.SmsNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.SmsNodeVariant2? smsNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class SmsNodeJsonConverter : global::System.Text.Json.Serialization.JsonC { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class SmsNodeJsonConverter : global::System.Text.Json.Serialization.JsonC { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class SmsNodeJsonConverter : global::System.Text.Json.Serialization.JsonC } } - if (value1 == null && value2 == null) + if (@base == null && smsNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class SmsNodeJsonConverter : global::System.Text.Json.Serialization.JsonC { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class SmsNodeJsonConverter : global::System.Text.Json.Serialization.JsonC } var __value = new global::RetellAI.SmsNode( - value1, + @base, - value2 + smsNodeVariant2 ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsSmsNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmsNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsSender.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsSender.g.cs index eb67bbf..d473c7f 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsSender.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsSender.g.cs @@ -35,8 +35,8 @@ public class SmsSenderJsonConverter : global::System.Text.Json.Serialization.Jso if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.SmsSenderVariant1? value1 = default; - global::RetellAI.SmsSenderVariant2? value2 = default; + global::RetellAI.SmsSenderVariant1? smsSenderVariant1 = default; + global::RetellAI.SmsSenderVariant2? smsSenderVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -45,7 +45,7 @@ public class SmsSenderJsonConverter : global::System.Text.Json.Serialization.Jso { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsSenderVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsSenderVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsSenderVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -60,7 +60,7 @@ public class SmsSenderJsonConverter : global::System.Text.Json.Serialization.Jso { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsSenderVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsSenderVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsSenderVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -71,13 +71,13 @@ public class SmsSenderJsonConverter : global::System.Text.Json.Serialization.Jso } } - if (value1 == null && value2 == null) + if (smsSenderVariant1 == null && smsSenderVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsSenderVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsSenderVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsSenderVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -90,7 +90,7 @@ public class SmsSenderJsonConverter : global::System.Text.Json.Serialization.Jso { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsSenderVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsSenderVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsSenderVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -101,9 +101,9 @@ public class SmsSenderJsonConverter : global::System.Text.Json.Serialization.Jso } var __value = new global::RetellAI.SmsSender( - value1, + smsSenderVariant1, - value2 + smsSenderVariant2 ); return __value; @@ -118,17 +118,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsSmsSenderVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsSenderVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsSenderVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmsSenderVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsSmsSenderVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsSenderVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsSenderVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmsSenderVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsSuccessEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsSuccessEdge.g.cs index d852fcc..4346e5f 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsSuccessEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SmsSuccessEdge.g.cs @@ -37,8 +37,8 @@ public class SmsSuccessEdgeJsonConverter : global::System.Text.Json.Serializatio if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeEdge? value1 = default; - global::RetellAI.SmsSuccessEdgeVariant2? value2 = default; + global::RetellAI.NodeEdge? node = default; + global::RetellAI.SmsSuccessEdgeVariant2? smsSuccessEdgeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class SmsSuccessEdgeJsonConverter : global::System.Text.Json.Serializatio { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class SmsSuccessEdgeJsonConverter : global::System.Text.Json.Serializatio { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsSuccessEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsSuccessEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsSuccessEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class SmsSuccessEdgeJsonConverter : global::System.Text.Json.Serializatio } } - if (value1 == null && value2 == null) + if (node == null && smsSuccessEdgeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class SmsSuccessEdgeJsonConverter : global::System.Text.Json.Serializatio { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsSuccessEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsSuccessEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + smsSuccessEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class SmsSuccessEdgeJsonConverter : global::System.Text.Json.Serializatio } var __value = new global::RetellAI.SmsSuccessEdge( - value1, + node, - value2 + smsSuccessEdgeVariant2 ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsNode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Node!, typeInfo); } - else if (value.IsValue2) + else if (value.IsSmsSuccessEdgeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SmsSuccessEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SmsSuccessEdgeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmsSuccessEdgeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SubagentNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SubagentNode.g.cs index 3f0de94..55ba503 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SubagentNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.SubagentNode.g.cs @@ -48,9 +48,9 @@ public class SubagentNodeJsonConverter : global::System.Text.Json.Serialization. if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.AgentOverrideConfig? value2 = default; - global::RetellAI.SubagentNodeVariant3? value3 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.AgentOverrideConfig? agentOverrideConfig = default; + global::RetellAI.SubagentNodeVariant3? subagentNodeVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -59,7 +59,7 @@ public class SubagentNodeJsonConverter : global::System.Text.Json.Serialization. { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -74,7 +74,7 @@ public class SubagentNodeJsonConverter : global::System.Text.Json.Serialization. { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentOverrideConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentOverrideConfig).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentOverrideConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -89,7 +89,7 @@ public class SubagentNodeJsonConverter : global::System.Text.Json.Serialization. { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SubagentNodeVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SubagentNodeVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + subagentNodeVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -100,13 +100,13 @@ public class SubagentNodeJsonConverter : global::System.Text.Json.Serialization. } } - if (value1 == null && value2 == null && value3 == null) + if (@base == null && agentOverrideConfig == null && subagentNodeVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -119,7 +119,7 @@ public class SubagentNodeJsonConverter : global::System.Text.Json.Serialization. { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentOverrideConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentOverrideConfig).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + agentOverrideConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -132,7 +132,7 @@ public class SubagentNodeJsonConverter : global::System.Text.Json.Serialization. { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SubagentNodeVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SubagentNodeVariant3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + subagentNodeVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -143,11 +143,11 @@ public class SubagentNodeJsonConverter : global::System.Text.Json.Serialization. } var __value = new global::RetellAI.SubagentNode( - value1, + @base, - value2, + agentOverrideConfig, - value3 + subagentNodeVariant3 ); return __value; @@ -162,23 +162,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsAgentOverrideConfig) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.AgentOverrideConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.AgentOverrideConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.AgentOverrideConfig!, typeInfo); } - else if (value.IsValue3) + else if (value.IsSubagentNodeVariant3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.SubagentNodeVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.SubagentNodeVariant3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SubagentNodeVariant3!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestCaseDefinition.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestCaseDefinition.g.cs index 0610c74..54fecf1 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestCaseDefinition.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TestCaseDefinition.g.cs @@ -44,8 +44,8 @@ public class TestCaseDefinitionJsonConverter : global::System.Text.Json.Serializ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.TestCaseDefinitionInput? value1 = default; - global::RetellAI.TestCaseDefinitionVariant2? value2 = default; + global::RetellAI.TestCaseDefinitionInput? input = default; + global::RetellAI.TestCaseDefinitionVariant2? testCaseDefinitionVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -54,7 +54,7 @@ public class TestCaseDefinitionJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TestCaseDefinitionInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TestCaseDefinitionInput).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + input = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -69,7 +69,7 @@ public class TestCaseDefinitionJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TestCaseDefinitionVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TestCaseDefinitionVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + testCaseDefinitionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -80,13 +80,13 @@ public class TestCaseDefinitionJsonConverter : global::System.Text.Json.Serializ } } - if (value1 == null && value2 == null) + if (input == null && testCaseDefinitionVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TestCaseDefinitionInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TestCaseDefinitionInput).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + input = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -99,7 +99,7 @@ public class TestCaseDefinitionJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TestCaseDefinitionVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TestCaseDefinitionVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + testCaseDefinitionVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -110,9 +110,9 @@ public class TestCaseDefinitionJsonConverter : global::System.Text.Json.Serializ } var __value = new global::RetellAI.TestCaseDefinition( - value1, + input, - value2 + testCaseDefinitionVariant2 ); return __value; @@ -127,17 +127,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsInput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TestCaseDefinitionInput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TestCaseDefinitionInput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Input!, typeInfo); } - else if (value.IsValue2) + else if (value.IsTestCaseDefinitionVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TestCaseDefinitionVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TestCaseDefinitionVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TestCaseDefinitionVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Tool.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Tool.g.cs index 60ec6c9..d76f174 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Tool.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.Tool.g.cs @@ -169,7 +169,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv global::RetellAI.ExtractDynamicVariableTool? extractDynamicVariable = default; global::RetellAI.BridgeTransferTool? bridgeTransfer = default; global::RetellAI.CancelTransferTool? cancelTransfer = default; - global::RetellAI.MCPTool? mCP = default; + global::RetellAI.MCPTool? mcp = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -358,7 +358,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MCPTool).Name}"); - mCP = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -369,7 +369,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (endCall == null && transferCall == null && checkAvailabilityCal == null && bookAppointmentCal == null && agentSwap == null && pressDigit == null && sendSM == null && custom == null && code == null && extractDynamicVariable == null && bridgeTransfer == null && cancelTransfer == null && mCP == null) + if (endCall == null && transferCall == null && checkAvailabilityCal == null && bookAppointmentCal == null && agentSwap == null && pressDigit == null && sendSM == null && custom == null && code == null && extractDynamicVariable == null && bridgeTransfer == null && cancelTransfer == null && mcp == null) { try { @@ -531,7 +531,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MCPTool).Name}"); - mCP = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + mcp = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -566,7 +566,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv cancelTransfer, - mCP + mcp ); return __value; @@ -653,11 +653,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CancelTransferTool).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.CancelTransfer!, typeInfo); } - else if (value.IsMCP) + else if (value.IsMcp) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.MCPTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.MCPTool).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.MCP!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mcp!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolMockInputMatchRule.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolMockInputMatchRule.g.cs index 8a97850..fc31576 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolMockInputMatchRule.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.ToolMockInputMatchRule.g.cs @@ -36,8 +36,8 @@ public class ToolMockInputMatchRuleJsonConverter : global::System.Text.Json.Seri if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.ToolMockInputMatchRuleVariant1? value1 = default; - global::RetellAI.ToolMockInputMatchRuleVariant2? value2 = default; + global::RetellAI.ToolMockInputMatchRuleVariant1? toolMockInputMatchRuleVariant1 = default; + global::RetellAI.ToolMockInputMatchRuleVariant2? toolMockInputMatchRuleVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -46,7 +46,7 @@ public class ToolMockInputMatchRuleJsonConverter : global::System.Text.Json.Seri { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolMockInputMatchRuleVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolMockInputMatchRuleVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolMockInputMatchRuleVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,7 +61,7 @@ public class ToolMockInputMatchRuleJsonConverter : global::System.Text.Json.Seri { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolMockInputMatchRuleVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolMockInputMatchRuleVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolMockInputMatchRuleVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,13 +72,13 @@ public class ToolMockInputMatchRuleJsonConverter : global::System.Text.Json.Seri } } - if (value1 == null && value2 == null) + if (toolMockInputMatchRuleVariant1 == null && toolMockInputMatchRuleVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolMockInputMatchRuleVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolMockInputMatchRuleVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolMockInputMatchRuleVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +91,7 @@ public class ToolMockInputMatchRuleJsonConverter : global::System.Text.Json.Seri { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolMockInputMatchRuleVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolMockInputMatchRuleVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + toolMockInputMatchRuleVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +102,9 @@ public class ToolMockInputMatchRuleJsonConverter : global::System.Text.Json.Seri } var __value = new global::RetellAI.ToolMockInputMatchRule( - value1, + toolMockInputMatchRuleVariant1, - value2 + toolMockInputMatchRuleVariant2 ); return __value; @@ -119,17 +119,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsToolMockInputMatchRuleVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolMockInputMatchRuleVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolMockInputMatchRuleVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolMockInputMatchRuleVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsToolMockInputMatchRuleVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolMockInputMatchRuleVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolMockInputMatchRuleVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ToolMockInputMatchRuleVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TransferCallNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TransferCallNode.g.cs index 73a72b9..bbb7a0e 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TransferCallNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TransferCallNode.g.cs @@ -41,8 +41,8 @@ public class TransferCallNodeJsonConverter : global::System.Text.Json.Serializat if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeBase? value1 = default; - global::RetellAI.TransferCallNodeVariant2? value2 = default; + global::RetellAI.NodeBase? @base = default; + global::RetellAI.TransferCallNodeVariant2? transferCallNodeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -51,7 +51,7 @@ public class TransferCallNodeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -66,7 +66,7 @@ public class TransferCallNodeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TransferCallNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TransferCallNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transferCallNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -77,13 +77,13 @@ public class TransferCallNodeJsonConverter : global::System.Text.Json.Serializat } } - if (value1 == null && value2 == null) + if (@base == null && transferCallNodeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -96,7 +96,7 @@ public class TransferCallNodeJsonConverter : global::System.Text.Json.Serializat { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TransferCallNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TransferCallNodeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transferCallNodeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -107,9 +107,9 @@ public class TransferCallNodeJsonConverter : global::System.Text.Json.Serializat } var __value = new global::RetellAI.TransferCallNode( - value1, + @base, - value2 + transferCallNodeVariant2 ); return __value; @@ -124,17 +124,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsTransferCallNodeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TransferCallNodeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TransferCallNodeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferCallNodeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TransferFailedEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TransferFailedEdge.g.cs index 62dbf57..8bf355d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TransferFailedEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.TransferFailedEdge.g.cs @@ -37,8 +37,8 @@ public class TransferFailedEdgeJsonConverter : global::System.Text.Json.Serializ if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.NodeEdge? value1 = default; - global::RetellAI.TransferFailedEdgeVariant2? value2 = default; + global::RetellAI.NodeEdge? node = default; + global::RetellAI.TransferFailedEdgeVariant2? transferFailedEdgeVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -47,7 +47,7 @@ public class TransferFailedEdgeJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -62,7 +62,7 @@ public class TransferFailedEdgeJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TransferFailedEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TransferFailedEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transferFailedEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -73,13 +73,13 @@ public class TransferFailedEdgeJsonConverter : global::System.Text.Json.Serializ } } - if (value1 == null && value2 == null) + if (node == null && transferFailedEdgeVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + node = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -92,7 +92,7 @@ public class TransferFailedEdgeJsonConverter : global::System.Text.Json.Serializ { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TransferFailedEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TransferFailedEdgeVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + transferFailedEdgeVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -103,9 +103,9 @@ public class TransferFailedEdgeJsonConverter : global::System.Text.Json.Serializ } var __value = new global::RetellAI.TransferFailedEdge( - value1, + node, - value2 + transferFailedEdgeVariant2 ); return __value; @@ -120,17 +120,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsNode) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeEdge), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeEdge).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Node!, typeInfo); } - else if (value.IsValue2) + else if (value.IsTransferFailedEdgeVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.TransferFailedEdgeVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.TransferFailedEdgeVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TransferFailedEdgeVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateOrganizationRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateOrganizationRequest.g.cs index f59e6c2..1896b0d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateOrganizationRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UpdateOrganizationRequest.g.cs @@ -36,8 +36,8 @@ public class UpdateOrganizationRequestJsonConverter : global::System.Text.Json.S if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.CreateOrganizationRequest? value1 = default; - global::RetellAI.UpdateOrganizationRequestVariant2? value2 = default; + global::RetellAI.CreateOrganizationRequest? create = default; + global::RetellAI.UpdateOrganizationRequestVariant2? updateOrganizationRequestVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -46,7 +46,7 @@ public class UpdateOrganizationRequestJsonConverter : global::System.Text.Json.S { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CreateOrganizationRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CreateOrganizationRequest).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + create = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -61,7 +61,7 @@ public class UpdateOrganizationRequestJsonConverter : global::System.Text.Json.S { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.UpdateOrganizationRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.UpdateOrganizationRequestVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + updateOrganizationRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -72,13 +72,13 @@ public class UpdateOrganizationRequestJsonConverter : global::System.Text.Json.S } } - if (value1 == null && value2 == null) + if (create == null && updateOrganizationRequestVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CreateOrganizationRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CreateOrganizationRequest).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + create = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +91,7 @@ public class UpdateOrganizationRequestJsonConverter : global::System.Text.Json.S { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.UpdateOrganizationRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.UpdateOrganizationRequestVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + updateOrganizationRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,9 +102,9 @@ public class UpdateOrganizationRequestJsonConverter : global::System.Text.Json.S } var __value = new global::RetellAI.UpdateOrganizationRequest( - value1, + create, - value2 + updateOrganizationRequestVariant2 ); return __value; @@ -119,17 +119,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsCreate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.CreateOrganizationRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.CreateOrganizationRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Create!.Value, typeInfo); } - else if (value.IsValue2) + else if (value.IsUpdateOrganizationRequestVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.UpdateOrganizationRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.UpdateOrganizationRequestVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateOrganizationRequestVariant2!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UtteranceOrToolCall.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UtteranceOrToolCall.g.cs index 9e493ef..d1694fe 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UtteranceOrToolCall.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.UtteranceOrToolCall.g.cs @@ -58,11 +58,11 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } - global::RetellAI.Utterance? value1 = default; - global::RetellAI.ToolCallInvocationUtterance? value2 = default; - global::RetellAI.ToolCallResultUtterance? value3 = default; - global::RetellAI.NodeTransitionUtterance? value4 = default; - global::RetellAI.DTMFUtterance? value5 = default; + global::RetellAI.Utterance? utterance = default; + global::RetellAI.ToolCallInvocationUtterance? invocation = default; + global::RetellAI.ToolCallResultUtterance? result = default; + global::RetellAI.NodeTransitionUtterance? nodeTransition = default; + global::RetellAI.DTMFUtterance? dtmf = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -71,7 +71,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Utterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Utterance).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + utterance = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -86,7 +86,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationUtterance).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + invocation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -101,7 +101,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultUtterance).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + result = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -116,7 +116,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionUtterance).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -131,7 +131,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.DTMFUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.DTMFUtterance).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + dtmf = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -142,13 +142,13 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali } } - if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + if (utterance == null && invocation == null && result == null && nodeTransition == null && dtmf == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Utterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Utterance).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + utterance = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -161,7 +161,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationUtterance).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + invocation = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -174,7 +174,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultUtterance).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + result = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -187,7 +187,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionUtterance).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + nodeTransition = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -200,7 +200,7 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.DTMFUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.DTMFUtterance).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + dtmf = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -211,15 +211,15 @@ public class UtteranceOrToolCallJsonConverter : global::System.Text.Json.Seriali } var __value = new global::RetellAI.UtteranceOrToolCall( - value1, + utterance, - value2, + invocation, - value3, + result, - value4, + nodeTransition, - value5 + dtmf ); return __value; @@ -234,35 +234,35 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsUtterance) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.Utterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.Utterance).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Utterance!, typeInfo); } - else if (value.IsValue2) + else if (value.IsInvocation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallInvocationUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallInvocationUtterance).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Invocation!, typeInfo); } - else if (value.IsValue3) + else if (value.IsResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.ToolCallResultUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.ToolCallResultUtterance).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Result!, typeInfo); } - else if (value.IsValue4) + else if (value.IsNodeTransition) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.NodeTransitionUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.NodeTransitionUtterance).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.NodeTransition!, typeInfo); } - else if (value.IsValue5) + else if (value.IsDtmf) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.DTMFUtterance), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.DTMFUtterance).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Dtmf!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V2PhoneCallResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V2PhoneCallResponse.g.cs index 4d71a99..59531bf 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V2PhoneCallResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V2PhoneCallResponse.g.cs @@ -69,8 +69,8 @@ public class V2PhoneCallResponseJsonConverter : global::System.Text.Json.Seriali if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.V2PhoneCallResponseVariant1? value1 = default; - global::RetellAI.V2CallBase? value2 = default; + global::RetellAI.V2PhoneCallResponseVariant1? v2PhoneCallResponseVariant1 = default; + global::RetellAI.V2CallBase? @base = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -79,7 +79,7 @@ public class V2PhoneCallResponseJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2PhoneCallResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2PhoneCallResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + v2PhoneCallResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -94,7 +94,7 @@ public class V2PhoneCallResponseJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2CallBase).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -105,13 +105,13 @@ public class V2PhoneCallResponseJsonConverter : global::System.Text.Json.Seriali } } - if (value1 == null && value2 == null) + if (v2PhoneCallResponseVariant1 == null && @base == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2PhoneCallResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2PhoneCallResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + v2PhoneCallResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -124,7 +124,7 @@ public class V2PhoneCallResponseJsonConverter : global::System.Text.Json.Seriali { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2CallBase).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -135,9 +135,9 @@ public class V2PhoneCallResponseJsonConverter : global::System.Text.Json.Seriali } var __value = new global::RetellAI.V2PhoneCallResponse( - value1, + v2PhoneCallResponseVariant1, - value2 + @base ); return __value; @@ -152,17 +152,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsV2PhoneCallResponseVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2PhoneCallResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2PhoneCallResponseVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.V2PhoneCallResponseVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2CallBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V2WebCallResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V2WebCallResponse.g.cs index 5928012..39568d4 100644 --- a/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V2WebCallResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.JsonConverters.V2WebCallResponse.g.cs @@ -66,8 +66,8 @@ public class V2WebCallResponseJsonConverter : global::System.Text.Json.Serializa if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - global::RetellAI.V2WebCallResponseVariant1? value1 = default; - global::RetellAI.V2CallBase? value2 = default; + global::RetellAI.V2WebCallResponseVariant1? v2WebCallResponseVariant1 = default; + global::RetellAI.V2CallBase? @base = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -76,7 +76,7 @@ public class V2WebCallResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2WebCallResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2WebCallResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + v2WebCallResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -91,7 +91,7 @@ public class V2WebCallResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2CallBase).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -102,13 +102,13 @@ public class V2WebCallResponseJsonConverter : global::System.Text.Json.Serializa } } - if (value1 == null && value2 == null) + if (v2WebCallResponseVariant1 == null && @base == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2WebCallResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2WebCallResponseVariant1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + v2WebCallResponseVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -121,7 +121,7 @@ public class V2WebCallResponseJsonConverter : global::System.Text.Json.Serializa { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2CallBase).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -132,9 +132,9 @@ public class V2WebCallResponseJsonConverter : global::System.Text.Json.Serializa } var __value = new global::RetellAI.V2WebCallResponse( - value1, + v2WebCallResponseVariant1, - value2 + @base ); return __value; @@ -149,17 +149,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsV2WebCallResponseVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2WebCallResponseVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2WebCallResponseVariant1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.V2WebCallResponseVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsBase) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::RetellAI.V2CallBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::RetellAI.V2CallBase).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Base!, typeInfo); } } } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentResponse.g.cs index e410b76..a21fdec 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.AgentResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentResponse.g.cs @@ -13,52 +13,52 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AgentResponseVariant1? Value1 { get; init; } + public global::RetellAI.AgentResponseVariant1? AgentResponseVariant1 { get; init; } #else - public global::RetellAI.AgentResponseVariant1? Value1 { get; } + public global::RetellAI.AgentResponseVariant1? AgentResponseVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentResponseVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsAgentResponseVariant1 => AgentResponseVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AgentRequest? Value2 { get; init; } + public global::RetellAI.AgentRequest? Request { get; init; } #else - public global::RetellAI.AgentRequest? Value2 { get; } + public global::RetellAI.AgentRequest? Request { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Request))] #endif - public bool IsValue2 => Value2 != null; + public bool IsRequest => Request != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AgentResponseVariant3? Value3 { get; init; } + public global::RetellAI.AgentResponseVariant3? AgentResponseVariant3 { get; init; } #else - public global::RetellAI.AgentResponseVariant3? Value3 { get; } + public global::RetellAI.AgentResponseVariant3? AgentResponseVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentResponseVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsAgentResponseVariant3 => AgentResponseVariant3 != null; /// /// /// @@ -67,14 +67,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.AgentResponseVariant1?(AgentResponse @this) => @this.Value1; + public static implicit operator global::RetellAI.AgentResponseVariant1?(AgentResponse @this) => @this.AgentResponseVariant1; /// /// /// public AgentResponse(global::RetellAI.AgentResponseVariant1? value) { - Value1 = value; + AgentResponseVariant1 = value; } /// @@ -85,14 +85,14 @@ public AgentResponse(global::RetellAI.AgentResponseVariant1? value) /// /// /// - public static implicit operator global::RetellAI.AgentRequest?(AgentResponse @this) => @this.Value2; + public static implicit operator global::RetellAI.AgentRequest?(AgentResponse @this) => @this.Request; /// /// /// public AgentResponse(global::RetellAI.AgentRequest? value) { - Value2 = value; + Request = value; } /// @@ -103,46 +103,46 @@ public AgentResponse(global::RetellAI.AgentRequest? value) /// /// /// - public static implicit operator global::RetellAI.AgentResponseVariant3?(AgentResponse @this) => @this.Value3; + public static implicit operator global::RetellAI.AgentResponseVariant3?(AgentResponse @this) => @this.AgentResponseVariant3; /// /// /// public AgentResponse(global::RetellAI.AgentResponseVariant3? value) { - Value3 = value; + AgentResponseVariant3 = value; } /// /// /// public AgentResponse( - global::RetellAI.AgentResponseVariant1? value1, - global::RetellAI.AgentRequest? value2, - global::RetellAI.AgentResponseVariant3? value3 + global::RetellAI.AgentResponseVariant1? agentResponseVariant1, + global::RetellAI.AgentRequest? request, + global::RetellAI.AgentResponseVariant3? agentResponseVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + AgentResponseVariant1 = agentResponseVariant1; + Request = request; + AgentResponseVariant3 = agentResponseVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + AgentResponseVariant3 as object ?? + Request as object ?? + AgentResponseVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + AgentResponseVariant1?.ToString() ?? + Request?.ToString() ?? + AgentResponseVariant3?.ToString() ; /// @@ -150,16 +150,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2 && IsValue3; + return IsAgentResponseVariant1 && IsRequest && IsAgentResponseVariant3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, + global::System.Func? agentResponseVariant1 = null, + global::System.Func? request = null, + global::System.Func? agentResponseVariant3 = null, bool validate = true) { if (validate) @@ -167,17 +167,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsAgentResponseVariant1 && agentResponseVariant1 != null) { - return value1(Value1!); + return agentResponseVariant1(AgentResponseVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsRequest && request != null) { - return value2(Value2!); + return request(Request!); } - else if (IsValue3 && value3 != null) + else if (IsAgentResponseVariant3 && agentResponseVariant3 != null) { - return value3(Value3!); + return agentResponseVariant3(AgentResponseVariant3!); } return default(TResult); @@ -187,9 +187,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, + global::System.Action? agentResponseVariant1 = null, + global::System.Action? request = null, + global::System.Action? agentResponseVariant3 = null, bool validate = true) { if (validate) @@ -197,17 +197,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsAgentResponseVariant1) { - value1?.Invoke(Value1!); + agentResponseVariant1?.Invoke(AgentResponseVariant1!); } - else if (IsValue2) + else if (IsRequest) { - value2?.Invoke(Value2!); + request?.Invoke(Request!); } - else if (IsValue3) + else if (IsAgentResponseVariant3) { - value3?.Invoke(Value3!); + agentResponseVariant3?.Invoke(AgentResponseVariant3!); } } @@ -218,11 +218,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + AgentResponseVariant1, typeof(global::RetellAI.AgentResponseVariant1), - Value2, + Request, typeof(global::RetellAI.AgentRequest), - Value3, + AgentResponseVariant3, typeof(global::RetellAI.AgentResponseVariant3), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(AgentResponse other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentResponseVariant1, other.AgentResponseVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Request, other.Request) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentResponseVariant3, other.AgentResponseVariant3) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapNode.g.cs index 4e6b904..91e8fc0 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AgentSwapNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AgentSwapNodeVariant2? Value2 { get; init; } + public global::RetellAI.AgentSwapNodeVariant2? AgentSwapNodeVariant2 { get; init; } #else - public global::RetellAI.AgentSwapNodeVariant2? Value2 { get; } + public global::RetellAI.AgentSwapNodeVariant2? AgentSwapNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentSwapNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsAgentSwapNodeVariant2 => AgentSwapNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(AgentSwapNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(AgentSwapNode @this) => @this.Base; /// /// /// public AgentSwapNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public AgentSwapNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.AgentSwapNodeVariant2?(AgentSwapNode @this) => @this.Value2; + public static implicit operator global::RetellAI.AgentSwapNodeVariant2?(AgentSwapNode @this) => @this.AgentSwapNodeVariant2; /// /// /// public AgentSwapNode(global::RetellAI.AgentSwapNodeVariant2? value) { - Value2 = value; + AgentSwapNodeVariant2 = value; } /// /// /// public AgentSwapNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.AgentSwapNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.AgentSwapNodeVariant2? agentSwapNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + AgentSwapNodeVariant2 = agentSwapNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + AgentSwapNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + AgentSwapNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsAgentSwapNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? agentSwapNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsAgentSwapNodeVariant2 && agentSwapNodeVariant2 != null) { - return value2(Value2!); + return agentSwapNodeVariant2(AgentSwapNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? agentSwapNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsAgentSwapNodeVariant2) { - value2?.Invoke(Value2!); + agentSwapNodeVariant2?.Invoke(AgentSwapNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + AgentSwapNodeVariant2, typeof(global::RetellAI.AgentSwapNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(AgentSwapNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentSwapNodeVariant2, other.AgentSwapNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.AlwaysEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.AlwaysEdge.g.cs index 770e44e..3d6f0fc 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.AlwaysEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.AlwaysEdge.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeEdge? Value1 { get; init; } + public global::RetellAI.NodeEdge? Node { get; init; } #else - public global::RetellAI.NodeEdge? Value1 { get; } + public global::RetellAI.NodeEdge? Node { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Node))] #endif - public bool IsValue1 => Value1 != null; + public bool IsNode => Node != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AlwaysEdgeVariant2? Value2 { get; init; } + public global::RetellAI.AlwaysEdgeVariant2? AlwaysEdgeVariant2 { get; init; } #else - public global::RetellAI.AlwaysEdgeVariant2? Value2 { get; } + public global::RetellAI.AlwaysEdgeVariant2? AlwaysEdgeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AlwaysEdgeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsAlwaysEdgeVariant2 => AlwaysEdgeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeEdge?(AlwaysEdge @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeEdge?(AlwaysEdge @this) => @this.Node; /// /// /// public AlwaysEdge(global::RetellAI.NodeEdge? value) { - Value1 = value; + Node = value; } /// @@ -68,42 +68,42 @@ public AlwaysEdge(global::RetellAI.NodeEdge? value) /// /// /// - public static implicit operator global::RetellAI.AlwaysEdgeVariant2?(AlwaysEdge @this) => @this.Value2; + public static implicit operator global::RetellAI.AlwaysEdgeVariant2?(AlwaysEdge @this) => @this.AlwaysEdgeVariant2; /// /// /// public AlwaysEdge(global::RetellAI.AlwaysEdgeVariant2? value) { - Value2 = value; + AlwaysEdgeVariant2 = value; } /// /// /// public AlwaysEdge( - global::RetellAI.NodeEdge? value1, - global::RetellAI.AlwaysEdgeVariant2? value2 + global::RetellAI.NodeEdge? node, + global::RetellAI.AlwaysEdgeVariant2? alwaysEdgeVariant2 ) { - Value1 = value1; - Value2 = value2; + Node = node; + AlwaysEdgeVariant2 = alwaysEdgeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + AlwaysEdgeVariant2 as object ?? + Node as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Node?.ToString() ?? + AlwaysEdgeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsNode && IsAlwaysEdgeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? node = null, + global::System.Func? alwaysEdgeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsNode && node != null) { - return value1(Value1!); + return node(Node!); } - else if (IsValue2 && value2 != null) + else if (IsAlwaysEdgeVariant2 && alwaysEdgeVariant2 != null) { - return value2(Value2!); + return alwaysEdgeVariant2(AlwaysEdgeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? node = null, + global::System.Action? alwaysEdgeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsNode) { - value1?.Invoke(Value1!); + node?.Invoke(Node!); } - else if (IsValue2) + else if (IsAlwaysEdgeVariant2) { - value2?.Invoke(Value2!); + alwaysEdgeVariant2?.Invoke(AlwaysEdgeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Node, typeof(global::RetellAI.NodeEdge), - Value2, + AlwaysEdgeVariant2, typeof(global::RetellAI.AlwaysEdgeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(AlwaysEdge other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Node, other.Node) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AlwaysEdgeVariant2, other.AlwaysEdgeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BranchNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BranchNode.g.cs index 24816a2..64c6385 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.BranchNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BranchNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.BranchNodeVariant2? Value2 { get; init; } + public global::RetellAI.BranchNodeVariant2? BranchNodeVariant2 { get; init; } #else - public global::RetellAI.BranchNodeVariant2? Value2 { get; } + public global::RetellAI.BranchNodeVariant2? BranchNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(BranchNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsBranchNodeVariant2 => BranchNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(BranchNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(BranchNode @this) => @this.Base; /// /// /// public BranchNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public BranchNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.BranchNodeVariant2?(BranchNode @this) => @this.Value2; + public static implicit operator global::RetellAI.BranchNodeVariant2?(BranchNode @this) => @this.BranchNodeVariant2; /// /// /// public BranchNode(global::RetellAI.BranchNodeVariant2? value) { - Value2 = value; + BranchNodeVariant2 = value; } /// /// /// public BranchNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.BranchNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.BranchNodeVariant2? branchNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + BranchNodeVariant2 = branchNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + BranchNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + BranchNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsBranchNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? branchNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsBranchNodeVariant2 && branchNodeVariant2 != null) { - return value2(Value2!); + return branchNodeVariant2(BranchNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? branchNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsBranchNodeVariant2) { - value2?.Invoke(Value2!); + branchNodeVariant2?.Invoke(BranchNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + BranchNodeVariant2, typeof(global::RetellAI.BranchNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(BranchNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(BranchNodeVariant2, other.BranchNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.BridgeTransferNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.BridgeTransferNode.g.cs index 7a955bf..199aaed 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.BridgeTransferNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.BridgeTransferNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.BridgeTransferNodeVariant2? Value2 { get; init; } + public global::RetellAI.BridgeTransferNodeVariant2? BridgeTransferNodeVariant2 { get; init; } #else - public global::RetellAI.BridgeTransferNodeVariant2? Value2 { get; } + public global::RetellAI.BridgeTransferNodeVariant2? BridgeTransferNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(BridgeTransferNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsBridgeTransferNodeVariant2 => BridgeTransferNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(BridgeTransferNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(BridgeTransferNode @this) => @this.Base; /// /// /// public BridgeTransferNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public BridgeTransferNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.BridgeTransferNodeVariant2?(BridgeTransferNode @this) => @this.Value2; + public static implicit operator global::RetellAI.BridgeTransferNodeVariant2?(BridgeTransferNode @this) => @this.BridgeTransferNodeVariant2; /// /// /// public BridgeTransferNode(global::RetellAI.BridgeTransferNodeVariant2? value) { - Value2 = value; + BridgeTransferNodeVariant2 = value; } /// /// /// public BridgeTransferNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.BridgeTransferNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.BridgeTransferNodeVariant2? bridgeTransferNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + BridgeTransferNodeVariant2 = bridgeTransferNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + BridgeTransferNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + BridgeTransferNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsBridgeTransferNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? bridgeTransferNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsBridgeTransferNodeVariant2 && bridgeTransferNodeVariant2 != null) { - return value2(Value2!); + return bridgeTransferNodeVariant2(BridgeTransferNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? bridgeTransferNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsBridgeTransferNodeVariant2) { - value2?.Invoke(Value2!); + bridgeTransferNodeVariant2?.Invoke(BridgeTransferNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + BridgeTransferNodeVariant2, typeof(global::RetellAI.BridgeTransferNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(BridgeTransferNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(BridgeTransferNodeVariant2, other.BridgeTransferNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CancelTransferNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CancelTransferNode.g.cs index ff7f898..e02fb6a 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CancelTransferNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CancelTransferNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.CancelTransferNodeVariant2? Value2 { get; init; } + public global::RetellAI.CancelTransferNodeVariant2? CancelTransferNodeVariant2 { get; init; } #else - public global::RetellAI.CancelTransferNodeVariant2? Value2 { get; } + public global::RetellAI.CancelTransferNodeVariant2? CancelTransferNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CancelTransferNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCancelTransferNodeVariant2 => CancelTransferNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(CancelTransferNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(CancelTransferNode @this) => @this.Base; /// /// /// public CancelTransferNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public CancelTransferNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.CancelTransferNodeVariant2?(CancelTransferNode @this) => @this.Value2; + public static implicit operator global::RetellAI.CancelTransferNodeVariant2?(CancelTransferNode @this) => @this.CancelTransferNodeVariant2; /// /// /// public CancelTransferNode(global::RetellAI.CancelTransferNodeVariant2? value) { - Value2 = value; + CancelTransferNodeVariant2 = value; } /// /// /// public CancelTransferNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.CancelTransferNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.CancelTransferNodeVariant2? cancelTransferNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + CancelTransferNodeVariant2 = cancelTransferNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + CancelTransferNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + CancelTransferNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsCancelTransferNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? cancelTransferNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsCancelTransferNodeVariant2 && cancelTransferNodeVariant2 != null) { - return value2(Value2!); + return cancelTransferNodeVariant2(CancelTransferNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? cancelTransferNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsCancelTransferNodeVariant2) { - value2?.Invoke(Value2!); + cancelTransferNodeVariant2?.Invoke(CancelTransferNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + CancelTransferNodeVariant2, typeof(global::RetellAI.CancelTransferNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CancelTransferNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CancelTransferNodeVariant2, other.CancelTransferNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ChatAgentResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ChatAgentResponse.g.cs index e2e652a..117ab98 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ChatAgentResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ChatAgentResponse.g.cs @@ -13,52 +13,52 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ChatAgentResponseVariant1? Value1 { get; init; } + public global::RetellAI.ChatAgentResponseVariant1? ChatAgentResponseVariant1 { get; init; } #else - public global::RetellAI.ChatAgentResponseVariant1? Value1 { get; } + public global::RetellAI.ChatAgentResponseVariant1? ChatAgentResponseVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatAgentResponseVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsChatAgentResponseVariant1 => ChatAgentResponseVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ChatAgentRequest? Value2 { get; init; } + public global::RetellAI.ChatAgentRequest? Request { get; init; } #else - public global::RetellAI.ChatAgentRequest? Value2 { get; } + public global::RetellAI.ChatAgentRequest? Request { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Request))] #endif - public bool IsValue2 => Value2 != null; + public bool IsRequest => Request != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ChatAgentResponseVariant3? Value3 { get; init; } + public global::RetellAI.ChatAgentResponseVariant3? ChatAgentResponseVariant3 { get; init; } #else - public global::RetellAI.ChatAgentResponseVariant3? Value3 { get; } + public global::RetellAI.ChatAgentResponseVariant3? ChatAgentResponseVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatAgentResponseVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsChatAgentResponseVariant3 => ChatAgentResponseVariant3 != null; /// /// /// @@ -67,14 +67,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.ChatAgentResponseVariant1?(ChatAgentResponse @this) => @this.Value1; + public static implicit operator global::RetellAI.ChatAgentResponseVariant1?(ChatAgentResponse @this) => @this.ChatAgentResponseVariant1; /// /// /// public ChatAgentResponse(global::RetellAI.ChatAgentResponseVariant1? value) { - Value1 = value; + ChatAgentResponseVariant1 = value; } /// @@ -85,14 +85,14 @@ public ChatAgentResponse(global::RetellAI.ChatAgentResponseVariant1? value) /// /// /// - public static implicit operator global::RetellAI.ChatAgentRequest?(ChatAgentResponse @this) => @this.Value2; + public static implicit operator global::RetellAI.ChatAgentRequest?(ChatAgentResponse @this) => @this.Request; /// /// /// public ChatAgentResponse(global::RetellAI.ChatAgentRequest? value) { - Value2 = value; + Request = value; } /// @@ -103,46 +103,46 @@ public ChatAgentResponse(global::RetellAI.ChatAgentRequest? value) /// /// /// - public static implicit operator global::RetellAI.ChatAgentResponseVariant3?(ChatAgentResponse @this) => @this.Value3; + public static implicit operator global::RetellAI.ChatAgentResponseVariant3?(ChatAgentResponse @this) => @this.ChatAgentResponseVariant3; /// /// /// public ChatAgentResponse(global::RetellAI.ChatAgentResponseVariant3? value) { - Value3 = value; + ChatAgentResponseVariant3 = value; } /// /// /// public ChatAgentResponse( - global::RetellAI.ChatAgentResponseVariant1? value1, - global::RetellAI.ChatAgentRequest? value2, - global::RetellAI.ChatAgentResponseVariant3? value3 + global::RetellAI.ChatAgentResponseVariant1? chatAgentResponseVariant1, + global::RetellAI.ChatAgentRequest? request, + global::RetellAI.ChatAgentResponseVariant3? chatAgentResponseVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + ChatAgentResponseVariant1 = chatAgentResponseVariant1; + Request = request; + ChatAgentResponseVariant3 = chatAgentResponseVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + ChatAgentResponseVariant3 as object ?? + Request as object ?? + ChatAgentResponseVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + ChatAgentResponseVariant1?.ToString() ?? + Request?.ToString() ?? + ChatAgentResponseVariant3?.ToString() ; /// @@ -150,16 +150,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2 && IsValue3; + return IsChatAgentResponseVariant1 && IsRequest && IsChatAgentResponseVariant3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, + global::System.Func? chatAgentResponseVariant1 = null, + global::System.Func? request = null, + global::System.Func? chatAgentResponseVariant3 = null, bool validate = true) { if (validate) @@ -167,17 +167,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsChatAgentResponseVariant1 && chatAgentResponseVariant1 != null) { - return value1(Value1!); + return chatAgentResponseVariant1(ChatAgentResponseVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsRequest && request != null) { - return value2(Value2!); + return request(Request!); } - else if (IsValue3 && value3 != null) + else if (IsChatAgentResponseVariant3 && chatAgentResponseVariant3 != null) { - return value3(Value3!); + return chatAgentResponseVariant3(ChatAgentResponseVariant3!); } return default(TResult); @@ -187,9 +187,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, + global::System.Action? chatAgentResponseVariant1 = null, + global::System.Action? request = null, + global::System.Action? chatAgentResponseVariant3 = null, bool validate = true) { if (validate) @@ -197,17 +197,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsChatAgentResponseVariant1) { - value1?.Invoke(Value1!); + chatAgentResponseVariant1?.Invoke(ChatAgentResponseVariant1!); } - else if (IsValue2) + else if (IsRequest) { - value2?.Invoke(Value2!); + request?.Invoke(Request!); } - else if (IsValue3) + else if (IsChatAgentResponseVariant3) { - value3?.Invoke(Value3!); + chatAgentResponseVariant3?.Invoke(ChatAgentResponseVariant3!); } } @@ -218,11 +218,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ChatAgentResponseVariant1, typeof(global::RetellAI.ChatAgentResponseVariant1), - Value2, + Request, typeof(global::RetellAI.ChatAgentRequest), - Value3, + ChatAgentResponseVariant3, typeof(global::RetellAI.ChatAgentResponseVariant3), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ChatAgentResponse other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatAgentResponseVariant1, other.ChatAgentResponseVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Request, other.Request) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatAgentResponseVariant3, other.ChatAgentResponseVariant3) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CodeNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CodeNode.g.cs index eb2099a..68644f0 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CodeNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CodeNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.CodeNodeVariant2? Value2 { get; init; } + public global::RetellAI.CodeNodeVariant2? CodeNodeVariant2 { get; init; } #else - public global::RetellAI.CodeNodeVariant2? Value2 { get; } + public global::RetellAI.CodeNodeVariant2? CodeNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCodeNodeVariant2 => CodeNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(CodeNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(CodeNode @this) => @this.Base; /// /// /// public CodeNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public CodeNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.CodeNodeVariant2?(CodeNode @this) => @this.Value2; + public static implicit operator global::RetellAI.CodeNodeVariant2?(CodeNode @this) => @this.CodeNodeVariant2; /// /// /// public CodeNode(global::RetellAI.CodeNodeVariant2? value) { - Value2 = value; + CodeNodeVariant2 = value; } /// /// /// public CodeNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.CodeNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.CodeNodeVariant2? codeNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + CodeNodeVariant2 = codeNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + CodeNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + CodeNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsCodeNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? codeNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsCodeNodeVariant2 && codeNodeVariant2 != null) { - return value2(Value2!); + return codeNodeVariant2(CodeNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? codeNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsCodeNodeVariant2) { - value2?.Invoke(Value2!); + codeNodeVariant2?.Invoke(CodeNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + CodeNodeVariant2, typeof(global::RetellAI.CodeNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CodeNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeNodeVariant2, other.CodeNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ComponentNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ComponentNode.g.cs index 2f3b51c..53a7f78 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ComponentNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ComponentNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBaseCommon? Value1 { get; init; } + public global::RetellAI.NodeBaseCommon? BaseCommon { get; init; } #else - public global::RetellAI.NodeBaseCommon? Value1 { get; } + public global::RetellAI.NodeBaseCommon? BaseCommon { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(BaseCommon))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBaseCommon => BaseCommon != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ComponentNodeVariant2? Value2 { get; init; } + public global::RetellAI.ComponentNodeVariant2? ComponentNodeVariant2 { get; init; } #else - public global::RetellAI.ComponentNodeVariant2? Value2 { get; } + public global::RetellAI.ComponentNodeVariant2? ComponentNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ComponentNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsComponentNodeVariant2 => ComponentNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBaseCommon?(ComponentNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBaseCommon?(ComponentNode @this) => @this.BaseCommon; /// /// /// public ComponentNode(global::RetellAI.NodeBaseCommon? value) { - Value1 = value; + BaseCommon = value; } /// @@ -68,42 +68,42 @@ public ComponentNode(global::RetellAI.NodeBaseCommon? value) /// /// /// - public static implicit operator global::RetellAI.ComponentNodeVariant2?(ComponentNode @this) => @this.Value2; + public static implicit operator global::RetellAI.ComponentNodeVariant2?(ComponentNode @this) => @this.ComponentNodeVariant2; /// /// /// public ComponentNode(global::RetellAI.ComponentNodeVariant2? value) { - Value2 = value; + ComponentNodeVariant2 = value; } /// /// /// public ComponentNode( - global::RetellAI.NodeBaseCommon? value1, - global::RetellAI.ComponentNodeVariant2? value2 + global::RetellAI.NodeBaseCommon? baseCommon, + global::RetellAI.ComponentNodeVariant2? componentNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + BaseCommon = baseCommon; + ComponentNodeVariant2 = componentNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + ComponentNodeVariant2 as object ?? + BaseCommon as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + BaseCommon?.ToString() ?? + ComponentNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBaseCommon && IsComponentNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? baseCommon = null, + global::System.Func? componentNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBaseCommon && baseCommon != null) { - return value1(Value1!); + return baseCommon(BaseCommon!); } - else if (IsValue2 && value2 != null) + else if (IsComponentNodeVariant2 && componentNodeVariant2 != null) { - return value2(Value2!); + return componentNodeVariant2(ComponentNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? baseCommon = null, + global::System.Action? componentNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBaseCommon) { - value1?.Invoke(Value1!); + baseCommon?.Invoke(BaseCommon!); } - else if (IsValue2) + else if (IsComponentNodeVariant2) { - value2?.Invoke(Value2!); + componentNodeVariant2?.Invoke(ComponentNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + BaseCommon, typeof(global::RetellAI.NodeBaseCommon), - Value2, + ComponentNodeVariant2, typeof(global::RetellAI.ComponentNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ComponentNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(BaseCommon, other.BaseCommon) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ComponentNodeVariant2, other.ComponentNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlow.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlow.g.cs index 7e3e297..8a1b2be 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlow.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlow.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// Override properties for conversation flow configuration in agent override requests. /// #if NET6_0_OR_GREATER - public global::RetellAI.ConversationFlowOverride? Value1 { get; init; } + public global::RetellAI.ConversationFlowOverride? Override { get; init; } #else - public global::RetellAI.ConversationFlowOverride? Value1 { get; } + public global::RetellAI.ConversationFlowOverride? Override { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Override))] #endif - public bool IsValue1 => Value1 != null; + public bool IsOverride => Override != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ConversationFlowVariant2? Value2 { get; init; } + public global::RetellAI.ConversationFlowVariant2? ConversationFlowVariant2 { get; init; } #else - public global::RetellAI.ConversationFlowVariant2? Value2 { get; } + public global::RetellAI.ConversationFlowVariant2? ConversationFlowVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationFlowVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsConversationFlowVariant2 => ConversationFlowVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.ConversationFlowOverride?(ConversationFlow @this) => @this.Value1; + public static implicit operator global::RetellAI.ConversationFlowOverride?(ConversationFlow @this) => @this.Override; /// /// /// public ConversationFlow(global::RetellAI.ConversationFlowOverride? value) { - Value1 = value; + Override = value; } /// @@ -68,42 +68,42 @@ public ConversationFlow(global::RetellAI.ConversationFlowOverride? value) /// /// /// - public static implicit operator global::RetellAI.ConversationFlowVariant2?(ConversationFlow @this) => @this.Value2; + public static implicit operator global::RetellAI.ConversationFlowVariant2?(ConversationFlow @this) => @this.ConversationFlowVariant2; /// /// /// public ConversationFlow(global::RetellAI.ConversationFlowVariant2? value) { - Value2 = value; + ConversationFlowVariant2 = value; } /// /// /// public ConversationFlow( - global::RetellAI.ConversationFlowOverride? value1, - global::RetellAI.ConversationFlowVariant2? value2 + global::RetellAI.ConversationFlowOverride? @override, + global::RetellAI.ConversationFlowVariant2? conversationFlowVariant2 ) { - Value1 = value1; - Value2 = value2; + Override = @override; + ConversationFlowVariant2 = conversationFlowVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + ConversationFlowVariant2 as object ?? + Override as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Override?.ToString() ?? + ConversationFlowVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsOverride && IsConversationFlowVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @override = null, + global::System.Func? conversationFlowVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsOverride && @override != null) { - return value1(Value1!); + return @override(Override!); } - else if (IsValue2 && value2 != null) + else if (IsConversationFlowVariant2 && conversationFlowVariant2 != null) { - return value2(Value2!); + return conversationFlowVariant2(ConversationFlowVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @override = null, + global::System.Action? conversationFlowVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsOverride) { - value1?.Invoke(Value1!); + @override?.Invoke(Override!); } - else if (IsValue2) + else if (IsConversationFlowVariant2) { - value2?.Invoke(Value2!); + conversationFlowVariant2?.Invoke(ConversationFlowVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Override, typeof(global::RetellAI.ConversationFlowOverride), - Value2, + ConversationFlowVariant2, typeof(global::RetellAI.ConversationFlowVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ConversationFlow other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Override, other.Override) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationFlowVariant2, other.ConversationFlowVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowComponentResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowComponentResponse.g.cs index 29656e2..e7c8e5f 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowComponentResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowComponentResponse.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.CreateConversationFlowComponentRequest? Value1 { get; init; } + public global::RetellAI.CreateConversationFlowComponentRequest? CreateRequest { get; init; } #else - public global::RetellAI.CreateConversationFlowComponentRequest? Value1 { get; } + public global::RetellAI.CreateConversationFlowComponentRequest? CreateRequest { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateRequest))] #endif - public bool IsValue1 => Value1 != null; + public bool IsCreateRequest => CreateRequest != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ConversationFlowComponentResponseVariant2? Value2 { get; init; } + public global::RetellAI.ConversationFlowComponentResponseVariant2? ConversationFlowComponentResponseVariant2 { get; init; } #else - public global::RetellAI.ConversationFlowComponentResponseVariant2? Value2 { get; } + public global::RetellAI.ConversationFlowComponentResponseVariant2? ConversationFlowComponentResponseVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationFlowComponentResponseVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsConversationFlowComponentResponseVariant2 => ConversationFlowComponentResponseVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.CreateConversationFlowComponentRequest?(ConversationFlowComponentResponse @this) => @this.Value1; + public static implicit operator global::RetellAI.CreateConversationFlowComponentRequest?(ConversationFlowComponentResponse @this) => @this.CreateRequest; /// /// /// public ConversationFlowComponentResponse(global::RetellAI.CreateConversationFlowComponentRequest? value) { - Value1 = value; + CreateRequest = value; } /// @@ -68,42 +68,42 @@ public ConversationFlowComponentResponse(global::RetellAI.CreateConversationFlow /// /// /// - public static implicit operator global::RetellAI.ConversationFlowComponentResponseVariant2?(ConversationFlowComponentResponse @this) => @this.Value2; + public static implicit operator global::RetellAI.ConversationFlowComponentResponseVariant2?(ConversationFlowComponentResponse @this) => @this.ConversationFlowComponentResponseVariant2; /// /// /// public ConversationFlowComponentResponse(global::RetellAI.ConversationFlowComponentResponseVariant2? value) { - Value2 = value; + ConversationFlowComponentResponseVariant2 = value; } /// /// /// public ConversationFlowComponentResponse( - global::RetellAI.CreateConversationFlowComponentRequest? value1, - global::RetellAI.ConversationFlowComponentResponseVariant2? value2 + global::RetellAI.CreateConversationFlowComponentRequest? createRequest, + global::RetellAI.ConversationFlowComponentResponseVariant2? conversationFlowComponentResponseVariant2 ) { - Value1 = value1; - Value2 = value2; + CreateRequest = createRequest; + ConversationFlowComponentResponseVariant2 = conversationFlowComponentResponseVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + ConversationFlowComponentResponseVariant2 as object ?? + CreateRequest as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + CreateRequest?.ToString() ?? + ConversationFlowComponentResponseVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsCreateRequest && IsConversationFlowComponentResponseVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? createRequest = null, + global::System.Func? conversationFlowComponentResponseVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsCreateRequest && createRequest != null) { - return value1(Value1!); + return createRequest(CreateRequest!); } - else if (IsValue2 && value2 != null) + else if (IsConversationFlowComponentResponseVariant2 && conversationFlowComponentResponseVariant2 != null) { - return value2(Value2!); + return conversationFlowComponentResponseVariant2(ConversationFlowComponentResponseVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? createRequest = null, + global::System.Action? conversationFlowComponentResponseVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsCreateRequest) { - value1?.Invoke(Value1!); + createRequest?.Invoke(CreateRequest!); } - else if (IsValue2) + else if (IsConversationFlowComponentResponseVariant2) { - value2?.Invoke(Value2!); + conversationFlowComponentResponseVariant2?.Invoke(ConversationFlowComponentResponseVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + CreateRequest, typeof(global::RetellAI.CreateConversationFlowComponentRequest), - Value2, + ConversationFlowComponentResponseVariant2, typeof(global::RetellAI.ConversationFlowComponentResponseVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ConversationFlowComponentResponse other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateRequest, other.CreateRequest) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationFlowComponentResponseVariant2, other.ConversationFlowComponentResponseVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowNode.g.cs index 1a8079d..aca6c92 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowNode.g.cs @@ -13,256 +13,256 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ConversationNode? Value1 { get; init; } + public global::RetellAI.ConversationNode? ConversationNode { get; init; } #else - public global::RetellAI.ConversationNode? Value1 { get; } + public global::RetellAI.ConversationNode? ConversationNode { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationNode))] #endif - public bool IsValue1 => Value1 != null; + public bool IsConversationNode => ConversationNode != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SubagentNode? Value2 { get; init; } + public global::RetellAI.SubagentNode? Subagent { get; init; } #else - public global::RetellAI.SubagentNode? Value2 { get; } + public global::RetellAI.SubagentNode? Subagent { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Subagent))] #endif - public bool IsValue2 => Value2 != null; + public bool IsSubagent => Subagent != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.EndNode? Value3 { get; init; } + public global::RetellAI.EndNode? End { get; init; } #else - public global::RetellAI.EndNode? Value3 { get; } + public global::RetellAI.EndNode? End { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(End))] #endif - public bool IsValue3 => Value3 != null; + public bool IsEnd => End != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.FunctionNode? Value4 { get; init; } + public global::RetellAI.FunctionNode? Function { get; init; } #else - public global::RetellAI.FunctionNode? Value4 { get; } + public global::RetellAI.FunctionNode? Function { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Function))] #endif - public bool IsValue4 => Value4 != null; + public bool IsFunction => Function != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.CodeNode? Value5 { get; init; } + public global::RetellAI.CodeNode? Code { get; init; } #else - public global::RetellAI.CodeNode? Value5 { get; } + public global::RetellAI.CodeNode? Code { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Code))] #endif - public bool IsValue5 => Value5 != null; + public bool IsCode => Code != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.TransferCallNode? Value6 { get; init; } + public global::RetellAI.TransferCallNode? TransferCall { get; init; } #else - public global::RetellAI.TransferCallNode? Value6 { get; } + public global::RetellAI.TransferCallNode? TransferCall { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value6))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TransferCall))] #endif - public bool IsValue6 => Value6 != null; + public bool IsTransferCall => TransferCall != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.PressDigitNode? Value7 { get; init; } + public global::RetellAI.PressDigitNode? PressDigit { get; init; } #else - public global::RetellAI.PressDigitNode? Value7 { get; } + public global::RetellAI.PressDigitNode? PressDigit { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value7))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PressDigit))] #endif - public bool IsValue7 => Value7 != null; + public bool IsPressDigit => PressDigit != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.BranchNode? Value8 { get; init; } + public global::RetellAI.BranchNode? Branch { get; init; } #else - public global::RetellAI.BranchNode? Value8 { get; } + public global::RetellAI.BranchNode? Branch { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value8))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Branch))] #endif - public bool IsValue8 => Value8 != null; + public bool IsBranch => Branch != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SmsNode? Value9 { get; init; } + public global::RetellAI.SmsNode? Sms { get; init; } #else - public global::RetellAI.SmsNode? Value9 { get; } + public global::RetellAI.SmsNode? Sms { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value9))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Sms))] #endif - public bool IsValue9 => Value9 != null; + public bool IsSms => Sms != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ExtractDynamicVariablesNode? Value10 { get; init; } + public global::RetellAI.ExtractDynamicVariablesNode? ExtractDynamicVariables { get; init; } #else - public global::RetellAI.ExtractDynamicVariablesNode? Value10 { get; } + public global::RetellAI.ExtractDynamicVariablesNode? ExtractDynamicVariables { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value10))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ExtractDynamicVariables))] #endif - public bool IsValue10 => Value10 != null; + public bool IsExtractDynamicVariables => ExtractDynamicVariables != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AgentSwapNode? Value11 { get; init; } + public global::RetellAI.AgentSwapNode? AgentSwap { get; init; } #else - public global::RetellAI.AgentSwapNode? Value11 { get; } + public global::RetellAI.AgentSwapNode? AgentSwap { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value11))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentSwap))] #endif - public bool IsValue11 => Value11 != null; + public bool IsAgentSwap => AgentSwap != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.MCPNode? Value12 { get; init; } + public global::RetellAI.MCPNode? Mcp { get; init; } #else - public global::RetellAI.MCPNode? Value12 { get; } + public global::RetellAI.MCPNode? Mcp { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value12))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Mcp))] #endif - public bool IsValue12 => Value12 != null; + public bool IsMcp => Mcp != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ComponentNode? Value13 { get; init; } + public global::RetellAI.ComponentNode? Component { get; init; } #else - public global::RetellAI.ComponentNode? Value13 { get; } + public global::RetellAI.ComponentNode? Component { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value13))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Component))] #endif - public bool IsValue13 => Value13 != null; + public bool IsComponent => Component != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.BridgeTransferNode? Value14 { get; init; } + public global::RetellAI.BridgeTransferNode? BridgeTransfer { get; init; } #else - public global::RetellAI.BridgeTransferNode? Value14 { get; } + public global::RetellAI.BridgeTransferNode? BridgeTransfer { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value14))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(BridgeTransfer))] #endif - public bool IsValue14 => Value14 != null; + public bool IsBridgeTransfer => BridgeTransfer != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.CancelTransferNode? Value15 { get; init; } + public global::RetellAI.CancelTransferNode? CancelTransfer { get; init; } #else - public global::RetellAI.CancelTransferNode? Value15 { get; } + public global::RetellAI.CancelTransferNode? CancelTransfer { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value15))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CancelTransfer))] #endif - public bool IsValue15 => Value15 != null; + public bool IsCancelTransfer => CancelTransfer != null; /// /// /// @@ -271,14 +271,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.ConversationNode?(ConversationFlowNode @this) => @this.Value1; + public static implicit operator global::RetellAI.ConversationNode?(ConversationFlowNode @this) => @this.ConversationNode; /// /// /// public ConversationFlowNode(global::RetellAI.ConversationNode? value) { - Value1 = value; + ConversationNode = value; } /// @@ -289,14 +289,14 @@ public ConversationFlowNode(global::RetellAI.ConversationNode? value) /// /// /// - public static implicit operator global::RetellAI.SubagentNode?(ConversationFlowNode @this) => @this.Value2; + public static implicit operator global::RetellAI.SubagentNode?(ConversationFlowNode @this) => @this.Subagent; /// /// /// public ConversationFlowNode(global::RetellAI.SubagentNode? value) { - Value2 = value; + Subagent = value; } /// @@ -307,14 +307,14 @@ public ConversationFlowNode(global::RetellAI.SubagentNode? value) /// /// /// - public static implicit operator global::RetellAI.EndNode?(ConversationFlowNode @this) => @this.Value3; + public static implicit operator global::RetellAI.EndNode?(ConversationFlowNode @this) => @this.End; /// /// /// public ConversationFlowNode(global::RetellAI.EndNode? value) { - Value3 = value; + End = value; } /// @@ -325,14 +325,14 @@ public ConversationFlowNode(global::RetellAI.EndNode? value) /// /// /// - public static implicit operator global::RetellAI.FunctionNode?(ConversationFlowNode @this) => @this.Value4; + public static implicit operator global::RetellAI.FunctionNode?(ConversationFlowNode @this) => @this.Function; /// /// /// public ConversationFlowNode(global::RetellAI.FunctionNode? value) { - Value4 = value; + Function = value; } /// @@ -343,14 +343,14 @@ public ConversationFlowNode(global::RetellAI.FunctionNode? value) /// /// /// - public static implicit operator global::RetellAI.CodeNode?(ConversationFlowNode @this) => @this.Value5; + public static implicit operator global::RetellAI.CodeNode?(ConversationFlowNode @this) => @this.Code; /// /// /// public ConversationFlowNode(global::RetellAI.CodeNode? value) { - Value5 = value; + Code = value; } /// @@ -361,14 +361,14 @@ public ConversationFlowNode(global::RetellAI.CodeNode? value) /// /// /// - public static implicit operator global::RetellAI.TransferCallNode?(ConversationFlowNode @this) => @this.Value6; + public static implicit operator global::RetellAI.TransferCallNode?(ConversationFlowNode @this) => @this.TransferCall; /// /// /// public ConversationFlowNode(global::RetellAI.TransferCallNode? value) { - Value6 = value; + TransferCall = value; } /// @@ -379,14 +379,14 @@ public ConversationFlowNode(global::RetellAI.TransferCallNode? value) /// /// /// - public static implicit operator global::RetellAI.PressDigitNode?(ConversationFlowNode @this) => @this.Value7; + public static implicit operator global::RetellAI.PressDigitNode?(ConversationFlowNode @this) => @this.PressDigit; /// /// /// public ConversationFlowNode(global::RetellAI.PressDigitNode? value) { - Value7 = value; + PressDigit = value; } /// @@ -397,14 +397,14 @@ public ConversationFlowNode(global::RetellAI.PressDigitNode? value) /// /// /// - public static implicit operator global::RetellAI.BranchNode?(ConversationFlowNode @this) => @this.Value8; + public static implicit operator global::RetellAI.BranchNode?(ConversationFlowNode @this) => @this.Branch; /// /// /// public ConversationFlowNode(global::RetellAI.BranchNode? value) { - Value8 = value; + Branch = value; } /// @@ -415,14 +415,14 @@ public ConversationFlowNode(global::RetellAI.BranchNode? value) /// /// /// - public static implicit operator global::RetellAI.SmsNode?(ConversationFlowNode @this) => @this.Value9; + public static implicit operator global::RetellAI.SmsNode?(ConversationFlowNode @this) => @this.Sms; /// /// /// public ConversationFlowNode(global::RetellAI.SmsNode? value) { - Value9 = value; + Sms = value; } /// @@ -433,14 +433,14 @@ public ConversationFlowNode(global::RetellAI.SmsNode? value) /// /// /// - public static implicit operator global::RetellAI.ExtractDynamicVariablesNode?(ConversationFlowNode @this) => @this.Value10; + public static implicit operator global::RetellAI.ExtractDynamicVariablesNode?(ConversationFlowNode @this) => @this.ExtractDynamicVariables; /// /// /// public ConversationFlowNode(global::RetellAI.ExtractDynamicVariablesNode? value) { - Value10 = value; + ExtractDynamicVariables = value; } /// @@ -451,14 +451,14 @@ public ConversationFlowNode(global::RetellAI.ExtractDynamicVariablesNode? value) /// /// /// - public static implicit operator global::RetellAI.AgentSwapNode?(ConversationFlowNode @this) => @this.Value11; + public static implicit operator global::RetellAI.AgentSwapNode?(ConversationFlowNode @this) => @this.AgentSwap; /// /// /// public ConversationFlowNode(global::RetellAI.AgentSwapNode? value) { - Value11 = value; + AgentSwap = value; } /// @@ -469,14 +469,14 @@ public ConversationFlowNode(global::RetellAI.AgentSwapNode? value) /// /// /// - public static implicit operator global::RetellAI.MCPNode?(ConversationFlowNode @this) => @this.Value12; + public static implicit operator global::RetellAI.MCPNode?(ConversationFlowNode @this) => @this.Mcp; /// /// /// public ConversationFlowNode(global::RetellAI.MCPNode? value) { - Value12 = value; + Mcp = value; } /// @@ -487,14 +487,14 @@ public ConversationFlowNode(global::RetellAI.MCPNode? value) /// /// /// - public static implicit operator global::RetellAI.ComponentNode?(ConversationFlowNode @this) => @this.Value13; + public static implicit operator global::RetellAI.ComponentNode?(ConversationFlowNode @this) => @this.Component; /// /// /// public ConversationFlowNode(global::RetellAI.ComponentNode? value) { - Value13 = value; + Component = value; } /// @@ -505,14 +505,14 @@ public ConversationFlowNode(global::RetellAI.ComponentNode? value) /// /// /// - public static implicit operator global::RetellAI.BridgeTransferNode?(ConversationFlowNode @this) => @this.Value14; + public static implicit operator global::RetellAI.BridgeTransferNode?(ConversationFlowNode @this) => @this.BridgeTransfer; /// /// /// public ConversationFlowNode(global::RetellAI.BridgeTransferNode? value) { - Value14 = value; + BridgeTransfer = value; } /// @@ -523,94 +523,94 @@ public ConversationFlowNode(global::RetellAI.BridgeTransferNode? value) /// /// /// - public static implicit operator global::RetellAI.CancelTransferNode?(ConversationFlowNode @this) => @this.Value15; + public static implicit operator global::RetellAI.CancelTransferNode?(ConversationFlowNode @this) => @this.CancelTransfer; /// /// /// public ConversationFlowNode(global::RetellAI.CancelTransferNode? value) { - Value15 = value; + CancelTransfer = value; } /// /// /// public ConversationFlowNode( - global::RetellAI.ConversationNode? value1, - global::RetellAI.SubagentNode? value2, - global::RetellAI.EndNode? value3, - global::RetellAI.FunctionNode? value4, - global::RetellAI.CodeNode? value5, - global::RetellAI.TransferCallNode? value6, - global::RetellAI.PressDigitNode? value7, - global::RetellAI.BranchNode? value8, - global::RetellAI.SmsNode? value9, - global::RetellAI.ExtractDynamicVariablesNode? value10, - global::RetellAI.AgentSwapNode? value11, - global::RetellAI.MCPNode? value12, - global::RetellAI.ComponentNode? value13, - global::RetellAI.BridgeTransferNode? value14, - global::RetellAI.CancelTransferNode? value15 + global::RetellAI.ConversationNode? conversationNode, + global::RetellAI.SubagentNode? subagent, + global::RetellAI.EndNode? end, + global::RetellAI.FunctionNode? function, + global::RetellAI.CodeNode? code, + global::RetellAI.TransferCallNode? transferCall, + global::RetellAI.PressDigitNode? pressDigit, + global::RetellAI.BranchNode? branch, + global::RetellAI.SmsNode? sms, + global::RetellAI.ExtractDynamicVariablesNode? extractDynamicVariables, + global::RetellAI.AgentSwapNode? agentSwap, + global::RetellAI.MCPNode? mcp, + global::RetellAI.ComponentNode? component, + global::RetellAI.BridgeTransferNode? bridgeTransfer, + global::RetellAI.CancelTransferNode? cancelTransfer ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - Value5 = value5; - Value6 = value6; - Value7 = value7; - Value8 = value8; - Value9 = value9; - Value10 = value10; - Value11 = value11; - Value12 = value12; - Value13 = value13; - Value14 = value14; - Value15 = value15; + ConversationNode = conversationNode; + Subagent = subagent; + End = end; + Function = function; + Code = code; + TransferCall = transferCall; + PressDigit = pressDigit; + Branch = branch; + Sms = sms; + ExtractDynamicVariables = extractDynamicVariables; + AgentSwap = agentSwap; + Mcp = mcp; + Component = component; + BridgeTransfer = bridgeTransfer; + CancelTransfer = cancelTransfer; } /// /// /// public object? Object => - Value15 as object ?? - Value14 as object ?? - Value13 as object ?? - Value12 as object ?? - Value11 as object ?? - Value10 as object ?? - Value9 as object ?? - Value8 as object ?? - Value7 as object ?? - Value6 as object ?? - Value5 as object ?? - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object + CancelTransfer as object ?? + BridgeTransfer as object ?? + Component as object ?? + Mcp as object ?? + AgentSwap as object ?? + ExtractDynamicVariables as object ?? + Sms as object ?? + Branch as object ?? + PressDigit as object ?? + TransferCall as object ?? + Code as object ?? + Function as object ?? + End as object ?? + Subagent as object ?? + ConversationNode as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() ?? - Value4?.ToString() ?? - Value5?.ToString() ?? - Value6?.ToString() ?? - Value7?.ToString() ?? - Value8?.ToString() ?? - Value9?.ToString() ?? - Value10?.ToString() ?? - Value11?.ToString() ?? - Value12?.ToString() ?? - Value13?.ToString() ?? - Value14?.ToString() ?? - Value15?.ToString() + ConversationNode?.ToString() ?? + Subagent?.ToString() ?? + End?.ToString() ?? + Function?.ToString() ?? + Code?.ToString() ?? + TransferCall?.ToString() ?? + PressDigit?.ToString() ?? + Branch?.ToString() ?? + Sms?.ToString() ?? + ExtractDynamicVariables?.ToString() ?? + AgentSwap?.ToString() ?? + Mcp?.ToString() ?? + Component?.ToString() ?? + BridgeTransfer?.ToString() ?? + CancelTransfer?.ToString() ; /// @@ -618,28 +618,28 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && IsValue12 && !IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && IsValue13 && !IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && IsValue14 && !IsValue15 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 && !IsValue6 && !IsValue7 && !IsValue8 && !IsValue9 && !IsValue10 && !IsValue11 && !IsValue12 && !IsValue13 && !IsValue14 && IsValue15; + return IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && IsMcp && !IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && IsComponent && !IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && IsBridgeTransfer && !IsCancelTransfer || !IsConversationNode && !IsSubagent && !IsEnd && !IsFunction && !IsCode && !IsTransferCall && !IsPressDigit && !IsBranch && !IsSms && !IsExtractDynamicVariables && !IsAgentSwap && !IsMcp && !IsComponent && !IsBridgeTransfer && IsCancelTransfer; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - global::System.Func? value5 = null, - global::System.Func? value6 = null, - global::System.Func? value7 = null, - global::System.Func? value8 = null, - global::System.Func? value9 = null, - global::System.Func? value10 = null, - global::System.Func? value11 = null, - global::System.Func? value12 = null, - global::System.Func? value13 = null, - global::System.Func? value14 = null, - global::System.Func? value15 = null, + global::System.Func? conversationNode = null, + global::System.Func? subagent = null, + global::System.Func? end = null, + global::System.Func? function = null, + global::System.Func? code = null, + global::System.Func? transferCall = null, + global::System.Func? pressDigit = null, + global::System.Func? branch = null, + global::System.Func? sms = null, + global::System.Func? extractDynamicVariables = null, + global::System.Func? agentSwap = null, + global::System.Func? mcp = null, + global::System.Func? component = null, + global::System.Func? bridgeTransfer = null, + global::System.Func? cancelTransfer = null, bool validate = true) { if (validate) @@ -647,65 +647,65 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsConversationNode && conversationNode != null) { - return value1(Value1!); + return conversationNode(ConversationNode!); } - else if (IsValue2 && value2 != null) + else if (IsSubagent && subagent != null) { - return value2(Value2!); + return subagent(Subagent!); } - else if (IsValue3 && value3 != null) + else if (IsEnd && end != null) { - return value3(Value3!); + return end(End!); } - else if (IsValue4 && value4 != null) + else if (IsFunction && function != null) { - return value4(Value4!); + return function(Function!); } - else if (IsValue5 && value5 != null) + else if (IsCode && code != null) { - return value5(Value5!); + return code(Code!); } - else if (IsValue6 && value6 != null) + else if (IsTransferCall && transferCall != null) { - return value6(Value6!); + return transferCall(TransferCall!); } - else if (IsValue7 && value7 != null) + else if (IsPressDigit && pressDigit != null) { - return value7(Value7!); + return pressDigit(PressDigit!); } - else if (IsValue8 && value8 != null) + else if (IsBranch && branch != null) { - return value8(Value8!); + return branch(Branch!); } - else if (IsValue9 && value9 != null) + else if (IsSms && sms != null) { - return value9(Value9!); + return sms(Sms!); } - else if (IsValue10 && value10 != null) + else if (IsExtractDynamicVariables && extractDynamicVariables != null) { - return value10(Value10!); + return extractDynamicVariables(ExtractDynamicVariables!); } - else if (IsValue11 && value11 != null) + else if (IsAgentSwap && agentSwap != null) { - return value11(Value11!); + return agentSwap(AgentSwap!); } - else if (IsValue12 && value12 != null) + else if (IsMcp && mcp != null) { - return value12(Value12!); + return mcp(Mcp!); } - else if (IsValue13 && value13 != null) + else if (IsComponent && component != null) { - return value13(Value13!); + return component(Component!); } - else if (IsValue14 && value14 != null) + else if (IsBridgeTransfer && bridgeTransfer != null) { - return value14(Value14!); + return bridgeTransfer(BridgeTransfer!); } - else if (IsValue15 && value15 != null) + else if (IsCancelTransfer && cancelTransfer != null) { - return value15(Value15!); + return cancelTransfer(CancelTransfer!); } return default(TResult); @@ -715,21 +715,21 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - global::System.Action? value5 = null, - global::System.Action? value6 = null, - global::System.Action? value7 = null, - global::System.Action? value8 = null, - global::System.Action? value9 = null, - global::System.Action? value10 = null, - global::System.Action? value11 = null, - global::System.Action? value12 = null, - global::System.Action? value13 = null, - global::System.Action? value14 = null, - global::System.Action? value15 = null, + global::System.Action? conversationNode = null, + global::System.Action? subagent = null, + global::System.Action? end = null, + global::System.Action? function = null, + global::System.Action? code = null, + global::System.Action? transferCall = null, + global::System.Action? pressDigit = null, + global::System.Action? branch = null, + global::System.Action? sms = null, + global::System.Action? extractDynamicVariables = null, + global::System.Action? agentSwap = null, + global::System.Action? mcp = null, + global::System.Action? component = null, + global::System.Action? bridgeTransfer = null, + global::System.Action? cancelTransfer = null, bool validate = true) { if (validate) @@ -737,65 +737,65 @@ public void Match( Validate(); } - if (IsValue1) + if (IsConversationNode) { - value1?.Invoke(Value1!); + conversationNode?.Invoke(ConversationNode!); } - else if (IsValue2) + else if (IsSubagent) { - value2?.Invoke(Value2!); + subagent?.Invoke(Subagent!); } - else if (IsValue3) + else if (IsEnd) { - value3?.Invoke(Value3!); + end?.Invoke(End!); } - else if (IsValue4) + else if (IsFunction) { - value4?.Invoke(Value4!); + function?.Invoke(Function!); } - else if (IsValue5) + else if (IsCode) { - value5?.Invoke(Value5!); + code?.Invoke(Code!); } - else if (IsValue6) + else if (IsTransferCall) { - value6?.Invoke(Value6!); + transferCall?.Invoke(TransferCall!); } - else if (IsValue7) + else if (IsPressDigit) { - value7?.Invoke(Value7!); + pressDigit?.Invoke(PressDigit!); } - else if (IsValue8) + else if (IsBranch) { - value8?.Invoke(Value8!); + branch?.Invoke(Branch!); } - else if (IsValue9) + else if (IsSms) { - value9?.Invoke(Value9!); + sms?.Invoke(Sms!); } - else if (IsValue10) + else if (IsExtractDynamicVariables) { - value10?.Invoke(Value10!); + extractDynamicVariables?.Invoke(ExtractDynamicVariables!); } - else if (IsValue11) + else if (IsAgentSwap) { - value11?.Invoke(Value11!); + agentSwap?.Invoke(AgentSwap!); } - else if (IsValue12) + else if (IsMcp) { - value12?.Invoke(Value12!); + mcp?.Invoke(Mcp!); } - else if (IsValue13) + else if (IsComponent) { - value13?.Invoke(Value13!); + component?.Invoke(Component!); } - else if (IsValue14) + else if (IsBridgeTransfer) { - value14?.Invoke(Value14!); + bridgeTransfer?.Invoke(BridgeTransfer!); } - else if (IsValue15) + else if (IsCancelTransfer) { - value15?.Invoke(Value15!); + cancelTransfer?.Invoke(CancelTransfer!); } } @@ -806,35 +806,35 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ConversationNode, typeof(global::RetellAI.ConversationNode), - Value2, + Subagent, typeof(global::RetellAI.SubagentNode), - Value3, + End, typeof(global::RetellAI.EndNode), - Value4, + Function, typeof(global::RetellAI.FunctionNode), - Value5, + Code, typeof(global::RetellAI.CodeNode), - Value6, + TransferCall, typeof(global::RetellAI.TransferCallNode), - Value7, + PressDigit, typeof(global::RetellAI.PressDigitNode), - Value8, + Branch, typeof(global::RetellAI.BranchNode), - Value9, + Sms, typeof(global::RetellAI.SmsNode), - Value10, + ExtractDynamicVariables, typeof(global::RetellAI.ExtractDynamicVariablesNode), - Value11, + AgentSwap, typeof(global::RetellAI.AgentSwapNode), - Value12, + Mcp, typeof(global::RetellAI.MCPNode), - Value13, + Component, typeof(global::RetellAI.ComponentNode), - Value14, + BridgeTransfer, typeof(global::RetellAI.BridgeTransferNode), - Value15, + CancelTransfer, typeof(global::RetellAI.CancelTransferNode), }; const int offset = unchecked((int)2166136261); @@ -852,21 +852,21 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ConversationFlowNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value6, other.Value6) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value7, other.Value7) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value8, other.Value8) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value9, other.Value9) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value10, other.Value10) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value11, other.Value11) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value12, other.Value12) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value13, other.Value13) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value14, other.Value14) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value15, other.Value15) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationNode, other.ConversationNode) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Subagent, other.Subagent) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(End, other.End) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Code, other.Code) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(TransferCall, other.TransferCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(PressDigit, other.PressDigit) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Branch, other.Branch) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Sms, other.Sms) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ExtractDynamicVariables, other.ExtractDynamicVariables) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentSwap, other.AgentSwap) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Mcp, other.Mcp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Component, other.Component) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(BridgeTransfer, other.BridgeTransfer) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CancelTransfer, other.CancelTransfer) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowResponse.g.cs index b001994..73b3e78 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationFlowResponse.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ConversationFlow? Value1 { get; init; } + public global::RetellAI.ConversationFlow? ConversationFlow { get; init; } #else - public global::RetellAI.ConversationFlow? Value1 { get; } + public global::RetellAI.ConversationFlow? ConversationFlow { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationFlow))] #endif - public bool IsValue1 => Value1 != null; + public bool IsConversationFlow => ConversationFlow != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ConversationFlowResponseVariant2? Value2 { get; init; } + public global::RetellAI.ConversationFlowResponseVariant2? ConversationFlowResponseVariant2 { get; init; } #else - public global::RetellAI.ConversationFlowResponseVariant2? Value2 { get; } + public global::RetellAI.ConversationFlowResponseVariant2? ConversationFlowResponseVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationFlowResponseVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsConversationFlowResponseVariant2 => ConversationFlowResponseVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.ConversationFlow?(ConversationFlowResponse @this) => @this.Value1; + public static implicit operator global::RetellAI.ConversationFlow?(ConversationFlowResponse @this) => @this.ConversationFlow; /// /// /// public ConversationFlowResponse(global::RetellAI.ConversationFlow? value) { - Value1 = value; + ConversationFlow = value; } /// @@ -68,42 +68,42 @@ public ConversationFlowResponse(global::RetellAI.ConversationFlow? value) /// /// /// - public static implicit operator global::RetellAI.ConversationFlowResponseVariant2?(ConversationFlowResponse @this) => @this.Value2; + public static implicit operator global::RetellAI.ConversationFlowResponseVariant2?(ConversationFlowResponse @this) => @this.ConversationFlowResponseVariant2; /// /// /// public ConversationFlowResponse(global::RetellAI.ConversationFlowResponseVariant2? value) { - Value2 = value; + ConversationFlowResponseVariant2 = value; } /// /// /// public ConversationFlowResponse( - global::RetellAI.ConversationFlow? value1, - global::RetellAI.ConversationFlowResponseVariant2? value2 + global::RetellAI.ConversationFlow? conversationFlow, + global::RetellAI.ConversationFlowResponseVariant2? conversationFlowResponseVariant2 ) { - Value1 = value1; - Value2 = value2; + ConversationFlow = conversationFlow; + ConversationFlowResponseVariant2 = conversationFlowResponseVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + ConversationFlowResponseVariant2 as object ?? + ConversationFlow as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + ConversationFlow?.ToString() ?? + ConversationFlowResponseVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsConversationFlow && IsConversationFlowResponseVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? conversationFlow = null, + global::System.Func? conversationFlowResponseVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsConversationFlow && conversationFlow != null) { - return value1(Value1!); + return conversationFlow(ConversationFlow!); } - else if (IsValue2 && value2 != null) + else if (IsConversationFlowResponseVariant2 && conversationFlowResponseVariant2 != null) { - return value2(Value2!); + return conversationFlowResponseVariant2(ConversationFlowResponseVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? conversationFlow = null, + global::System.Action? conversationFlowResponseVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsConversationFlow) { - value1?.Invoke(Value1!); + conversationFlow?.Invoke(ConversationFlow!); } - else if (IsValue2) + else if (IsConversationFlowResponseVariant2) { - value2?.Invoke(Value2!); + conversationFlowResponseVariant2?.Invoke(ConversationFlowResponseVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ConversationFlow, typeof(global::RetellAI.ConversationFlow), - Value2, + ConversationFlowResponseVariant2, typeof(global::RetellAI.ConversationFlowResponseVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ConversationFlowResponse other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationFlow, other.ConversationFlow) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationFlowResponseVariant2, other.ConversationFlowResponseVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationNode.g.cs index 1008e79..9ee9a5e 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ConversationNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ConversationNode.g.cs @@ -13,52 +13,52 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AgentOverrideConfig? Value2 { get; init; } + public global::RetellAI.AgentOverrideConfig? AgentOverrideConfig { get; init; } #else - public global::RetellAI.AgentOverrideConfig? Value2 { get; } + public global::RetellAI.AgentOverrideConfig? AgentOverrideConfig { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentOverrideConfig))] #endif - public bool IsValue2 => Value2 != null; + public bool IsAgentOverrideConfig => AgentOverrideConfig != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ConversationNodeVariant3? Value3 { get; init; } + public global::RetellAI.ConversationNodeVariant3? ConversationNodeVariant3 { get; init; } #else - public global::RetellAI.ConversationNodeVariant3? Value3 { get; } + public global::RetellAI.ConversationNodeVariant3? ConversationNodeVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationNodeVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsConversationNodeVariant3 => ConversationNodeVariant3 != null; /// /// /// @@ -67,14 +67,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(ConversationNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(ConversationNode @this) => @this.Base; /// /// /// public ConversationNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -85,14 +85,14 @@ public ConversationNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.AgentOverrideConfig?(ConversationNode @this) => @this.Value2; + public static implicit operator global::RetellAI.AgentOverrideConfig?(ConversationNode @this) => @this.AgentOverrideConfig; /// /// /// public ConversationNode(global::RetellAI.AgentOverrideConfig? value) { - Value2 = value; + AgentOverrideConfig = value; } /// @@ -103,46 +103,46 @@ public ConversationNode(global::RetellAI.AgentOverrideConfig? value) /// /// /// - public static implicit operator global::RetellAI.ConversationNodeVariant3?(ConversationNode @this) => @this.Value3; + public static implicit operator global::RetellAI.ConversationNodeVariant3?(ConversationNode @this) => @this.ConversationNodeVariant3; /// /// /// public ConversationNode(global::RetellAI.ConversationNodeVariant3? value) { - Value3 = value; + ConversationNodeVariant3 = value; } /// /// /// public ConversationNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.AgentOverrideConfig? value2, - global::RetellAI.ConversationNodeVariant3? value3 + global::RetellAI.NodeBase? @base, + global::RetellAI.AgentOverrideConfig? agentOverrideConfig, + global::RetellAI.ConversationNodeVariant3? conversationNodeVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + Base = @base; + AgentOverrideConfig = agentOverrideConfig; + ConversationNodeVariant3 = conversationNodeVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + ConversationNodeVariant3 as object ?? + AgentOverrideConfig as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + Base?.ToString() ?? + AgentOverrideConfig?.ToString() ?? + ConversationNodeVariant3?.ToString() ; /// @@ -150,16 +150,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2 && IsValue3; + return IsBase && IsAgentOverrideConfig && IsConversationNodeVariant3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, + global::System.Func? @base = null, + global::System.Func? agentOverrideConfig = null, + global::System.Func? conversationNodeVariant3 = null, bool validate = true) { if (validate) @@ -167,17 +167,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsAgentOverrideConfig && agentOverrideConfig != null) { - return value2(Value2!); + return agentOverrideConfig(AgentOverrideConfig!); } - else if (IsValue3 && value3 != null) + else if (IsConversationNodeVariant3 && conversationNodeVariant3 != null) { - return value3(Value3!); + return conversationNodeVariant3(ConversationNodeVariant3!); } return default(TResult); @@ -187,9 +187,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, + global::System.Action? @base = null, + global::System.Action? agentOverrideConfig = null, + global::System.Action? conversationNodeVariant3 = null, bool validate = true) { if (validate) @@ -197,17 +197,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsAgentOverrideConfig) { - value2?.Invoke(Value2!); + agentOverrideConfig?.Invoke(AgentOverrideConfig!); } - else if (IsValue3) + else if (IsConversationNodeVariant3) { - value3?.Invoke(Value3!); + conversationNodeVariant3?.Invoke(ConversationNodeVariant3!); } } @@ -218,11 +218,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + AgentOverrideConfig, typeof(global::RetellAI.AgentOverrideConfig), - Value3, + ConversationNodeVariant3, typeof(global::RetellAI.ConversationNodeVariant3), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ConversationNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentOverrideConfig, other.AgentOverrideConfig) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationNodeVariant3, other.ConversationNodeVariant3) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateConversationFlowComponentRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateConversationFlowComponentRequest.g.cs index b6b0451..7ecb724 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CreateConversationFlowComponentRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateConversationFlowComponentRequest.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ConversationFlowComponent? Value1 { get; init; } + public global::RetellAI.ConversationFlowComponent? ConversationFlowComponent { get; init; } #else - public global::RetellAI.ConversationFlowComponent? Value1 { get; } + public global::RetellAI.ConversationFlowComponent? ConversationFlowComponent { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationFlowComponent))] #endif - public bool IsValue1 => Value1 != null; + public bool IsConversationFlowComponent => ConversationFlowComponent != null; /// /// /// #if NET6_0_OR_GREATER - public object? Value2 { get; init; } + public object? CreateConversationFlowComponentRequestVariant2 { get; init; } #else - public object? Value2 { get; } + public object? CreateConversationFlowComponentRequestVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateConversationFlowComponentRequestVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCreateConversationFlowComponentRequestVariant2 => CreateConversationFlowComponentRequestVariant2 != null; /// /// /// @@ -50,42 +50,42 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.ConversationFlowComponent?(CreateConversationFlowComponentRequest @this) => @this.Value1; + public static implicit operator global::RetellAI.ConversationFlowComponent?(CreateConversationFlowComponentRequest @this) => @this.ConversationFlowComponent; /// /// /// public CreateConversationFlowComponentRequest(global::RetellAI.ConversationFlowComponent? value) { - Value1 = value; + ConversationFlowComponent = value; } /// /// /// public CreateConversationFlowComponentRequest( - global::RetellAI.ConversationFlowComponent? value1, - object? value2 + global::RetellAI.ConversationFlowComponent? conversationFlowComponent, + object? createConversationFlowComponentRequestVariant2 ) { - Value1 = value1; - Value2 = value2; + ConversationFlowComponent = conversationFlowComponent; + CreateConversationFlowComponentRequestVariant2 = createConversationFlowComponentRequestVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + CreateConversationFlowComponentRequestVariant2 as object ?? + ConversationFlowComponent as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + ConversationFlowComponent?.ToString() ?? + CreateConversationFlowComponentRequestVariant2?.ToString() ; /// @@ -93,15 +93,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsConversationFlowComponent && IsCreateConversationFlowComponentRequestVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? conversationFlowComponent = null, + global::System.Func? createConversationFlowComponentRequestVariant2 = null, bool validate = true) { if (validate) @@ -109,13 +109,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsConversationFlowComponent && conversationFlowComponent != null) { - return value1(Value1!); + return conversationFlowComponent(ConversationFlowComponent!); } - else if (IsValue2 && value2 != null) + else if (IsCreateConversationFlowComponentRequestVariant2 && createConversationFlowComponentRequestVariant2 != null) { - return value2(Value2!); + return createConversationFlowComponentRequestVariant2(CreateConversationFlowComponentRequestVariant2!); } return default(TResult); @@ -125,8 +125,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? conversationFlowComponent = null, + global::System.Action? createConversationFlowComponentRequestVariant2 = null, bool validate = true) { if (validate) @@ -134,13 +134,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsConversationFlowComponent) { - value1?.Invoke(Value1!); + conversationFlowComponent?.Invoke(ConversationFlowComponent!); } - else if (IsValue2) + else if (IsCreateConversationFlowComponentRequestVariant2) { - value2?.Invoke(Value2!); + createConversationFlowComponentRequestVariant2?.Invoke(CreateConversationFlowComponentRequestVariant2!); } } @@ -151,9 +151,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ConversationFlowComponent, typeof(global::RetellAI.ConversationFlowComponent), - Value2, + CreateConversationFlowComponentRequestVariant2, typeof(object), }; const int offset = unchecked((int)2166136261); @@ -171,8 +171,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CreateConversationFlowComponentRequest other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationFlowComponent, other.ConversationFlowComponent) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateConversationFlowComponentRequestVariant2, other.CreateConversationFlowComponentRequestVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CreateConversationFlowRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CreateConversationFlowRequest.g.cs index 99c6727..3472188 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CreateConversationFlowRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CreateConversationFlowRequest.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ConversationFlow? Value1 { get; init; } + public global::RetellAI.ConversationFlow? ConversationFlow { get; init; } #else - public global::RetellAI.ConversationFlow? Value1 { get; } + public global::RetellAI.ConversationFlow? ConversationFlow { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ConversationFlow))] #endif - public bool IsValue1 => Value1 != null; + public bool IsConversationFlow => ConversationFlow != null; /// /// /// #if NET6_0_OR_GREATER - public object? Value2 { get; init; } + public object? CreateConversationFlowRequestVariant2 { get; init; } #else - public object? Value2 { get; } + public object? CreateConversationFlowRequestVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CreateConversationFlowRequestVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCreateConversationFlowRequestVariant2 => CreateConversationFlowRequestVariant2 != null; /// /// /// @@ -50,42 +50,42 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.ConversationFlow?(CreateConversationFlowRequest @this) => @this.Value1; + public static implicit operator global::RetellAI.ConversationFlow?(CreateConversationFlowRequest @this) => @this.ConversationFlow; /// /// /// public CreateConversationFlowRequest(global::RetellAI.ConversationFlow? value) { - Value1 = value; + ConversationFlow = value; } /// /// /// public CreateConversationFlowRequest( - global::RetellAI.ConversationFlow? value1, - object? value2 + global::RetellAI.ConversationFlow? conversationFlow, + object? createConversationFlowRequestVariant2 ) { - Value1 = value1; - Value2 = value2; + ConversationFlow = conversationFlow; + CreateConversationFlowRequestVariant2 = createConversationFlowRequestVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + CreateConversationFlowRequestVariant2 as object ?? + ConversationFlow as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + ConversationFlow?.ToString() ?? + CreateConversationFlowRequestVariant2?.ToString() ; /// @@ -93,15 +93,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsConversationFlow && IsCreateConversationFlowRequestVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? conversationFlow = null, + global::System.Func? createConversationFlowRequestVariant2 = null, bool validate = true) { if (validate) @@ -109,13 +109,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsConversationFlow && conversationFlow != null) { - return value1(Value1!); + return conversationFlow(ConversationFlow!); } - else if (IsValue2 && value2 != null) + else if (IsCreateConversationFlowRequestVariant2 && createConversationFlowRequestVariant2 != null) { - return value2(Value2!); + return createConversationFlowRequestVariant2(CreateConversationFlowRequestVariant2!); } return default(TResult); @@ -125,8 +125,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? conversationFlow = null, + global::System.Action? createConversationFlowRequestVariant2 = null, bool validate = true) { if (validate) @@ -134,13 +134,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsConversationFlow) { - value1?.Invoke(Value1!); + conversationFlow?.Invoke(ConversationFlow!); } - else if (IsValue2) + else if (IsCreateConversationFlowRequestVariant2) { - value2?.Invoke(Value2!); + createConversationFlowRequestVariant2?.Invoke(CreateConversationFlowRequestVariant2!); } } @@ -151,9 +151,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ConversationFlow, typeof(global::RetellAI.ConversationFlow), - Value2, + CreateConversationFlowRequestVariant2, typeof(object), }; const int offset = unchecked((int)2166136261); @@ -171,8 +171,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CreateConversationFlowRequest other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ConversationFlow, other.ConversationFlow) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CreateConversationFlowRequestVariant2, other.CreateConversationFlowRequestVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.CustomFieldFilter.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.CustomFieldFilter.g.cs index d3cb1cb..b83cd7d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.CustomFieldFilter.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.CustomFieldFilter.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ValueFilter? Value1 { get; init; } + public global::RetellAI.ValueFilter? Value { get; init; } #else - public global::RetellAI.ValueFilter? Value1 { get; } + public global::RetellAI.ValueFilter? Value { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value))] #endif - public bool IsValue1 => Value1 != null; + public bool IsValue => Value != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.CustomFieldFilterVariant2? Value2 { get; init; } + public global::RetellAI.CustomFieldFilterVariant2? CustomFieldFilterVariant2 { get; init; } #else - public global::RetellAI.CustomFieldFilterVariant2? Value2 { get; } + public global::RetellAI.CustomFieldFilterVariant2? CustomFieldFilterVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CustomFieldFilterVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsCustomFieldFilterVariant2 => CustomFieldFilterVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.ValueFilter?(CustomFieldFilter @this) => @this.Value1; + public static implicit operator global::RetellAI.ValueFilter?(CustomFieldFilter @this) => @this.Value; /// /// /// public CustomFieldFilter(global::RetellAI.ValueFilter? value) { - Value1 = value; + Value = value; } /// @@ -68,42 +68,42 @@ public CustomFieldFilter(global::RetellAI.ValueFilter? value) /// /// /// - public static implicit operator global::RetellAI.CustomFieldFilterVariant2?(CustomFieldFilter @this) => @this.Value2; + public static implicit operator global::RetellAI.CustomFieldFilterVariant2?(CustomFieldFilter @this) => @this.CustomFieldFilterVariant2; /// /// /// public CustomFieldFilter(global::RetellAI.CustomFieldFilterVariant2? value) { - Value2 = value; + CustomFieldFilterVariant2 = value; } /// /// /// public CustomFieldFilter( - global::RetellAI.ValueFilter? value1, - global::RetellAI.CustomFieldFilterVariant2? value2 + global::RetellAI.ValueFilter? value, + global::RetellAI.CustomFieldFilterVariant2? customFieldFilterVariant2 ) { - Value1 = value1; - Value2 = value2; + Value = value; + CustomFieldFilterVariant2 = customFieldFilterVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + CustomFieldFilterVariant2 as object ?? + Value as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Value?.ToString() ?? + CustomFieldFilterVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsValue && IsCustomFieldFilterVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? value = null, + global::System.Func? customFieldFilterVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsValue && value != null) { - return value1(Value1!); + return value(Value!); } - else if (IsValue2 && value2 != null) + else if (IsCustomFieldFilterVariant2 && customFieldFilterVariant2 != null) { - return value2(Value2!); + return customFieldFilterVariant2(CustomFieldFilterVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? value = null, + global::System.Action? customFieldFilterVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsValue) { - value1?.Invoke(Value1!); + value?.Invoke(Value!); } - else if (IsValue2) + else if (IsCustomFieldFilterVariant2) { - value2?.Invoke(Value2!); + customFieldFilterVariant2?.Invoke(CustomFieldFilterVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Value, typeof(global::RetellAI.ValueFilter), - Value2, + CustomFieldFilterVariant2, typeof(global::RetellAI.CustomFieldFilterVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(CustomFieldFilter other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomFieldFilterVariant2, other.CustomFieldFilterVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ElseEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ElseEdge.g.cs index 3fc9f7e..25ea1af 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ElseEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ElseEdge.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeEdge? Value1 { get; init; } + public global::RetellAI.NodeEdge? Node { get; init; } #else - public global::RetellAI.NodeEdge? Value1 { get; } + public global::RetellAI.NodeEdge? Node { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Node))] #endif - public bool IsValue1 => Value1 != null; + public bool IsNode => Node != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ElseEdgeVariant2? Value2 { get; init; } + public global::RetellAI.ElseEdgeVariant2? ElseEdgeVariant2 { get; init; } #else - public global::RetellAI.ElseEdgeVariant2? Value2 { get; } + public global::RetellAI.ElseEdgeVariant2? ElseEdgeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ElseEdgeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsElseEdgeVariant2 => ElseEdgeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeEdge?(ElseEdge @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeEdge?(ElseEdge @this) => @this.Node; /// /// /// public ElseEdge(global::RetellAI.NodeEdge? value) { - Value1 = value; + Node = value; } /// @@ -68,42 +68,42 @@ public ElseEdge(global::RetellAI.NodeEdge? value) /// /// /// - public static implicit operator global::RetellAI.ElseEdgeVariant2?(ElseEdge @this) => @this.Value2; + public static implicit operator global::RetellAI.ElseEdgeVariant2?(ElseEdge @this) => @this.ElseEdgeVariant2; /// /// /// public ElseEdge(global::RetellAI.ElseEdgeVariant2? value) { - Value2 = value; + ElseEdgeVariant2 = value; } /// /// /// public ElseEdge( - global::RetellAI.NodeEdge? value1, - global::RetellAI.ElseEdgeVariant2? value2 + global::RetellAI.NodeEdge? node, + global::RetellAI.ElseEdgeVariant2? elseEdgeVariant2 ) { - Value1 = value1; - Value2 = value2; + Node = node; + ElseEdgeVariant2 = elseEdgeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + ElseEdgeVariant2 as object ?? + Node as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Node?.ToString() ?? + ElseEdgeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsNode && IsElseEdgeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? node = null, + global::System.Func? elseEdgeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsNode && node != null) { - return value1(Value1!); + return node(Node!); } - else if (IsValue2 && value2 != null) + else if (IsElseEdgeVariant2 && elseEdgeVariant2 != null) { - return value2(Value2!); + return elseEdgeVariant2(ElseEdgeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? node = null, + global::System.Action? elseEdgeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsNode) { - value1?.Invoke(Value1!); + node?.Invoke(Node!); } - else if (IsValue2) + else if (IsElseEdgeVariant2) { - value2?.Invoke(Value2!); + elseEdgeVariant2?.Invoke(ElseEdgeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Node, typeof(global::RetellAI.NodeEdge), - Value2, + ElseEdgeVariant2, typeof(global::RetellAI.ElseEdgeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ElseEdge other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Node, other.Node) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ElseEdgeVariant2, other.ElseEdgeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.EndNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.EndNode.g.cs index 00f50b6..8c95a6e 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.EndNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.EndNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.EndNodeVariant2? Value2 { get; init; } + public global::RetellAI.EndNodeVariant2? EndNodeVariant2 { get; init; } #else - public global::RetellAI.EndNodeVariant2? Value2 { get; } + public global::RetellAI.EndNodeVariant2? EndNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EndNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsEndNodeVariant2 => EndNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(EndNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(EndNode @this) => @this.Base; /// /// /// public EndNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public EndNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.EndNodeVariant2?(EndNode @this) => @this.Value2; + public static implicit operator global::RetellAI.EndNodeVariant2?(EndNode @this) => @this.EndNodeVariant2; /// /// /// public EndNode(global::RetellAI.EndNodeVariant2? value) { - Value2 = value; + EndNodeVariant2 = value; } /// /// /// public EndNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.EndNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.EndNodeVariant2? endNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + EndNodeVariant2 = endNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + EndNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + EndNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsEndNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? endNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsEndNodeVariant2 && endNodeVariant2 != null) { - return value2(Value2!); + return endNodeVariant2(EndNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? endNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsEndNodeVariant2) { - value2?.Invoke(Value2!); + endNodeVariant2?.Invoke(EndNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + EndNodeVariant2, typeof(global::RetellAI.EndNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(EndNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EndNodeVariant2, other.EndNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ExtractDynamicVariablesNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ExtractDynamicVariablesNode.g.cs index 2766ff1..43d45b5 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ExtractDynamicVariablesNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ExtractDynamicVariablesNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ExtractDynamicVariablesNodeVariant2? Value2 { get; init; } + public global::RetellAI.ExtractDynamicVariablesNodeVariant2? ExtractDynamicVariablesNodeVariant2 { get; init; } #else - public global::RetellAI.ExtractDynamicVariablesNodeVariant2? Value2 { get; } + public global::RetellAI.ExtractDynamicVariablesNodeVariant2? ExtractDynamicVariablesNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ExtractDynamicVariablesNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsExtractDynamicVariablesNodeVariant2 => ExtractDynamicVariablesNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(ExtractDynamicVariablesNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(ExtractDynamicVariablesNode @this) => @this.Base; /// /// /// public ExtractDynamicVariablesNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public ExtractDynamicVariablesNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.ExtractDynamicVariablesNodeVariant2?(ExtractDynamicVariablesNode @this) => @this.Value2; + public static implicit operator global::RetellAI.ExtractDynamicVariablesNodeVariant2?(ExtractDynamicVariablesNode @this) => @this.ExtractDynamicVariablesNodeVariant2; /// /// /// public ExtractDynamicVariablesNode(global::RetellAI.ExtractDynamicVariablesNodeVariant2? value) { - Value2 = value; + ExtractDynamicVariablesNodeVariant2 = value; } /// /// /// public ExtractDynamicVariablesNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.ExtractDynamicVariablesNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.ExtractDynamicVariablesNodeVariant2? extractDynamicVariablesNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + ExtractDynamicVariablesNodeVariant2 = extractDynamicVariablesNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + ExtractDynamicVariablesNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + ExtractDynamicVariablesNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsExtractDynamicVariablesNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? extractDynamicVariablesNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsExtractDynamicVariablesNodeVariant2 && extractDynamicVariablesNodeVariant2 != null) { - return value2(Value2!); + return extractDynamicVariablesNodeVariant2(ExtractDynamicVariablesNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? extractDynamicVariablesNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsExtractDynamicVariablesNodeVariant2) { - value2?.Invoke(Value2!); + extractDynamicVariablesNodeVariant2?.Invoke(ExtractDynamicVariablesNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + ExtractDynamicVariablesNodeVariant2, typeof(global::RetellAI.ExtractDynamicVariablesNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ExtractDynamicVariablesNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ExtractDynamicVariablesNodeVariant2, other.ExtractDynamicVariablesNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.FinetuneExampleUtterance.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.FinetuneExampleUtterance.g.cs index 520ccda..e4983f5 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.FinetuneExampleUtterance.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.FinetuneExampleUtterance.g.cs @@ -13,52 +13,52 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.FinetuneExampleUtteranceVariant1? Value1 { get; init; } + public global::RetellAI.FinetuneExampleUtteranceVariant1? FinetuneExampleUtteranceVariant1 { get; init; } #else - public global::RetellAI.FinetuneExampleUtteranceVariant1? Value1 { get; } + public global::RetellAI.FinetuneExampleUtteranceVariant1? FinetuneExampleUtteranceVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FinetuneExampleUtteranceVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsFinetuneExampleUtteranceVariant1 => FinetuneExampleUtteranceVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.FinetuneExampleUtteranceVariant2? Value2 { get; init; } + public global::RetellAI.FinetuneExampleUtteranceVariant2? FinetuneExampleUtteranceVariant2 { get; init; } #else - public global::RetellAI.FinetuneExampleUtteranceVariant2? Value2 { get; } + public global::RetellAI.FinetuneExampleUtteranceVariant2? FinetuneExampleUtteranceVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FinetuneExampleUtteranceVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsFinetuneExampleUtteranceVariant2 => FinetuneExampleUtteranceVariant2 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.FinetuneExampleUtteranceVariant3? Value3 { get; init; } + public global::RetellAI.FinetuneExampleUtteranceVariant3? FinetuneExampleUtteranceVariant3 { get; init; } #else - public global::RetellAI.FinetuneExampleUtteranceVariant3? Value3 { get; } + public global::RetellAI.FinetuneExampleUtteranceVariant3? FinetuneExampleUtteranceVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FinetuneExampleUtteranceVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsFinetuneExampleUtteranceVariant3 => FinetuneExampleUtteranceVariant3 != null; /// /// /// @@ -67,14 +67,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.FinetuneExampleUtteranceVariant1?(FinetuneExampleUtterance @this) => @this.Value1; + public static implicit operator global::RetellAI.FinetuneExampleUtteranceVariant1?(FinetuneExampleUtterance @this) => @this.FinetuneExampleUtteranceVariant1; /// /// /// public FinetuneExampleUtterance(global::RetellAI.FinetuneExampleUtteranceVariant1? value) { - Value1 = value; + FinetuneExampleUtteranceVariant1 = value; } /// @@ -85,14 +85,14 @@ public FinetuneExampleUtterance(global::RetellAI.FinetuneExampleUtteranceVariant /// /// /// - public static implicit operator global::RetellAI.FinetuneExampleUtteranceVariant2?(FinetuneExampleUtterance @this) => @this.Value2; + public static implicit operator global::RetellAI.FinetuneExampleUtteranceVariant2?(FinetuneExampleUtterance @this) => @this.FinetuneExampleUtteranceVariant2; /// /// /// public FinetuneExampleUtterance(global::RetellAI.FinetuneExampleUtteranceVariant2? value) { - Value2 = value; + FinetuneExampleUtteranceVariant2 = value; } /// @@ -103,46 +103,46 @@ public FinetuneExampleUtterance(global::RetellAI.FinetuneExampleUtteranceVariant /// /// /// - public static implicit operator global::RetellAI.FinetuneExampleUtteranceVariant3?(FinetuneExampleUtterance @this) => @this.Value3; + public static implicit operator global::RetellAI.FinetuneExampleUtteranceVariant3?(FinetuneExampleUtterance @this) => @this.FinetuneExampleUtteranceVariant3; /// /// /// public FinetuneExampleUtterance(global::RetellAI.FinetuneExampleUtteranceVariant3? value) { - Value3 = value; + FinetuneExampleUtteranceVariant3 = value; } /// /// /// public FinetuneExampleUtterance( - global::RetellAI.FinetuneExampleUtteranceVariant1? value1, - global::RetellAI.FinetuneExampleUtteranceVariant2? value2, - global::RetellAI.FinetuneExampleUtteranceVariant3? value3 + global::RetellAI.FinetuneExampleUtteranceVariant1? finetuneExampleUtteranceVariant1, + global::RetellAI.FinetuneExampleUtteranceVariant2? finetuneExampleUtteranceVariant2, + global::RetellAI.FinetuneExampleUtteranceVariant3? finetuneExampleUtteranceVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + FinetuneExampleUtteranceVariant1 = finetuneExampleUtteranceVariant1; + FinetuneExampleUtteranceVariant2 = finetuneExampleUtteranceVariant2; + FinetuneExampleUtteranceVariant3 = finetuneExampleUtteranceVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + FinetuneExampleUtteranceVariant3 as object ?? + FinetuneExampleUtteranceVariant2 as object ?? + FinetuneExampleUtteranceVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + FinetuneExampleUtteranceVariant1?.ToString() ?? + FinetuneExampleUtteranceVariant2?.ToString() ?? + FinetuneExampleUtteranceVariant3?.ToString() ; /// @@ -150,16 +150,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 || !IsValue1 && IsValue2 && !IsValue3 || !IsValue1 && !IsValue2 && IsValue3; + return IsFinetuneExampleUtteranceVariant1 && !IsFinetuneExampleUtteranceVariant2 && !IsFinetuneExampleUtteranceVariant3 || !IsFinetuneExampleUtteranceVariant1 && IsFinetuneExampleUtteranceVariant2 && !IsFinetuneExampleUtteranceVariant3 || !IsFinetuneExampleUtteranceVariant1 && !IsFinetuneExampleUtteranceVariant2 && IsFinetuneExampleUtteranceVariant3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, + global::System.Func? finetuneExampleUtteranceVariant1 = null, + global::System.Func? finetuneExampleUtteranceVariant2 = null, + global::System.Func? finetuneExampleUtteranceVariant3 = null, bool validate = true) { if (validate) @@ -167,17 +167,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsFinetuneExampleUtteranceVariant1 && finetuneExampleUtteranceVariant1 != null) { - return value1(Value1!); + return finetuneExampleUtteranceVariant1(FinetuneExampleUtteranceVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsFinetuneExampleUtteranceVariant2 && finetuneExampleUtteranceVariant2 != null) { - return value2(Value2!); + return finetuneExampleUtteranceVariant2(FinetuneExampleUtteranceVariant2!); } - else if (IsValue3 && value3 != null) + else if (IsFinetuneExampleUtteranceVariant3 && finetuneExampleUtteranceVariant3 != null) { - return value3(Value3!); + return finetuneExampleUtteranceVariant3(FinetuneExampleUtteranceVariant3!); } return default(TResult); @@ -187,9 +187,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, + global::System.Action? finetuneExampleUtteranceVariant1 = null, + global::System.Action? finetuneExampleUtteranceVariant2 = null, + global::System.Action? finetuneExampleUtteranceVariant3 = null, bool validate = true) { if (validate) @@ -197,17 +197,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsFinetuneExampleUtteranceVariant1) { - value1?.Invoke(Value1!); + finetuneExampleUtteranceVariant1?.Invoke(FinetuneExampleUtteranceVariant1!); } - else if (IsValue2) + else if (IsFinetuneExampleUtteranceVariant2) { - value2?.Invoke(Value2!); + finetuneExampleUtteranceVariant2?.Invoke(FinetuneExampleUtteranceVariant2!); } - else if (IsValue3) + else if (IsFinetuneExampleUtteranceVariant3) { - value3?.Invoke(Value3!); + finetuneExampleUtteranceVariant3?.Invoke(FinetuneExampleUtteranceVariant3!); } } @@ -218,11 +218,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + FinetuneExampleUtteranceVariant1, typeof(global::RetellAI.FinetuneExampleUtteranceVariant1), - Value2, + FinetuneExampleUtteranceVariant2, typeof(global::RetellAI.FinetuneExampleUtteranceVariant2), - Value3, + FinetuneExampleUtteranceVariant3, typeof(global::RetellAI.FinetuneExampleUtteranceVariant3), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(FinetuneExampleUtterance other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(FinetuneExampleUtteranceVariant1, other.FinetuneExampleUtteranceVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FinetuneExampleUtteranceVariant2, other.FinetuneExampleUtteranceVariant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FinetuneExampleUtteranceVariant3, other.FinetuneExampleUtteranceVariant3) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.FunctionNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.FunctionNode.g.cs index 928ef91..c76cee7 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.FunctionNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.FunctionNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.FunctionNodeVariant2? Value2 { get; init; } + public global::RetellAI.FunctionNodeVariant2? FunctionNodeVariant2 { get; init; } #else - public global::RetellAI.FunctionNodeVariant2? Value2 { get; } + public global::RetellAI.FunctionNodeVariant2? FunctionNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(FunctionNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsFunctionNodeVariant2 => FunctionNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(FunctionNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(FunctionNode @this) => @this.Base; /// /// /// public FunctionNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public FunctionNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.FunctionNodeVariant2?(FunctionNode @this) => @this.Value2; + public static implicit operator global::RetellAI.FunctionNodeVariant2?(FunctionNode @this) => @this.FunctionNodeVariant2; /// /// /// public FunctionNode(global::RetellAI.FunctionNodeVariant2? value) { - Value2 = value; + FunctionNodeVariant2 = value; } /// /// /// public FunctionNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.FunctionNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.FunctionNodeVariant2? functionNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + FunctionNodeVariant2 = functionNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + FunctionNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + FunctionNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsFunctionNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? functionNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsFunctionNodeVariant2 && functionNodeVariant2 != null) { - return value2(Value2!); + return functionNodeVariant2(FunctionNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? functionNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsFunctionNodeVariant2) { - value2?.Invoke(Value2!); + functionNodeVariant2?.Invoke(FunctionNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + FunctionNodeVariant2, typeof(global::RetellAI.FunctionNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(FunctionNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(FunctionNodeVariant2, other.FunctionNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.MCPNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.MCPNode.g.cs index 8d815b9..1a8b012 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.MCPNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.MCPNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.MCPNodeVariant2? Value2 { get; init; } + public global::RetellAI.MCPNodeVariant2? MCPNodeVariant2 { get; init; } #else - public global::RetellAI.MCPNodeVariant2? Value2 { get; } + public global::RetellAI.MCPNodeVariant2? MCPNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MCPNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsMCPNodeVariant2 => MCPNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(MCPNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(MCPNode @this) => @this.Base; /// /// /// public MCPNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public MCPNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.MCPNodeVariant2?(MCPNode @this) => @this.Value2; + public static implicit operator global::RetellAI.MCPNodeVariant2?(MCPNode @this) => @this.MCPNodeVariant2; /// /// /// public MCPNode(global::RetellAI.MCPNodeVariant2? value) { - Value2 = value; + MCPNodeVariant2 = value; } /// /// /// public MCPNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.MCPNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.MCPNodeVariant2? mCPNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + MCPNodeVariant2 = mCPNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + MCPNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + MCPNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsMCPNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? mCPNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsMCPNodeVariant2 && mCPNodeVariant2 != null) { - return value2(Value2!); + return mCPNodeVariant2(MCPNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? mCPNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsMCPNodeVariant2) { - value2?.Invoke(Value2!); + mCPNodeVariant2?.Invoke(MCPNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + MCPNodeVariant2, typeof(global::RetellAI.MCPNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(MCPNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPNodeVariant2, other.MCPNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.MessageOrToolCall.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.MessageOrToolCall.g.cs index b876da5..d77d0fc 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.MessageOrToolCall.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.MessageOrToolCall.g.cs @@ -13,86 +13,86 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.Message? Value1 { get; init; } + public global::RetellAI.Message? Message { get; init; } #else - public global::RetellAI.Message? Value1 { get; } + public global::RetellAI.Message? Message { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Message))] #endif - public bool IsValue1 => Value1 != null; + public bool IsMessage => Message != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ToolCallInvocationMessage? Value2 { get; init; } + public global::RetellAI.ToolCallInvocationMessage? Invocation { get; init; } #else - public global::RetellAI.ToolCallInvocationMessage? Value2 { get; } + public global::RetellAI.ToolCallInvocationMessage? Invocation { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Invocation))] #endif - public bool IsValue2 => Value2 != null; + public bool IsInvocation => Invocation != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ToolCallResultMessage? Value3 { get; init; } + public global::RetellAI.ToolCallResultMessage? Result { get; init; } #else - public global::RetellAI.ToolCallResultMessage? Value3 { get; } + public global::RetellAI.ToolCallResultMessage? Result { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Result))] #endif - public bool IsValue3 => Value3 != null; + public bool IsResult => Result != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeTransitionMessage? Value4 { get; init; } + public global::RetellAI.NodeTransitionMessage? NodeTransition { get; init; } #else - public global::RetellAI.NodeTransitionMessage? Value4 { get; } + public global::RetellAI.NodeTransitionMessage? NodeTransition { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NodeTransition))] #endif - public bool IsValue4 => Value4 != null; + public bool IsNodeTransition => NodeTransition != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.StateTransitionMessage? Value5 { get; init; } + public global::RetellAI.StateTransitionMessage? StateTransition { get; init; } #else - public global::RetellAI.StateTransitionMessage? Value5 { get; } + public global::RetellAI.StateTransitionMessage? StateTransition { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StateTransition))] #endif - public bool IsValue5 => Value5 != null; + public bool IsStateTransition => StateTransition != null; /// /// /// @@ -101,14 +101,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.Message?(MessageOrToolCall @this) => @this.Value1; + public static implicit operator global::RetellAI.Message?(MessageOrToolCall @this) => @this.Message; /// /// /// public MessageOrToolCall(global::RetellAI.Message? value) { - Value1 = value; + Message = value; } /// @@ -119,14 +119,14 @@ public MessageOrToolCall(global::RetellAI.Message? value) /// /// /// - public static implicit operator global::RetellAI.ToolCallInvocationMessage?(MessageOrToolCall @this) => @this.Value2; + public static implicit operator global::RetellAI.ToolCallInvocationMessage?(MessageOrToolCall @this) => @this.Invocation; /// /// /// public MessageOrToolCall(global::RetellAI.ToolCallInvocationMessage? value) { - Value2 = value; + Invocation = value; } /// @@ -137,14 +137,14 @@ public MessageOrToolCall(global::RetellAI.ToolCallInvocationMessage? value) /// /// /// - public static implicit operator global::RetellAI.ToolCallResultMessage?(MessageOrToolCall @this) => @this.Value3; + public static implicit operator global::RetellAI.ToolCallResultMessage?(MessageOrToolCall @this) => @this.Result; /// /// /// public MessageOrToolCall(global::RetellAI.ToolCallResultMessage? value) { - Value3 = value; + Result = value; } /// @@ -155,14 +155,14 @@ public MessageOrToolCall(global::RetellAI.ToolCallResultMessage? value) /// /// /// - public static implicit operator global::RetellAI.NodeTransitionMessage?(MessageOrToolCall @this) => @this.Value4; + public static implicit operator global::RetellAI.NodeTransitionMessage?(MessageOrToolCall @this) => @this.NodeTransition; /// /// /// public MessageOrToolCall(global::RetellAI.NodeTransitionMessage? value) { - Value4 = value; + NodeTransition = value; } /// @@ -173,54 +173,54 @@ public MessageOrToolCall(global::RetellAI.NodeTransitionMessage? value) /// /// /// - public static implicit operator global::RetellAI.StateTransitionMessage?(MessageOrToolCall @this) => @this.Value5; + public static implicit operator global::RetellAI.StateTransitionMessage?(MessageOrToolCall @this) => @this.StateTransition; /// /// /// public MessageOrToolCall(global::RetellAI.StateTransitionMessage? value) { - Value5 = value; + StateTransition = value; } /// /// /// public MessageOrToolCall( - global::RetellAI.Message? value1, - global::RetellAI.ToolCallInvocationMessage? value2, - global::RetellAI.ToolCallResultMessage? value3, - global::RetellAI.NodeTransitionMessage? value4, - global::RetellAI.StateTransitionMessage? value5 + global::RetellAI.Message? message, + global::RetellAI.ToolCallInvocationMessage? invocation, + global::RetellAI.ToolCallResultMessage? result, + global::RetellAI.NodeTransitionMessage? nodeTransition, + global::RetellAI.StateTransitionMessage? stateTransition ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - Value5 = value5; + Message = message; + Invocation = invocation; + Result = result; + NodeTransition = nodeTransition; + StateTransition = stateTransition; } /// /// /// public object? Object => - Value5 as object ?? - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object + StateTransition as object ?? + NodeTransition as object ?? + Result as object ?? + Invocation as object ?? + Message as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() ?? - Value4?.ToString() ?? - Value5?.ToString() + Message?.ToString() ?? + Invocation?.ToString() ?? + Result?.ToString() ?? + NodeTransition?.ToString() ?? + StateTransition?.ToString() ; /// @@ -228,18 +228,18 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5; + return IsMessage && !IsInvocation && !IsResult && !IsNodeTransition && !IsStateTransition || !IsMessage && IsInvocation && !IsResult && !IsNodeTransition && !IsStateTransition || !IsMessage && !IsInvocation && IsResult && !IsNodeTransition && !IsStateTransition || !IsMessage && !IsInvocation && !IsResult && IsNodeTransition && !IsStateTransition || !IsMessage && !IsInvocation && !IsResult && !IsNodeTransition && IsStateTransition; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - global::System.Func? value5 = null, + global::System.Func? message = null, + global::System.Func? invocation = null, + global::System.Func? result = null, + global::System.Func? nodeTransition = null, + global::System.Func? stateTransition = null, bool validate = true) { if (validate) @@ -247,25 +247,25 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsMessage && message != null) { - return value1(Value1!); + return message(Message!); } - else if (IsValue2 && value2 != null) + else if (IsInvocation && invocation != null) { - return value2(Value2!); + return invocation(Invocation!); } - else if (IsValue3 && value3 != null) + else if (IsResult && result != null) { - return value3(Value3!); + return result(Result!); } - else if (IsValue4 && value4 != null) + else if (IsNodeTransition && nodeTransition != null) { - return value4(Value4!); + return nodeTransition(NodeTransition!); } - else if (IsValue5 && value5 != null) + else if (IsStateTransition && stateTransition != null) { - return value5(Value5!); + return stateTransition(StateTransition!); } return default(TResult); @@ -275,11 +275,11 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - global::System.Action? value5 = null, + global::System.Action? message = null, + global::System.Action? invocation = null, + global::System.Action? result = null, + global::System.Action? nodeTransition = null, + global::System.Action? stateTransition = null, bool validate = true) { if (validate) @@ -287,25 +287,25 @@ public void Match( Validate(); } - if (IsValue1) + if (IsMessage) { - value1?.Invoke(Value1!); + message?.Invoke(Message!); } - else if (IsValue2) + else if (IsInvocation) { - value2?.Invoke(Value2!); + invocation?.Invoke(Invocation!); } - else if (IsValue3) + else if (IsResult) { - value3?.Invoke(Value3!); + result?.Invoke(Result!); } - else if (IsValue4) + else if (IsNodeTransition) { - value4?.Invoke(Value4!); + nodeTransition?.Invoke(NodeTransition!); } - else if (IsValue5) + else if (IsStateTransition) { - value5?.Invoke(Value5!); + stateTransition?.Invoke(StateTransition!); } } @@ -316,15 +316,15 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Message, typeof(global::RetellAI.Message), - Value2, + Invocation, typeof(global::RetellAI.ToolCallInvocationMessage), - Value3, + Result, typeof(global::RetellAI.ToolCallResultMessage), - Value4, + NodeTransition, typeof(global::RetellAI.NodeTransitionMessage), - Value5, + StateTransition, typeof(global::RetellAI.StateTransitionMessage), }; const int offset = unchecked((int)2166136261); @@ -342,11 +342,11 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(MessageOrToolCall other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Message, other.Message) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Invocation, other.Invocation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Result, other.Result) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NodeTransition, other.NodeTransition) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(StateTransition, other.StateTransition) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeBase.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeBase.g.cs index 751d8cf..90f6cc1 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.NodeBase.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeBase.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBaseCommon? Value1 { get; init; } + public global::RetellAI.NodeBaseCommon? Common { get; init; } #else - public global::RetellAI.NodeBaseCommon? Value1 { get; } + public global::RetellAI.NodeBaseCommon? Common { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Common))] #endif - public bool IsValue1 => Value1 != null; + public bool IsCommon => Common != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBaseVariant2? Value2 { get; init; } + public global::RetellAI.NodeBaseVariant2? NodeBaseVariant2 { get; init; } #else - public global::RetellAI.NodeBaseVariant2? Value2 { get; } + public global::RetellAI.NodeBaseVariant2? NodeBaseVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NodeBaseVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsNodeBaseVariant2 => NodeBaseVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBaseCommon?(NodeBase @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBaseCommon?(NodeBase @this) => @this.Common; /// /// /// public NodeBase(global::RetellAI.NodeBaseCommon? value) { - Value1 = value; + Common = value; } /// @@ -68,42 +68,42 @@ public NodeBase(global::RetellAI.NodeBaseCommon? value) /// /// /// - public static implicit operator global::RetellAI.NodeBaseVariant2?(NodeBase @this) => @this.Value2; + public static implicit operator global::RetellAI.NodeBaseVariant2?(NodeBase @this) => @this.NodeBaseVariant2; /// /// /// public NodeBase(global::RetellAI.NodeBaseVariant2? value) { - Value2 = value; + NodeBaseVariant2 = value; } /// /// /// public NodeBase( - global::RetellAI.NodeBaseCommon? value1, - global::RetellAI.NodeBaseVariant2? value2 + global::RetellAI.NodeBaseCommon? common, + global::RetellAI.NodeBaseVariant2? nodeBaseVariant2 ) { - Value1 = value1; - Value2 = value2; + Common = common; + NodeBaseVariant2 = nodeBaseVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + NodeBaseVariant2 as object ?? + Common as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Common?.ToString() ?? + NodeBaseVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsCommon && IsNodeBaseVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? common = null, + global::System.Func? nodeBaseVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsCommon && common != null) { - return value1(Value1!); + return common(Common!); } - else if (IsValue2 && value2 != null) + else if (IsNodeBaseVariant2 && nodeBaseVariant2 != null) { - return value2(Value2!); + return nodeBaseVariant2(NodeBaseVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? common = null, + global::System.Action? nodeBaseVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsCommon) { - value1?.Invoke(Value1!); + common?.Invoke(Common!); } - else if (IsValue2) + else if (IsNodeBaseVariant2) { - value2?.Invoke(Value2!); + nodeBaseVariant2?.Invoke(NodeBaseVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Common, typeof(global::RetellAI.NodeBaseCommon), - Value2, + NodeBaseVariant2, typeof(global::RetellAI.NodeBaseVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(NodeBase other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Common, other.Common) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NodeBaseVariant2, other.NodeBaseVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTool.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTool.g.cs index 838a308..a3f8948 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.NodeTool.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.NodeTool.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.OneOf? Value1 { get; init; } + public global::RetellAI.OneOf? NodeToolVariant1 { get; init; } #else - public global::RetellAI.OneOf? Value1 { get; } + public global::RetellAI.OneOf? NodeToolVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NodeToolVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsNodeToolVariant1 => NodeToolVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeToolVariant2? Value2 { get; init; } + public global::RetellAI.NodeToolVariant2? NodeToolVariant2 { get; init; } #else - public global::RetellAI.NodeToolVariant2? Value2 { get; } + public global::RetellAI.NodeToolVariant2? NodeToolVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NodeToolVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsNodeToolVariant2 => NodeToolVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.OneOf?(NodeTool @this) => @this.Value1; + public static implicit operator global::RetellAI.OneOf?(NodeTool @this) => @this.NodeToolVariant1; /// /// /// public NodeTool(global::RetellAI.OneOf? value) { - Value1 = value; + NodeToolVariant1 = value; } /// @@ -68,42 +68,42 @@ public NodeTool(global::RetellAI.OneOf /// /// - public static implicit operator global::RetellAI.NodeToolVariant2?(NodeTool @this) => @this.Value2; + public static implicit operator global::RetellAI.NodeToolVariant2?(NodeTool @this) => @this.NodeToolVariant2; /// /// /// public NodeTool(global::RetellAI.NodeToolVariant2? value) { - Value2 = value; + NodeToolVariant2 = value; } /// /// /// public NodeTool( - global::RetellAI.OneOf? value1, - global::RetellAI.NodeToolVariant2? value2 + global::RetellAI.OneOf? nodeToolVariant1, + global::RetellAI.NodeToolVariant2? nodeToolVariant2 ) { - Value1 = value1; - Value2 = value2; + NodeToolVariant1 = nodeToolVariant1; + NodeToolVariant2 = nodeToolVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + NodeToolVariant2 as object ?? + NodeToolVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + NodeToolVariant1?.ToString() ?? + NodeToolVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsNodeToolVariant1 && IsNodeToolVariant2; } /// /// /// public TResult? Match( - global::System.Func?, TResult>? value1 = null, - global::System.Func? value2 = null, + global::System.Func?, TResult>? nodeToolVariant1 = null, + global::System.Func? nodeToolVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsNodeToolVariant1 && nodeToolVariant1 != null) { - return value1(Value1!); + return nodeToolVariant1(NodeToolVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsNodeToolVariant2 && nodeToolVariant2 != null) { - return value2(Value2!); + return nodeToolVariant2(NodeToolVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action?>? value1 = null, - global::System.Action? value2 = null, + global::System.Action?>? nodeToolVariant1 = null, + global::System.Action? nodeToolVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsNodeToolVariant1) { - value1?.Invoke(Value1!); + nodeToolVariant1?.Invoke(NodeToolVariant1!); } - else if (IsValue2) + else if (IsNodeToolVariant2) { - value2?.Invoke(Value2!); + nodeToolVariant2?.Invoke(NodeToolVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + NodeToolVariant1, typeof(global::RetellAI.OneOf), - Value2, + NodeToolVariant2, typeof(global::RetellAI.NodeToolVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(NodeTool other) { return - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(NodeToolVariant1, other.NodeToolVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NodeToolVariant2, other.NodeToolVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.OrganizationResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.OrganizationResponse.g.cs index 66a747d..e86d24f 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.OrganizationResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.OrganizationResponse.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.Organization? Value1 { get; init; } + public global::RetellAI.Organization? Organization { get; init; } #else - public global::RetellAI.Organization? Value1 { get; } + public global::RetellAI.Organization? Organization { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Organization))] #endif - public bool IsValue1 => Value1 != null; + public bool IsOrganization => Organization != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.OrganizationResponseVariant2? Value2 { get; init; } + public global::RetellAI.OrganizationResponseVariant2? OrganizationResponseVariant2 { get; init; } #else - public global::RetellAI.OrganizationResponseVariant2? Value2 { get; } + public global::RetellAI.OrganizationResponseVariant2? OrganizationResponseVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OrganizationResponseVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsOrganizationResponseVariant2 => OrganizationResponseVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.Organization?(OrganizationResponse @this) => @this.Value1; + public static implicit operator global::RetellAI.Organization?(OrganizationResponse @this) => @this.Organization; /// /// /// public OrganizationResponse(global::RetellAI.Organization? value) { - Value1 = value; + Organization = value; } /// @@ -68,42 +68,42 @@ public OrganizationResponse(global::RetellAI.Organization? value) /// /// /// - public static implicit operator global::RetellAI.OrganizationResponseVariant2?(OrganizationResponse @this) => @this.Value2; + public static implicit operator global::RetellAI.OrganizationResponseVariant2?(OrganizationResponse @this) => @this.OrganizationResponseVariant2; /// /// /// public OrganizationResponse(global::RetellAI.OrganizationResponseVariant2? value) { - Value2 = value; + OrganizationResponseVariant2 = value; } /// /// /// public OrganizationResponse( - global::RetellAI.Organization? value1, - global::RetellAI.OrganizationResponseVariant2? value2 + global::RetellAI.Organization? organization, + global::RetellAI.OrganizationResponseVariant2? organizationResponseVariant2 ) { - Value1 = value1; - Value2 = value2; + Organization = organization; + OrganizationResponseVariant2 = organizationResponseVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + OrganizationResponseVariant2 as object ?? + Organization as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Organization?.ToString() ?? + OrganizationResponseVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsOrganization && IsOrganizationResponseVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? organization = null, + global::System.Func? organizationResponseVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsOrganization && organization != null) { - return value1(Value1!); + return organization(Organization!); } - else if (IsValue2 && value2 != null) + else if (IsOrganizationResponseVariant2 && organizationResponseVariant2 != null) { - return value2(Value2!); + return organizationResponseVariant2(OrganizationResponseVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? organization = null, + global::System.Action? organizationResponseVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsOrganization) { - value1?.Invoke(Value1!); + organization?.Invoke(Organization!); } - else if (IsValue2) + else if (IsOrganizationResponseVariant2) { - value2?.Invoke(Value2!); + organizationResponseVariant2?.Invoke(OrganizationResponseVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Organization, typeof(global::RetellAI.Organization), - Value2, + OrganizationResponseVariant2, typeof(global::RetellAI.OrganizationResponseVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(OrganizationResponse other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Organization, other.Organization) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OrganizationResponseVariant2, other.OrganizationResponseVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.PostCallAnalysisData.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.PostCallAnalysisData.g.cs index a0e5625..9e1f3df 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.PostCallAnalysisData.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.PostCallAnalysisData.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AnalysisData? Value1 { get; init; } + public global::RetellAI.AnalysisData? AnalysisData { get; init; } #else - public global::RetellAI.AnalysisData? Value1 { get; } + public global::RetellAI.AnalysisData? AnalysisData { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AnalysisData))] #endif - public bool IsValue1 => Value1 != null; + public bool IsAnalysisData => AnalysisData != null; /// /// System preset for post-call analysis (voice agents). Use in post_call_analysis_data to override prompts or mark fields optional. /// #if NET6_0_OR_GREATER - public global::RetellAI.CallPresetAnalysisData? Value2 { get; init; } + public global::RetellAI.CallPresetAnalysisData? Preset { get; init; } #else - public global::RetellAI.CallPresetAnalysisData? Value2 { get; } + public global::RetellAI.CallPresetAnalysisData? Preset { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Preset))] #endif - public bool IsValue2 => Value2 != null; + public bool IsPreset => Preset != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.AnalysisData?(PostCallAnalysisData @this) => @this.Value1; + public static implicit operator global::RetellAI.AnalysisData?(PostCallAnalysisData @this) => @this.AnalysisData; /// /// /// public PostCallAnalysisData(global::RetellAI.AnalysisData? value) { - Value1 = value; + AnalysisData = value; } /// @@ -68,42 +68,42 @@ public PostCallAnalysisData(global::RetellAI.AnalysisData? value) /// /// /// - public static implicit operator global::RetellAI.CallPresetAnalysisData?(PostCallAnalysisData @this) => @this.Value2; + public static implicit operator global::RetellAI.CallPresetAnalysisData?(PostCallAnalysisData @this) => @this.Preset; /// /// /// public PostCallAnalysisData(global::RetellAI.CallPresetAnalysisData? value) { - Value2 = value; + Preset = value; } /// /// /// public PostCallAnalysisData( - global::RetellAI.AnalysisData? value1, - global::RetellAI.CallPresetAnalysisData? value2 + global::RetellAI.AnalysisData? analysisData, + global::RetellAI.CallPresetAnalysisData? preset ) { - Value1 = value1; - Value2 = value2; + AnalysisData = analysisData; + Preset = preset; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Preset as object ?? + AnalysisData as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + AnalysisData?.ToString() ?? + Preset?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsAnalysisData && !IsPreset || !IsAnalysisData && IsPreset; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? analysisData = null, + global::System.Func? preset = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsAnalysisData && analysisData != null) { - return value1(Value1!); + return analysisData(AnalysisData!); } - else if (IsValue2 && value2 != null) + else if (IsPreset && preset != null) { - return value2(Value2!); + return preset(Preset!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? analysisData = null, + global::System.Action? preset = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsAnalysisData) { - value1?.Invoke(Value1!); + analysisData?.Invoke(AnalysisData!); } - else if (IsValue2) + else if (IsPreset) { - value2?.Invoke(Value2!); + preset?.Invoke(Preset!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + AnalysisData, typeof(global::RetellAI.AnalysisData), - Value2, + Preset, typeof(global::RetellAI.CallPresetAnalysisData), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(PostCallAnalysisData other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(AnalysisData, other.AnalysisData) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Preset, other.Preset) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.PostChatAnalysisData.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.PostChatAnalysisData.g.cs index 8752cad..4e26390 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.PostChatAnalysisData.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.PostChatAnalysisData.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AnalysisData? Value1 { get; init; } + public global::RetellAI.AnalysisData? AnalysisData { get; init; } #else - public global::RetellAI.AnalysisData? Value1 { get; } + public global::RetellAI.AnalysisData? AnalysisData { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AnalysisData))] #endif - public bool IsValue1 => Value1 != null; + public bool IsAnalysisData => AnalysisData != null; /// /// System preset for post-chat analysis (chat agents). Use in post_chat_analysis_data to override prompts or mark fields optional. /// #if NET6_0_OR_GREATER - public global::RetellAI.ChatPresetAnalysisData? Value2 { get; init; } + public global::RetellAI.ChatPresetAnalysisData? Preset { get; init; } #else - public global::RetellAI.ChatPresetAnalysisData? Value2 { get; } + public global::RetellAI.ChatPresetAnalysisData? Preset { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Preset))] #endif - public bool IsValue2 => Value2 != null; + public bool IsPreset => Preset != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.AnalysisData?(PostChatAnalysisData @this) => @this.Value1; + public static implicit operator global::RetellAI.AnalysisData?(PostChatAnalysisData @this) => @this.AnalysisData; /// /// /// public PostChatAnalysisData(global::RetellAI.AnalysisData? value) { - Value1 = value; + AnalysisData = value; } /// @@ -68,42 +68,42 @@ public PostChatAnalysisData(global::RetellAI.AnalysisData? value) /// /// /// - public static implicit operator global::RetellAI.ChatPresetAnalysisData?(PostChatAnalysisData @this) => @this.Value2; + public static implicit operator global::RetellAI.ChatPresetAnalysisData?(PostChatAnalysisData @this) => @this.Preset; /// /// /// public PostChatAnalysisData(global::RetellAI.ChatPresetAnalysisData? value) { - Value2 = value; + Preset = value; } /// /// /// public PostChatAnalysisData( - global::RetellAI.AnalysisData? value1, - global::RetellAI.ChatPresetAnalysisData? value2 + global::RetellAI.AnalysisData? analysisData, + global::RetellAI.ChatPresetAnalysisData? preset ) { - Value1 = value1; - Value2 = value2; + AnalysisData = analysisData; + Preset = preset; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Preset as object ?? + AnalysisData as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + AnalysisData?.ToString() ?? + Preset?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsAnalysisData && !IsPreset || !IsAnalysisData && IsPreset; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? analysisData = null, + global::System.Func? preset = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsAnalysisData && analysisData != null) { - return value1(Value1!); + return analysisData(AnalysisData!); } - else if (IsValue2 && value2 != null) + else if (IsPreset && preset != null) { - return value2(Value2!); + return preset(Preset!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? analysisData = null, + global::System.Action? preset = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsAnalysisData) { - value1?.Invoke(Value1!); + analysisData?.Invoke(AnalysisData!); } - else if (IsValue2) + else if (IsPreset) { - value2?.Invoke(Value2!); + preset?.Invoke(Preset!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + AnalysisData, typeof(global::RetellAI.AnalysisData), - Value2, + Preset, typeof(global::RetellAI.ChatPresetAnalysisData), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(PostChatAnalysisData other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(AnalysisData, other.AnalysisData) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Preset, other.Preset) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.PressDigitNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.PressDigitNode.g.cs index f81277b..f17c1da 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.PressDigitNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.PressDigitNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.PressDigitNodeVariant2? Value2 { get; init; } + public global::RetellAI.PressDigitNodeVariant2? PressDigitNodeVariant2 { get; init; } #else - public global::RetellAI.PressDigitNodeVariant2? Value2 { get; } + public global::RetellAI.PressDigitNodeVariant2? PressDigitNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(PressDigitNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsPressDigitNodeVariant2 => PressDigitNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(PressDigitNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(PressDigitNode @this) => @this.Base; /// /// /// public PressDigitNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public PressDigitNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.PressDigitNodeVariant2?(PressDigitNode @this) => @this.Value2; + public static implicit operator global::RetellAI.PressDigitNodeVariant2?(PressDigitNode @this) => @this.PressDigitNodeVariant2; /// /// /// public PressDigitNode(global::RetellAI.PressDigitNodeVariant2? value) { - Value2 = value; + PressDigitNodeVariant2 = value; } /// /// /// public PressDigitNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.PressDigitNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.PressDigitNodeVariant2? pressDigitNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + PressDigitNodeVariant2 = pressDigitNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + PressDigitNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + PressDigitNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsPressDigitNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? pressDigitNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsPressDigitNodeVariant2 && pressDigitNodeVariant2 != null) { - return value2(Value2!); + return pressDigitNodeVariant2(PressDigitNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? pressDigitNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsPressDigitNodeVariant2) { - value2?.Invoke(Value2!); + pressDigitNodeVariant2?.Invoke(PressDigitNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + PressDigitNodeVariant2, typeof(global::RetellAI.PressDigitNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(PressDigitNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(PressDigitNodeVariant2, other.PressDigitNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RetellLLMResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RetellLLMResponse.g.cs index c75e069..2fdd37c 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.RetellLLMResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RetellLLMResponse.g.cs @@ -13,52 +13,52 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.RetellLLMResponseVariant1? Value1 { get; init; } + public global::RetellAI.RetellLLMResponseVariant1? RetellLLMResponseVariant1 { get; init; } #else - public global::RetellAI.RetellLLMResponseVariant1? Value1 { get; } + public global::RetellAI.RetellLLMResponseVariant1? RetellLLMResponseVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RetellLLMResponseVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsRetellLLMResponseVariant1 => RetellLLMResponseVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.RetellLlmRequest? Value2 { get; init; } + public global::RetellAI.RetellLlmRequest? LlmRequest { get; init; } #else - public global::RetellAI.RetellLlmRequest? Value2 { get; } + public global::RetellAI.RetellLlmRequest? LlmRequest { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(LlmRequest))] #endif - public bool IsValue2 => Value2 != null; + public bool IsLlmRequest => LlmRequest != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.RetellLLMResponseVariant3? Value3 { get; init; } + public global::RetellAI.RetellLLMResponseVariant3? RetellLLMResponseVariant3 { get; init; } #else - public global::RetellAI.RetellLLMResponseVariant3? Value3 { get; } + public global::RetellAI.RetellLLMResponseVariant3? RetellLLMResponseVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RetellLLMResponseVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsRetellLLMResponseVariant3 => RetellLLMResponseVariant3 != null; /// /// /// @@ -67,14 +67,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.RetellLLMResponseVariant1?(RetellLLMResponse @this) => @this.Value1; + public static implicit operator global::RetellAI.RetellLLMResponseVariant1?(RetellLLMResponse @this) => @this.RetellLLMResponseVariant1; /// /// /// public RetellLLMResponse(global::RetellAI.RetellLLMResponseVariant1? value) { - Value1 = value; + RetellLLMResponseVariant1 = value; } /// @@ -85,14 +85,14 @@ public RetellLLMResponse(global::RetellAI.RetellLLMResponseVariant1? value) /// /// /// - public static implicit operator global::RetellAI.RetellLlmRequest?(RetellLLMResponse @this) => @this.Value2; + public static implicit operator global::RetellAI.RetellLlmRequest?(RetellLLMResponse @this) => @this.LlmRequest; /// /// /// public RetellLLMResponse(global::RetellAI.RetellLlmRequest? value) { - Value2 = value; + LlmRequest = value; } /// @@ -103,46 +103,46 @@ public RetellLLMResponse(global::RetellAI.RetellLlmRequest? value) /// /// /// - public static implicit operator global::RetellAI.RetellLLMResponseVariant3?(RetellLLMResponse @this) => @this.Value3; + public static implicit operator global::RetellAI.RetellLLMResponseVariant3?(RetellLLMResponse @this) => @this.RetellLLMResponseVariant3; /// /// /// public RetellLLMResponse(global::RetellAI.RetellLLMResponseVariant3? value) { - Value3 = value; + RetellLLMResponseVariant3 = value; } /// /// /// public RetellLLMResponse( - global::RetellAI.RetellLLMResponseVariant1? value1, - global::RetellAI.RetellLlmRequest? value2, - global::RetellAI.RetellLLMResponseVariant3? value3 + global::RetellAI.RetellLLMResponseVariant1? retellLLMResponseVariant1, + global::RetellAI.RetellLlmRequest? llmRequest, + global::RetellAI.RetellLLMResponseVariant3? retellLLMResponseVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + RetellLLMResponseVariant1 = retellLLMResponseVariant1; + LlmRequest = llmRequest; + RetellLLMResponseVariant3 = retellLLMResponseVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + RetellLLMResponseVariant3 as object ?? + LlmRequest as object ?? + RetellLLMResponseVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + RetellLLMResponseVariant1?.ToString() ?? + LlmRequest?.ToString() ?? + RetellLLMResponseVariant3?.ToString() ; /// @@ -150,16 +150,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2 && IsValue3; + return IsRetellLLMResponseVariant1 && IsLlmRequest && IsRetellLLMResponseVariant3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, + global::System.Func? retellLLMResponseVariant1 = null, + global::System.Func? llmRequest = null, + global::System.Func? retellLLMResponseVariant3 = null, bool validate = true) { if (validate) @@ -167,17 +167,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsRetellLLMResponseVariant1 && retellLLMResponseVariant1 != null) { - return value1(Value1!); + return retellLLMResponseVariant1(RetellLLMResponseVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsLlmRequest && llmRequest != null) { - return value2(Value2!); + return llmRequest(LlmRequest!); } - else if (IsValue3 && value3 != null) + else if (IsRetellLLMResponseVariant3 && retellLLMResponseVariant3 != null) { - return value3(Value3!); + return retellLLMResponseVariant3(RetellLLMResponseVariant3!); } return default(TResult); @@ -187,9 +187,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, + global::System.Action? retellLLMResponseVariant1 = null, + global::System.Action? llmRequest = null, + global::System.Action? retellLLMResponseVariant3 = null, bool validate = true) { if (validate) @@ -197,17 +197,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsRetellLLMResponseVariant1) { - value1?.Invoke(Value1!); + retellLLMResponseVariant1?.Invoke(RetellLLMResponseVariant1!); } - else if (IsValue2) + else if (IsLlmRequest) { - value2?.Invoke(Value2!); + llmRequest?.Invoke(LlmRequest!); } - else if (IsValue3) + else if (IsRetellLLMResponseVariant3) { - value3?.Invoke(Value3!); + retellLLMResponseVariant3?.Invoke(RetellLLMResponseVariant3!); } } @@ -218,11 +218,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + RetellLLMResponseVariant1, typeof(global::RetellAI.RetellLLMResponseVariant1), - Value2, + LlmRequest, typeof(global::RetellAI.RetellLlmRequest), - Value3, + RetellLLMResponseVariant3, typeof(global::RetellAI.RetellLLMResponseVariant3), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(RetellLLMResponse other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(RetellLLMResponseVariant1, other.RetellLLMResponseVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(LlmRequest, other.LlmRequest) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RetellLLMResponseVariant3, other.RetellLLMResponseVariant3) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.RetellLlmRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.RetellLlmRequest.g.cs index 528234f..e3c06f0 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.RetellLlmRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.RetellLlmRequest.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// Override properties for Retell LLM configuration in agent override requests. /// #if NET6_0_OR_GREATER - public global::RetellAI.RetellLlmOverride? Value1 { get; init; } + public global::RetellAI.RetellLlmOverride? Override { get; init; } #else - public global::RetellAI.RetellLlmOverride? Value1 { get; } + public global::RetellAI.RetellLlmOverride? Override { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Override))] #endif - public bool IsValue1 => Value1 != null; + public bool IsOverride => Override != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.RetellLlmRequestVariant2? Value2 { get; init; } + public global::RetellAI.RetellLlmRequestVariant2? RetellLlmRequestVariant2 { get; init; } #else - public global::RetellAI.RetellLlmRequestVariant2? Value2 { get; } + public global::RetellAI.RetellLlmRequestVariant2? RetellLlmRequestVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RetellLlmRequestVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsRetellLlmRequestVariant2 => RetellLlmRequestVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.RetellLlmOverride?(RetellLlmRequest @this) => @this.Value1; + public static implicit operator global::RetellAI.RetellLlmOverride?(RetellLlmRequest @this) => @this.Override; /// /// /// public RetellLlmRequest(global::RetellAI.RetellLlmOverride? value) { - Value1 = value; + Override = value; } /// @@ -68,42 +68,42 @@ public RetellLlmRequest(global::RetellAI.RetellLlmOverride? value) /// /// /// - public static implicit operator global::RetellAI.RetellLlmRequestVariant2?(RetellLlmRequest @this) => @this.Value2; + public static implicit operator global::RetellAI.RetellLlmRequestVariant2?(RetellLlmRequest @this) => @this.RetellLlmRequestVariant2; /// /// /// public RetellLlmRequest(global::RetellAI.RetellLlmRequestVariant2? value) { - Value2 = value; + RetellLlmRequestVariant2 = value; } /// /// /// public RetellLlmRequest( - global::RetellAI.RetellLlmOverride? value1, - global::RetellAI.RetellLlmRequestVariant2? value2 + global::RetellAI.RetellLlmOverride? @override, + global::RetellAI.RetellLlmRequestVariant2? retellLlmRequestVariant2 ) { - Value1 = value1; - Value2 = value2; + Override = @override; + RetellLlmRequestVariant2 = retellLlmRequestVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + RetellLlmRequestVariant2 as object ?? + Override as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Override?.ToString() ?? + RetellLlmRequestVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsOverride && IsRetellLlmRequestVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @override = null, + global::System.Func? retellLlmRequestVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsOverride && @override != null) { - return value1(Value1!); + return @override(Override!); } - else if (IsValue2 && value2 != null) + else if (IsRetellLlmRequestVariant2 && retellLlmRequestVariant2 != null) { - return value2(Value2!); + return retellLlmRequestVariant2(RetellLlmRequestVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @override = null, + global::System.Action? retellLlmRequestVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsOverride) { - value1?.Invoke(Value1!); + @override?.Invoke(Override!); } - else if (IsValue2) + else if (IsRetellLlmRequestVariant2) { - value2?.Invoke(Value2!); + retellLlmRequestVariant2?.Invoke(RetellLlmRequestVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Override, typeof(global::RetellAI.RetellLlmOverride), - Value2, + RetellLlmRequestVariant2, typeof(global::RetellAI.RetellLlmRequestVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(RetellLlmRequest other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Override, other.Override) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(RetellLlmRequestVariant2, other.RetellLlmRequestVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SkipResponseEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SkipResponseEdge.g.cs index 4c721aa..1d74e0e 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SkipResponseEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SkipResponseEdge.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeEdge? Value1 { get; init; } + public global::RetellAI.NodeEdge? Node { get; init; } #else - public global::RetellAI.NodeEdge? Value1 { get; } + public global::RetellAI.NodeEdge? Node { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Node))] #endif - public bool IsValue1 => Value1 != null; + public bool IsNode => Node != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SkipResponseEdgeVariant2? Value2 { get; init; } + public global::RetellAI.SkipResponseEdgeVariant2? SkipResponseEdgeVariant2 { get; init; } #else - public global::RetellAI.SkipResponseEdgeVariant2? Value2 { get; } + public global::RetellAI.SkipResponseEdgeVariant2? SkipResponseEdgeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SkipResponseEdgeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsSkipResponseEdgeVariant2 => SkipResponseEdgeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeEdge?(SkipResponseEdge @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeEdge?(SkipResponseEdge @this) => @this.Node; /// /// /// public SkipResponseEdge(global::RetellAI.NodeEdge? value) { - Value1 = value; + Node = value; } /// @@ -68,42 +68,42 @@ public SkipResponseEdge(global::RetellAI.NodeEdge? value) /// /// /// - public static implicit operator global::RetellAI.SkipResponseEdgeVariant2?(SkipResponseEdge @this) => @this.Value2; + public static implicit operator global::RetellAI.SkipResponseEdgeVariant2?(SkipResponseEdge @this) => @this.SkipResponseEdgeVariant2; /// /// /// public SkipResponseEdge(global::RetellAI.SkipResponseEdgeVariant2? value) { - Value2 = value; + SkipResponseEdgeVariant2 = value; } /// /// /// public SkipResponseEdge( - global::RetellAI.NodeEdge? value1, - global::RetellAI.SkipResponseEdgeVariant2? value2 + global::RetellAI.NodeEdge? node, + global::RetellAI.SkipResponseEdgeVariant2? skipResponseEdgeVariant2 ) { - Value1 = value1; - Value2 = value2; + Node = node; + SkipResponseEdgeVariant2 = skipResponseEdgeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + SkipResponseEdgeVariant2 as object ?? + Node as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Node?.ToString() ?? + SkipResponseEdgeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsNode && IsSkipResponseEdgeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? node = null, + global::System.Func? skipResponseEdgeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsNode && node != null) { - return value1(Value1!); + return node(Node!); } - else if (IsValue2 && value2 != null) + else if (IsSkipResponseEdgeVariant2 && skipResponseEdgeVariant2 != null) { - return value2(Value2!); + return skipResponseEdgeVariant2(SkipResponseEdgeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? node = null, + global::System.Action? skipResponseEdgeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsNode) { - value1?.Invoke(Value1!); + node?.Invoke(Node!); } - else if (IsValue2) + else if (IsSkipResponseEdgeVariant2) { - value2?.Invoke(Value2!); + skipResponseEdgeVariant2?.Invoke(SkipResponseEdgeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Node, typeof(global::RetellAI.NodeEdge), - Value2, + SkipResponseEdgeVariant2, typeof(global::RetellAI.SkipResponseEdgeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(SkipResponseEdge other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Node, other.Node) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SkipResponseEdgeVariant2, other.SkipResponseEdgeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsDestination.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsDestination.g.cs index 4d1534c..6f78390 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SmsDestination.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsDestination.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SmsDestinationVariant1? Value1 { get; init; } + public global::RetellAI.SmsDestinationVariant1? SmsDestinationVariant1 { get; init; } #else - public global::RetellAI.SmsDestinationVariant1? Value1 { get; } + public global::RetellAI.SmsDestinationVariant1? SmsDestinationVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SmsDestinationVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsSmsDestinationVariant1 => SmsDestinationVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SmsDestinationVariant2? Value2 { get; init; } + public global::RetellAI.SmsDestinationVariant2? SmsDestinationVariant2 { get; init; } #else - public global::RetellAI.SmsDestinationVariant2? Value2 { get; } + public global::RetellAI.SmsDestinationVariant2? SmsDestinationVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SmsDestinationVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsSmsDestinationVariant2 => SmsDestinationVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.SmsDestinationVariant1?(SmsDestination @this) => @this.Value1; + public static implicit operator global::RetellAI.SmsDestinationVariant1?(SmsDestination @this) => @this.SmsDestinationVariant1; /// /// /// public SmsDestination(global::RetellAI.SmsDestinationVariant1? value) { - Value1 = value; + SmsDestinationVariant1 = value; } /// @@ -68,42 +68,42 @@ public SmsDestination(global::RetellAI.SmsDestinationVariant1? value) /// /// /// - public static implicit operator global::RetellAI.SmsDestinationVariant2?(SmsDestination @this) => @this.Value2; + public static implicit operator global::RetellAI.SmsDestinationVariant2?(SmsDestination @this) => @this.SmsDestinationVariant2; /// /// /// public SmsDestination(global::RetellAI.SmsDestinationVariant2? value) { - Value2 = value; + SmsDestinationVariant2 = value; } /// /// /// public SmsDestination( - global::RetellAI.SmsDestinationVariant1? value1, - global::RetellAI.SmsDestinationVariant2? value2 + global::RetellAI.SmsDestinationVariant1? smsDestinationVariant1, + global::RetellAI.SmsDestinationVariant2? smsDestinationVariant2 ) { - Value1 = value1; - Value2 = value2; + SmsDestinationVariant1 = smsDestinationVariant1; + SmsDestinationVariant2 = smsDestinationVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + SmsDestinationVariant2 as object ?? + SmsDestinationVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + SmsDestinationVariant1?.ToString() ?? + SmsDestinationVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsSmsDestinationVariant1 && !IsSmsDestinationVariant2 || !IsSmsDestinationVariant1 && IsSmsDestinationVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? smsDestinationVariant1 = null, + global::System.Func? smsDestinationVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsSmsDestinationVariant1 && smsDestinationVariant1 != null) { - return value1(Value1!); + return smsDestinationVariant1(SmsDestinationVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsSmsDestinationVariant2 && smsDestinationVariant2 != null) { - return value2(Value2!); + return smsDestinationVariant2(SmsDestinationVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? smsDestinationVariant1 = null, + global::System.Action? smsDestinationVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsSmsDestinationVariant1) { - value1?.Invoke(Value1!); + smsDestinationVariant1?.Invoke(SmsDestinationVariant1!); } - else if (IsValue2) + else if (IsSmsDestinationVariant2) { - value2?.Invoke(Value2!); + smsDestinationVariant2?.Invoke(SmsDestinationVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + SmsDestinationVariant1, typeof(global::RetellAI.SmsDestinationVariant1), - Value2, + SmsDestinationVariant2, typeof(global::RetellAI.SmsDestinationVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(SmsDestination other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(SmsDestinationVariant1, other.SmsDestinationVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SmsDestinationVariant2, other.SmsDestinationVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsFailedEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsFailedEdge.g.cs index 1c6b395..981064e 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SmsFailedEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsFailedEdge.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeEdge? Value1 { get; init; } + public global::RetellAI.NodeEdge? Node { get; init; } #else - public global::RetellAI.NodeEdge? Value1 { get; } + public global::RetellAI.NodeEdge? Node { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Node))] #endif - public bool IsValue1 => Value1 != null; + public bool IsNode => Node != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SmsFailedEdgeVariant2? Value2 { get; init; } + public global::RetellAI.SmsFailedEdgeVariant2? SmsFailedEdgeVariant2 { get; init; } #else - public global::RetellAI.SmsFailedEdgeVariant2? Value2 { get; } + public global::RetellAI.SmsFailedEdgeVariant2? SmsFailedEdgeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SmsFailedEdgeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsSmsFailedEdgeVariant2 => SmsFailedEdgeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeEdge?(SmsFailedEdge @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeEdge?(SmsFailedEdge @this) => @this.Node; /// /// /// public SmsFailedEdge(global::RetellAI.NodeEdge? value) { - Value1 = value; + Node = value; } /// @@ -68,42 +68,42 @@ public SmsFailedEdge(global::RetellAI.NodeEdge? value) /// /// /// - public static implicit operator global::RetellAI.SmsFailedEdgeVariant2?(SmsFailedEdge @this) => @this.Value2; + public static implicit operator global::RetellAI.SmsFailedEdgeVariant2?(SmsFailedEdge @this) => @this.SmsFailedEdgeVariant2; /// /// /// public SmsFailedEdge(global::RetellAI.SmsFailedEdgeVariant2? value) { - Value2 = value; + SmsFailedEdgeVariant2 = value; } /// /// /// public SmsFailedEdge( - global::RetellAI.NodeEdge? value1, - global::RetellAI.SmsFailedEdgeVariant2? value2 + global::RetellAI.NodeEdge? node, + global::RetellAI.SmsFailedEdgeVariant2? smsFailedEdgeVariant2 ) { - Value1 = value1; - Value2 = value2; + Node = node; + SmsFailedEdgeVariant2 = smsFailedEdgeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + SmsFailedEdgeVariant2 as object ?? + Node as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Node?.ToString() ?? + SmsFailedEdgeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsNode && IsSmsFailedEdgeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? node = null, + global::System.Func? smsFailedEdgeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsNode && node != null) { - return value1(Value1!); + return node(Node!); } - else if (IsValue2 && value2 != null) + else if (IsSmsFailedEdgeVariant2 && smsFailedEdgeVariant2 != null) { - return value2(Value2!); + return smsFailedEdgeVariant2(SmsFailedEdgeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? node = null, + global::System.Action? smsFailedEdgeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsNode) { - value1?.Invoke(Value1!); + node?.Invoke(Node!); } - else if (IsValue2) + else if (IsSmsFailedEdgeVariant2) { - value2?.Invoke(Value2!); + smsFailedEdgeVariant2?.Invoke(SmsFailedEdgeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Node, typeof(global::RetellAI.NodeEdge), - Value2, + SmsFailedEdgeVariant2, typeof(global::RetellAI.SmsFailedEdgeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(SmsFailedEdge other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Node, other.Node) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SmsFailedEdgeVariant2, other.SmsFailedEdgeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsNode.g.cs index a011a5b..0dadb97 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SmsNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SmsNodeVariant2? Value2 { get; init; } + public global::RetellAI.SmsNodeVariant2? SmsNodeVariant2 { get; init; } #else - public global::RetellAI.SmsNodeVariant2? Value2 { get; } + public global::RetellAI.SmsNodeVariant2? SmsNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SmsNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsSmsNodeVariant2 => SmsNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(SmsNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(SmsNode @this) => @this.Base; /// /// /// public SmsNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public SmsNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.SmsNodeVariant2?(SmsNode @this) => @this.Value2; + public static implicit operator global::RetellAI.SmsNodeVariant2?(SmsNode @this) => @this.SmsNodeVariant2; /// /// /// public SmsNode(global::RetellAI.SmsNodeVariant2? value) { - Value2 = value; + SmsNodeVariant2 = value; } /// /// /// public SmsNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.SmsNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.SmsNodeVariant2? smsNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + SmsNodeVariant2 = smsNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + SmsNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + SmsNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsSmsNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? smsNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsSmsNodeVariant2 && smsNodeVariant2 != null) { - return value2(Value2!); + return smsNodeVariant2(SmsNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? smsNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsSmsNodeVariant2) { - value2?.Invoke(Value2!); + smsNodeVariant2?.Invoke(SmsNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + SmsNodeVariant2, typeof(global::RetellAI.SmsNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(SmsNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SmsNodeVariant2, other.SmsNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsSender.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsSender.g.cs index 7dce20e..643c55b 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SmsSender.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsSender.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SmsSenderVariant1? Value1 { get; init; } + public global::RetellAI.SmsSenderVariant1? SmsSenderVariant1 { get; init; } #else - public global::RetellAI.SmsSenderVariant1? Value1 { get; } + public global::RetellAI.SmsSenderVariant1? SmsSenderVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SmsSenderVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsSmsSenderVariant1 => SmsSenderVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SmsSenderVariant2? Value2 { get; init; } + public global::RetellAI.SmsSenderVariant2? SmsSenderVariant2 { get; init; } #else - public global::RetellAI.SmsSenderVariant2? Value2 { get; } + public global::RetellAI.SmsSenderVariant2? SmsSenderVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SmsSenderVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsSmsSenderVariant2 => SmsSenderVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.SmsSenderVariant1?(SmsSender @this) => @this.Value1; + public static implicit operator global::RetellAI.SmsSenderVariant1?(SmsSender @this) => @this.SmsSenderVariant1; /// /// /// public SmsSender(global::RetellAI.SmsSenderVariant1? value) { - Value1 = value; + SmsSenderVariant1 = value; } /// @@ -68,42 +68,42 @@ public SmsSender(global::RetellAI.SmsSenderVariant1? value) /// /// /// - public static implicit operator global::RetellAI.SmsSenderVariant2?(SmsSender @this) => @this.Value2; + public static implicit operator global::RetellAI.SmsSenderVariant2?(SmsSender @this) => @this.SmsSenderVariant2; /// /// /// public SmsSender(global::RetellAI.SmsSenderVariant2? value) { - Value2 = value; + SmsSenderVariant2 = value; } /// /// /// public SmsSender( - global::RetellAI.SmsSenderVariant1? value1, - global::RetellAI.SmsSenderVariant2? value2 + global::RetellAI.SmsSenderVariant1? smsSenderVariant1, + global::RetellAI.SmsSenderVariant2? smsSenderVariant2 ) { - Value1 = value1; - Value2 = value2; + SmsSenderVariant1 = smsSenderVariant1; + SmsSenderVariant2 = smsSenderVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + SmsSenderVariant2 as object ?? + SmsSenderVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + SmsSenderVariant1?.ToString() ?? + SmsSenderVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsSmsSenderVariant1 && !IsSmsSenderVariant2 || !IsSmsSenderVariant1 && IsSmsSenderVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? smsSenderVariant1 = null, + global::System.Func? smsSenderVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsSmsSenderVariant1 && smsSenderVariant1 != null) { - return value1(Value1!); + return smsSenderVariant1(SmsSenderVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsSmsSenderVariant2 && smsSenderVariant2 != null) { - return value2(Value2!); + return smsSenderVariant2(SmsSenderVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? smsSenderVariant1 = null, + global::System.Action? smsSenderVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsSmsSenderVariant1) { - value1?.Invoke(Value1!); + smsSenderVariant1?.Invoke(SmsSenderVariant1!); } - else if (IsValue2) + else if (IsSmsSenderVariant2) { - value2?.Invoke(Value2!); + smsSenderVariant2?.Invoke(SmsSenderVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + SmsSenderVariant1, typeof(global::RetellAI.SmsSenderVariant1), - Value2, + SmsSenderVariant2, typeof(global::RetellAI.SmsSenderVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(SmsSender other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(SmsSenderVariant1, other.SmsSenderVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SmsSenderVariant2, other.SmsSenderVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SmsSuccessEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SmsSuccessEdge.g.cs index c2c9048..d1f1b10 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SmsSuccessEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SmsSuccessEdge.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeEdge? Value1 { get; init; } + public global::RetellAI.NodeEdge? Node { get; init; } #else - public global::RetellAI.NodeEdge? Value1 { get; } + public global::RetellAI.NodeEdge? Node { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Node))] #endif - public bool IsValue1 => Value1 != null; + public bool IsNode => Node != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SmsSuccessEdgeVariant2? Value2 { get; init; } + public global::RetellAI.SmsSuccessEdgeVariant2? SmsSuccessEdgeVariant2 { get; init; } #else - public global::RetellAI.SmsSuccessEdgeVariant2? Value2 { get; } + public global::RetellAI.SmsSuccessEdgeVariant2? SmsSuccessEdgeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SmsSuccessEdgeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsSmsSuccessEdgeVariant2 => SmsSuccessEdgeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeEdge?(SmsSuccessEdge @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeEdge?(SmsSuccessEdge @this) => @this.Node; /// /// /// public SmsSuccessEdge(global::RetellAI.NodeEdge? value) { - Value1 = value; + Node = value; } /// @@ -68,42 +68,42 @@ public SmsSuccessEdge(global::RetellAI.NodeEdge? value) /// /// /// - public static implicit operator global::RetellAI.SmsSuccessEdgeVariant2?(SmsSuccessEdge @this) => @this.Value2; + public static implicit operator global::RetellAI.SmsSuccessEdgeVariant2?(SmsSuccessEdge @this) => @this.SmsSuccessEdgeVariant2; /// /// /// public SmsSuccessEdge(global::RetellAI.SmsSuccessEdgeVariant2? value) { - Value2 = value; + SmsSuccessEdgeVariant2 = value; } /// /// /// public SmsSuccessEdge( - global::RetellAI.NodeEdge? value1, - global::RetellAI.SmsSuccessEdgeVariant2? value2 + global::RetellAI.NodeEdge? node, + global::RetellAI.SmsSuccessEdgeVariant2? smsSuccessEdgeVariant2 ) { - Value1 = value1; - Value2 = value2; + Node = node; + SmsSuccessEdgeVariant2 = smsSuccessEdgeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + SmsSuccessEdgeVariant2 as object ?? + Node as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Node?.ToString() ?? + SmsSuccessEdgeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsNode && IsSmsSuccessEdgeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? node = null, + global::System.Func? smsSuccessEdgeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsNode && node != null) { - return value1(Value1!); + return node(Node!); } - else if (IsValue2 && value2 != null) + else if (IsSmsSuccessEdgeVariant2 && smsSuccessEdgeVariant2 != null) { - return value2(Value2!); + return smsSuccessEdgeVariant2(SmsSuccessEdgeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? node = null, + global::System.Action? smsSuccessEdgeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsNode) { - value1?.Invoke(Value1!); + node?.Invoke(Node!); } - else if (IsValue2) + else if (IsSmsSuccessEdgeVariant2) { - value2?.Invoke(Value2!); + smsSuccessEdgeVariant2?.Invoke(SmsSuccessEdgeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Node, typeof(global::RetellAI.NodeEdge), - Value2, + SmsSuccessEdgeVariant2, typeof(global::RetellAI.SmsSuccessEdgeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(SmsSuccessEdge other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Node, other.Node) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SmsSuccessEdgeVariant2, other.SmsSuccessEdgeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.SubagentNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.SubagentNode.g.cs index d716c6e..4852033 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.SubagentNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.SubagentNode.g.cs @@ -13,52 +13,52 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.AgentOverrideConfig? Value2 { get; init; } + public global::RetellAI.AgentOverrideConfig? AgentOverrideConfig { get; init; } #else - public global::RetellAI.AgentOverrideConfig? Value2 { get; } + public global::RetellAI.AgentOverrideConfig? AgentOverrideConfig { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AgentOverrideConfig))] #endif - public bool IsValue2 => Value2 != null; + public bool IsAgentOverrideConfig => AgentOverrideConfig != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.SubagentNodeVariant3? Value3 { get; init; } + public global::RetellAI.SubagentNodeVariant3? SubagentNodeVariant3 { get; init; } #else - public global::RetellAI.SubagentNodeVariant3? Value3 { get; } + public global::RetellAI.SubagentNodeVariant3? SubagentNodeVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SubagentNodeVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsSubagentNodeVariant3 => SubagentNodeVariant3 != null; /// /// /// @@ -67,14 +67,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(SubagentNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(SubagentNode @this) => @this.Base; /// /// /// public SubagentNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -85,14 +85,14 @@ public SubagentNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.AgentOverrideConfig?(SubagentNode @this) => @this.Value2; + public static implicit operator global::RetellAI.AgentOverrideConfig?(SubagentNode @this) => @this.AgentOverrideConfig; /// /// /// public SubagentNode(global::RetellAI.AgentOverrideConfig? value) { - Value2 = value; + AgentOverrideConfig = value; } /// @@ -103,46 +103,46 @@ public SubagentNode(global::RetellAI.AgentOverrideConfig? value) /// /// /// - public static implicit operator global::RetellAI.SubagentNodeVariant3?(SubagentNode @this) => @this.Value3; + public static implicit operator global::RetellAI.SubagentNodeVariant3?(SubagentNode @this) => @this.SubagentNodeVariant3; /// /// /// public SubagentNode(global::RetellAI.SubagentNodeVariant3? value) { - Value3 = value; + SubagentNodeVariant3 = value; } /// /// /// public SubagentNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.AgentOverrideConfig? value2, - global::RetellAI.SubagentNodeVariant3? value3 + global::RetellAI.NodeBase? @base, + global::RetellAI.AgentOverrideConfig? agentOverrideConfig, + global::RetellAI.SubagentNodeVariant3? subagentNodeVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + Base = @base; + AgentOverrideConfig = agentOverrideConfig; + SubagentNodeVariant3 = subagentNodeVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + SubagentNodeVariant3 as object ?? + AgentOverrideConfig as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + Base?.ToString() ?? + AgentOverrideConfig?.ToString() ?? + SubagentNodeVariant3?.ToString() ; /// @@ -150,16 +150,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2 && IsValue3; + return IsBase && IsAgentOverrideConfig && IsSubagentNodeVariant3; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, + global::System.Func? @base = null, + global::System.Func? agentOverrideConfig = null, + global::System.Func? subagentNodeVariant3 = null, bool validate = true) { if (validate) @@ -167,17 +167,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsAgentOverrideConfig && agentOverrideConfig != null) { - return value2(Value2!); + return agentOverrideConfig(AgentOverrideConfig!); } - else if (IsValue3 && value3 != null) + else if (IsSubagentNodeVariant3 && subagentNodeVariant3 != null) { - return value3(Value3!); + return subagentNodeVariant3(SubagentNodeVariant3!); } return default(TResult); @@ -187,9 +187,9 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, + global::System.Action? @base = null, + global::System.Action? agentOverrideConfig = null, + global::System.Action? subagentNodeVariant3 = null, bool validate = true) { if (validate) @@ -197,17 +197,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsAgentOverrideConfig) { - value2?.Invoke(Value2!); + agentOverrideConfig?.Invoke(AgentOverrideConfig!); } - else if (IsValue3) + else if (IsSubagentNodeVariant3) { - value3?.Invoke(Value3!); + subagentNodeVariant3?.Invoke(SubagentNodeVariant3!); } } @@ -218,11 +218,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + AgentOverrideConfig, typeof(global::RetellAI.AgentOverrideConfig), - Value3, + SubagentNodeVariant3, typeof(global::RetellAI.SubagentNodeVariant3), }; const int offset = unchecked((int)2166136261); @@ -240,9 +240,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(SubagentNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(AgentOverrideConfig, other.AgentOverrideConfig) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SubagentNodeVariant3, other.SubagentNodeVariant3) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseDefinition.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseDefinition.g.cs index 4de5ed7..c1a44b5 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseDefinition.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TestCaseDefinition.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.TestCaseDefinitionInput? Value1 { get; init; } + public global::RetellAI.TestCaseDefinitionInput? Input { get; init; } #else - public global::RetellAI.TestCaseDefinitionInput? Value1 { get; } + public global::RetellAI.TestCaseDefinitionInput? Input { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Input))] #endif - public bool IsValue1 => Value1 != null; + public bool IsInput => Input != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.TestCaseDefinitionVariant2? Value2 { get; init; } + public global::RetellAI.TestCaseDefinitionVariant2? TestCaseDefinitionVariant2 { get; init; } #else - public global::RetellAI.TestCaseDefinitionVariant2? Value2 { get; } + public global::RetellAI.TestCaseDefinitionVariant2? TestCaseDefinitionVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TestCaseDefinitionVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsTestCaseDefinitionVariant2 => TestCaseDefinitionVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.TestCaseDefinitionInput?(TestCaseDefinition @this) => @this.Value1; + public static implicit operator global::RetellAI.TestCaseDefinitionInput?(TestCaseDefinition @this) => @this.Input; /// /// /// public TestCaseDefinition(global::RetellAI.TestCaseDefinitionInput? value) { - Value1 = value; + Input = value; } /// @@ -68,42 +68,42 @@ public TestCaseDefinition(global::RetellAI.TestCaseDefinitionInput? value) /// /// /// - public static implicit operator global::RetellAI.TestCaseDefinitionVariant2?(TestCaseDefinition @this) => @this.Value2; + public static implicit operator global::RetellAI.TestCaseDefinitionVariant2?(TestCaseDefinition @this) => @this.TestCaseDefinitionVariant2; /// /// /// public TestCaseDefinition(global::RetellAI.TestCaseDefinitionVariant2? value) { - Value2 = value; + TestCaseDefinitionVariant2 = value; } /// /// /// public TestCaseDefinition( - global::RetellAI.TestCaseDefinitionInput? value1, - global::RetellAI.TestCaseDefinitionVariant2? value2 + global::RetellAI.TestCaseDefinitionInput? input, + global::RetellAI.TestCaseDefinitionVariant2? testCaseDefinitionVariant2 ) { - Value1 = value1; - Value2 = value2; + Input = input; + TestCaseDefinitionVariant2 = testCaseDefinitionVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + TestCaseDefinitionVariant2 as object ?? + Input as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Input?.ToString() ?? + TestCaseDefinitionVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsInput && IsTestCaseDefinitionVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? input = null, + global::System.Func? testCaseDefinitionVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsInput && input != null) { - return value1(Value1!); + return input(Input!); } - else if (IsValue2 && value2 != null) + else if (IsTestCaseDefinitionVariant2 && testCaseDefinitionVariant2 != null) { - return value2(Value2!); + return testCaseDefinitionVariant2(TestCaseDefinitionVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? input = null, + global::System.Action? testCaseDefinitionVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsInput) { - value1?.Invoke(Value1!); + input?.Invoke(Input!); } - else if (IsValue2) + else if (IsTestCaseDefinitionVariant2) { - value2?.Invoke(Value2!); + testCaseDefinitionVariant2?.Invoke(TestCaseDefinitionVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Input, typeof(global::RetellAI.TestCaseDefinitionInput), - Value2, + TestCaseDefinitionVariant2, typeof(global::RetellAI.TestCaseDefinitionVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(TestCaseDefinition other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Input, other.Input) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(TestCaseDefinitionVariant2, other.TestCaseDefinitionVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.Tool.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.Tool.g.cs index ab72d9f..2f3a135 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.Tool.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.Tool.g.cs @@ -217,18 +217,18 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.MCPTool? MCP { get; init; } + public global::RetellAI.MCPTool? Mcp { get; init; } #else - public global::RetellAI.MCPTool? MCP { get; } + public global::RetellAI.MCPTool? Mcp { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MCP))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Mcp))] #endif - public bool IsMCP => MCP != null; + public bool IsMcp => Mcp != null; /// /// /// @@ -453,14 +453,14 @@ public Tool(global::RetellAI.CancelTransferTool? value) /// /// /// - public static implicit operator global::RetellAI.MCPTool?(Tool @this) => @this.MCP; + public static implicit operator global::RetellAI.MCPTool?(Tool @this) => @this.Mcp; /// /// /// public Tool(global::RetellAI.MCPTool? value) { - MCP = value; + Mcp = value; } /// @@ -479,7 +479,7 @@ public Tool( global::RetellAI.ExtractDynamicVariableTool? extractDynamicVariable, global::RetellAI.BridgeTransferTool? bridgeTransfer, global::RetellAI.CancelTransferTool? cancelTransfer, - global::RetellAI.MCPTool? mCP + global::RetellAI.MCPTool? mcp ) { EndCall = endCall; @@ -494,14 +494,14 @@ public Tool( ExtractDynamicVariable = extractDynamicVariable; BridgeTransfer = bridgeTransfer; CancelTransfer = cancelTransfer; - MCP = mCP; + Mcp = mcp; } /// /// /// public object? Object => - MCP as object ?? + Mcp as object ?? CancelTransfer as object ?? BridgeTransfer as object ?? ExtractDynamicVariable as object ?? @@ -532,7 +532,7 @@ EndCall as object ExtractDynamicVariable?.ToString() ?? BridgeTransfer?.ToString() ?? CancelTransfer?.ToString() ?? - MCP?.ToString() + Mcp?.ToString() ; /// @@ -540,7 +540,7 @@ EndCall as object /// public bool Validate() { - return IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && IsBridgeTransfer && !IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && IsCancelTransfer && !IsMCP || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && IsMCP; + return IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && IsBridgeTransfer && !IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && IsCancelTransfer && !IsMcp || !IsEndCall && !IsTransferCall && !IsCheckAvailabilityCal && !IsBookAppointmentCal && !IsAgentSwap && !IsPressDigit && !IsSendSM && !IsCustom && !IsCode && !IsExtractDynamicVariable && !IsBridgeTransfer && !IsCancelTransfer && IsMcp; } /// @@ -559,7 +559,7 @@ public bool Validate() global::System.Func? extractDynamicVariable = null, global::System.Func? bridgeTransfer = null, global::System.Func? cancelTransfer = null, - global::System.Func? mCP = null, + global::System.Func? mcp = null, bool validate = true) { if (validate) @@ -615,9 +615,9 @@ public bool Validate() { return cancelTransfer(CancelTransfer!); } - else if (IsMCP && mCP != null) + else if (IsMcp && mcp != null) { - return mCP(MCP!); + return mcp(Mcp!); } return default(TResult); @@ -639,7 +639,7 @@ public void Match( global::System.Action? extractDynamicVariable = null, global::System.Action? bridgeTransfer = null, global::System.Action? cancelTransfer = null, - global::System.Action? mCP = null, + global::System.Action? mcp = null, bool validate = true) { if (validate) @@ -695,9 +695,9 @@ public void Match( { cancelTransfer?.Invoke(CancelTransfer!); } - else if (IsMCP) + else if (IsMcp) { - mCP?.Invoke(MCP!); + mcp?.Invoke(Mcp!); } } @@ -732,7 +732,7 @@ public override int GetHashCode() typeof(global::RetellAI.BridgeTransferTool), CancelTransfer, typeof(global::RetellAI.CancelTransferTool), - MCP, + Mcp, typeof(global::RetellAI.MCPTool), }; const int offset = unchecked((int)2166136261); @@ -762,7 +762,7 @@ public bool Equals(Tool other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ExtractDynamicVariable, other.ExtractDynamicVariable) && global::System.Collections.Generic.EqualityComparer.Default.Equals(BridgeTransfer, other.BridgeTransfer) && global::System.Collections.Generic.EqualityComparer.Default.Equals(CancelTransfer, other.CancelTransfer) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MCP, other.MCP) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Mcp, other.Mcp) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.ToolMockInputMatchRule.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.ToolMockInputMatchRule.g.cs index df2536c..d92f0a0 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.ToolMockInputMatchRule.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.ToolMockInputMatchRule.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ToolMockInputMatchRuleVariant1? Value1 { get; init; } + public global::RetellAI.ToolMockInputMatchRuleVariant1? ToolMockInputMatchRuleVariant1 { get; init; } #else - public global::RetellAI.ToolMockInputMatchRuleVariant1? Value1 { get; } + public global::RetellAI.ToolMockInputMatchRuleVariant1? ToolMockInputMatchRuleVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolMockInputMatchRuleVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsToolMockInputMatchRuleVariant1 => ToolMockInputMatchRuleVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ToolMockInputMatchRuleVariant2? Value2 { get; init; } + public global::RetellAI.ToolMockInputMatchRuleVariant2? ToolMockInputMatchRuleVariant2 { get; init; } #else - public global::RetellAI.ToolMockInputMatchRuleVariant2? Value2 { get; } + public global::RetellAI.ToolMockInputMatchRuleVariant2? ToolMockInputMatchRuleVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ToolMockInputMatchRuleVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsToolMockInputMatchRuleVariant2 => ToolMockInputMatchRuleVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.ToolMockInputMatchRuleVariant1?(ToolMockInputMatchRule @this) => @this.Value1; + public static implicit operator global::RetellAI.ToolMockInputMatchRuleVariant1?(ToolMockInputMatchRule @this) => @this.ToolMockInputMatchRuleVariant1; /// /// /// public ToolMockInputMatchRule(global::RetellAI.ToolMockInputMatchRuleVariant1? value) { - Value1 = value; + ToolMockInputMatchRuleVariant1 = value; } /// @@ -68,42 +68,42 @@ public ToolMockInputMatchRule(global::RetellAI.ToolMockInputMatchRuleVariant1? v /// /// /// - public static implicit operator global::RetellAI.ToolMockInputMatchRuleVariant2?(ToolMockInputMatchRule @this) => @this.Value2; + public static implicit operator global::RetellAI.ToolMockInputMatchRuleVariant2?(ToolMockInputMatchRule @this) => @this.ToolMockInputMatchRuleVariant2; /// /// /// public ToolMockInputMatchRule(global::RetellAI.ToolMockInputMatchRuleVariant2? value) { - Value2 = value; + ToolMockInputMatchRuleVariant2 = value; } /// /// /// public ToolMockInputMatchRule( - global::RetellAI.ToolMockInputMatchRuleVariant1? value1, - global::RetellAI.ToolMockInputMatchRuleVariant2? value2 + global::RetellAI.ToolMockInputMatchRuleVariant1? toolMockInputMatchRuleVariant1, + global::RetellAI.ToolMockInputMatchRuleVariant2? toolMockInputMatchRuleVariant2 ) { - Value1 = value1; - Value2 = value2; + ToolMockInputMatchRuleVariant1 = toolMockInputMatchRuleVariant1; + ToolMockInputMatchRuleVariant2 = toolMockInputMatchRuleVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + ToolMockInputMatchRuleVariant2 as object ?? + ToolMockInputMatchRuleVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + ToolMockInputMatchRuleVariant1?.ToString() ?? + ToolMockInputMatchRuleVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; + return IsToolMockInputMatchRuleVariant1 && !IsToolMockInputMatchRuleVariant2 || !IsToolMockInputMatchRuleVariant1 && IsToolMockInputMatchRuleVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? toolMockInputMatchRuleVariant1 = null, + global::System.Func? toolMockInputMatchRuleVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsToolMockInputMatchRuleVariant1 && toolMockInputMatchRuleVariant1 != null) { - return value1(Value1!); + return toolMockInputMatchRuleVariant1(ToolMockInputMatchRuleVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsToolMockInputMatchRuleVariant2 && toolMockInputMatchRuleVariant2 != null) { - return value2(Value2!); + return toolMockInputMatchRuleVariant2(ToolMockInputMatchRuleVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? toolMockInputMatchRuleVariant1 = null, + global::System.Action? toolMockInputMatchRuleVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsToolMockInputMatchRuleVariant1) { - value1?.Invoke(Value1!); + toolMockInputMatchRuleVariant1?.Invoke(ToolMockInputMatchRuleVariant1!); } - else if (IsValue2) + else if (IsToolMockInputMatchRuleVariant2) { - value2?.Invoke(Value2!); + toolMockInputMatchRuleVariant2?.Invoke(ToolMockInputMatchRuleVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + ToolMockInputMatchRuleVariant1, typeof(global::RetellAI.ToolMockInputMatchRuleVariant1), - Value2, + ToolMockInputMatchRuleVariant2, typeof(global::RetellAI.ToolMockInputMatchRuleVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ToolMockInputMatchRule other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolMockInputMatchRuleVariant1, other.ToolMockInputMatchRuleVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ToolMockInputMatchRuleVariant2, other.ToolMockInputMatchRuleVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TransferCallNode.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TransferCallNode.g.cs index 3778f1f..f1e640a 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.TransferCallNode.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TransferCallNode.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeBase? Value1 { get; init; } + public global::RetellAI.NodeBase? Base { get; init; } #else - public global::RetellAI.NodeBase? Value1 { get; } + public global::RetellAI.NodeBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue1 => Value1 != null; + public bool IsBase => Base != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.TransferCallNodeVariant2? Value2 { get; init; } + public global::RetellAI.TransferCallNodeVariant2? TransferCallNodeVariant2 { get; init; } #else - public global::RetellAI.TransferCallNodeVariant2? Value2 { get; } + public global::RetellAI.TransferCallNodeVariant2? TransferCallNodeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TransferCallNodeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsTransferCallNodeVariant2 => TransferCallNodeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeBase?(TransferCallNode @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeBase?(TransferCallNode @this) => @this.Base; /// /// /// public TransferCallNode(global::RetellAI.NodeBase? value) { - Value1 = value; + Base = value; } /// @@ -68,42 +68,42 @@ public TransferCallNode(global::RetellAI.NodeBase? value) /// /// /// - public static implicit operator global::RetellAI.TransferCallNodeVariant2?(TransferCallNode @this) => @this.Value2; + public static implicit operator global::RetellAI.TransferCallNodeVariant2?(TransferCallNode @this) => @this.TransferCallNodeVariant2; /// /// /// public TransferCallNode(global::RetellAI.TransferCallNodeVariant2? value) { - Value2 = value; + TransferCallNodeVariant2 = value; } /// /// /// public TransferCallNode( - global::RetellAI.NodeBase? value1, - global::RetellAI.TransferCallNodeVariant2? value2 + global::RetellAI.NodeBase? @base, + global::RetellAI.TransferCallNodeVariant2? transferCallNodeVariant2 ) { - Value1 = value1; - Value2 = value2; + Base = @base; + TransferCallNodeVariant2 = transferCallNodeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + TransferCallNodeVariant2 as object ?? + Base as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Base?.ToString() ?? + TransferCallNodeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsBase && IsTransferCallNodeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? @base = null, + global::System.Func? transferCallNodeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsBase && @base != null) { - return value1(Value1!); + return @base(Base!); } - else if (IsValue2 && value2 != null) + else if (IsTransferCallNodeVariant2 && transferCallNodeVariant2 != null) { - return value2(Value2!); + return transferCallNodeVariant2(TransferCallNodeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? @base = null, + global::System.Action? transferCallNodeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsBase) { - value1?.Invoke(Value1!); + @base?.Invoke(Base!); } - else if (IsValue2) + else if (IsTransferCallNodeVariant2) { - value2?.Invoke(Value2!); + transferCallNodeVariant2?.Invoke(TransferCallNodeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Base, typeof(global::RetellAI.NodeBase), - Value2, + TransferCallNodeVariant2, typeof(global::RetellAI.TransferCallNodeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(TransferCallNode other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(TransferCallNodeVariant2, other.TransferCallNodeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.TransferFailedEdge.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.TransferFailedEdge.g.cs index 207e3f2..b120856 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.TransferFailedEdge.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.TransferFailedEdge.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeEdge? Value1 { get; init; } + public global::RetellAI.NodeEdge? Node { get; init; } #else - public global::RetellAI.NodeEdge? Value1 { get; } + public global::RetellAI.NodeEdge? Node { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Node))] #endif - public bool IsValue1 => Value1 != null; + public bool IsNode => Node != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.TransferFailedEdgeVariant2? Value2 { get; init; } + public global::RetellAI.TransferFailedEdgeVariant2? TransferFailedEdgeVariant2 { get; init; } #else - public global::RetellAI.TransferFailedEdgeVariant2? Value2 { get; } + public global::RetellAI.TransferFailedEdgeVariant2? TransferFailedEdgeVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TransferFailedEdgeVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsTransferFailedEdgeVariant2 => TransferFailedEdgeVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.NodeEdge?(TransferFailedEdge @this) => @this.Value1; + public static implicit operator global::RetellAI.NodeEdge?(TransferFailedEdge @this) => @this.Node; /// /// /// public TransferFailedEdge(global::RetellAI.NodeEdge? value) { - Value1 = value; + Node = value; } /// @@ -68,42 +68,42 @@ public TransferFailedEdge(global::RetellAI.NodeEdge? value) /// /// /// - public static implicit operator global::RetellAI.TransferFailedEdgeVariant2?(TransferFailedEdge @this) => @this.Value2; + public static implicit operator global::RetellAI.TransferFailedEdgeVariant2?(TransferFailedEdge @this) => @this.TransferFailedEdgeVariant2; /// /// /// public TransferFailedEdge(global::RetellAI.TransferFailedEdgeVariant2? value) { - Value2 = value; + TransferFailedEdgeVariant2 = value; } /// /// /// public TransferFailedEdge( - global::RetellAI.NodeEdge? value1, - global::RetellAI.TransferFailedEdgeVariant2? value2 + global::RetellAI.NodeEdge? node, + global::RetellAI.TransferFailedEdgeVariant2? transferFailedEdgeVariant2 ) { - Value1 = value1; - Value2 = value2; + Node = node; + TransferFailedEdgeVariant2 = transferFailedEdgeVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + TransferFailedEdgeVariant2 as object ?? + Node as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Node?.ToString() ?? + TransferFailedEdgeVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsNode && IsTransferFailedEdgeVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? node = null, + global::System.Func? transferFailedEdgeVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsNode && node != null) { - return value1(Value1!); + return node(Node!); } - else if (IsValue2 && value2 != null) + else if (IsTransferFailedEdgeVariant2 && transferFailedEdgeVariant2 != null) { - return value2(Value2!); + return transferFailedEdgeVariant2(TransferFailedEdgeVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? node = null, + global::System.Action? transferFailedEdgeVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsNode) { - value1?.Invoke(Value1!); + node?.Invoke(Node!); } - else if (IsValue2) + else if (IsTransferFailedEdgeVariant2) { - value2?.Invoke(Value2!); + transferFailedEdgeVariant2?.Invoke(TransferFailedEdgeVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Node, typeof(global::RetellAI.NodeEdge), - Value2, + TransferFailedEdgeVariant2, typeof(global::RetellAI.TransferFailedEdgeVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(TransferFailedEdge other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Node, other.Node) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(TransferFailedEdgeVariant2, other.TransferFailedEdgeVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateOrganizationRequest.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateOrganizationRequest.g.cs index 0ac71f5..8be521d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.UpdateOrganizationRequest.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UpdateOrganizationRequest.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.CreateOrganizationRequest? Value1 { get; init; } + public global::RetellAI.CreateOrganizationRequest? Create { get; init; } #else - public global::RetellAI.CreateOrganizationRequest? Value1 { get; } + public global::RetellAI.CreateOrganizationRequest? Create { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Create))] #endif - public bool IsValue1 => Value1 != null; + public bool IsCreate => Create != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.UpdateOrganizationRequestVariant2? Value2 { get; init; } + public global::RetellAI.UpdateOrganizationRequestVariant2? UpdateOrganizationRequestVariant2 { get; init; } #else - public global::RetellAI.UpdateOrganizationRequestVariant2? Value2 { get; } + public global::RetellAI.UpdateOrganizationRequestVariant2? UpdateOrganizationRequestVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UpdateOrganizationRequestVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsUpdateOrganizationRequestVariant2 => UpdateOrganizationRequestVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.CreateOrganizationRequest?(UpdateOrganizationRequest @this) => @this.Value1; + public static implicit operator global::RetellAI.CreateOrganizationRequest?(UpdateOrganizationRequest @this) => @this.Create; /// /// /// public UpdateOrganizationRequest(global::RetellAI.CreateOrganizationRequest? value) { - Value1 = value; + Create = value; } /// @@ -68,42 +68,42 @@ public UpdateOrganizationRequest(global::RetellAI.CreateOrganizationRequest? val /// /// /// - public static implicit operator global::RetellAI.UpdateOrganizationRequestVariant2?(UpdateOrganizationRequest @this) => @this.Value2; + public static implicit operator global::RetellAI.UpdateOrganizationRequestVariant2?(UpdateOrganizationRequest @this) => @this.UpdateOrganizationRequestVariant2; /// /// /// public UpdateOrganizationRequest(global::RetellAI.UpdateOrganizationRequestVariant2? value) { - Value2 = value; + UpdateOrganizationRequestVariant2 = value; } /// /// /// public UpdateOrganizationRequest( - global::RetellAI.CreateOrganizationRequest? value1, - global::RetellAI.UpdateOrganizationRequestVariant2? value2 + global::RetellAI.CreateOrganizationRequest? create, + global::RetellAI.UpdateOrganizationRequestVariant2? updateOrganizationRequestVariant2 ) { - Value1 = value1; - Value2 = value2; + Create = create; + UpdateOrganizationRequestVariant2 = updateOrganizationRequestVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + UpdateOrganizationRequestVariant2 as object ?? + Create as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + Create?.ToString() ?? + UpdateOrganizationRequestVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsCreate && IsUpdateOrganizationRequestVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? create = null, + global::System.Func? updateOrganizationRequestVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsCreate && create != null) { - return value1(Value1!); + return create(Create!); } - else if (IsValue2 && value2 != null) + else if (IsUpdateOrganizationRequestVariant2 && updateOrganizationRequestVariant2 != null) { - return value2(Value2!); + return updateOrganizationRequestVariant2(UpdateOrganizationRequestVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? create = null, + global::System.Action? updateOrganizationRequestVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsCreate) { - value1?.Invoke(Value1!); + create?.Invoke(Create!); } - else if (IsValue2) + else if (IsUpdateOrganizationRequestVariant2) { - value2?.Invoke(Value2!); + updateOrganizationRequestVariant2?.Invoke(UpdateOrganizationRequestVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Create, typeof(global::RetellAI.CreateOrganizationRequest), - Value2, + UpdateOrganizationRequestVariant2, typeof(global::RetellAI.UpdateOrganizationRequestVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(UpdateOrganizationRequest other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Create, other.Create) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UpdateOrganizationRequestVariant2, other.UpdateOrganizationRequestVariant2) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.UtteranceOrToolCall.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.UtteranceOrToolCall.g.cs index 2ffe99a..d2b9c4d 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.UtteranceOrToolCall.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.UtteranceOrToolCall.g.cs @@ -13,86 +13,86 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.Utterance? Value1 { get; init; } + public global::RetellAI.Utterance? Utterance { get; init; } #else - public global::RetellAI.Utterance? Value1 { get; } + public global::RetellAI.Utterance? Utterance { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Utterance))] #endif - public bool IsValue1 => Value1 != null; + public bool IsUtterance => Utterance != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ToolCallInvocationUtterance? Value2 { get; init; } + public global::RetellAI.ToolCallInvocationUtterance? Invocation { get; init; } #else - public global::RetellAI.ToolCallInvocationUtterance? Value2 { get; } + public global::RetellAI.ToolCallInvocationUtterance? Invocation { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Invocation))] #endif - public bool IsValue2 => Value2 != null; + public bool IsInvocation => Invocation != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.ToolCallResultUtterance? Value3 { get; init; } + public global::RetellAI.ToolCallResultUtterance? Result { get; init; } #else - public global::RetellAI.ToolCallResultUtterance? Value3 { get; } + public global::RetellAI.ToolCallResultUtterance? Result { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Result))] #endif - public bool IsValue3 => Value3 != null; + public bool IsResult => Result != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.NodeTransitionUtterance? Value4 { get; init; } + public global::RetellAI.NodeTransitionUtterance? NodeTransition { get; init; } #else - public global::RetellAI.NodeTransitionUtterance? Value4 { get; } + public global::RetellAI.NodeTransitionUtterance? NodeTransition { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(NodeTransition))] #endif - public bool IsValue4 => Value4 != null; + public bool IsNodeTransition => NodeTransition != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.DTMFUtterance? Value5 { get; init; } + public global::RetellAI.DTMFUtterance? Dtmf { get; init; } #else - public global::RetellAI.DTMFUtterance? Value5 { get; } + public global::RetellAI.DTMFUtterance? Dtmf { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value5))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Dtmf))] #endif - public bool IsValue5 => Value5 != null; + public bool IsDtmf => Dtmf != null; /// /// /// @@ -101,14 +101,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.Utterance?(UtteranceOrToolCall @this) => @this.Value1; + public static implicit operator global::RetellAI.Utterance?(UtteranceOrToolCall @this) => @this.Utterance; /// /// /// public UtteranceOrToolCall(global::RetellAI.Utterance? value) { - Value1 = value; + Utterance = value; } /// @@ -119,14 +119,14 @@ public UtteranceOrToolCall(global::RetellAI.Utterance? value) /// /// /// - public static implicit operator global::RetellAI.ToolCallInvocationUtterance?(UtteranceOrToolCall @this) => @this.Value2; + public static implicit operator global::RetellAI.ToolCallInvocationUtterance?(UtteranceOrToolCall @this) => @this.Invocation; /// /// /// public UtteranceOrToolCall(global::RetellAI.ToolCallInvocationUtterance? value) { - Value2 = value; + Invocation = value; } /// @@ -137,14 +137,14 @@ public UtteranceOrToolCall(global::RetellAI.ToolCallInvocationUtterance? value) /// /// /// - public static implicit operator global::RetellAI.ToolCallResultUtterance?(UtteranceOrToolCall @this) => @this.Value3; + public static implicit operator global::RetellAI.ToolCallResultUtterance?(UtteranceOrToolCall @this) => @this.Result; /// /// /// public UtteranceOrToolCall(global::RetellAI.ToolCallResultUtterance? value) { - Value3 = value; + Result = value; } /// @@ -155,14 +155,14 @@ public UtteranceOrToolCall(global::RetellAI.ToolCallResultUtterance? value) /// /// /// - public static implicit operator global::RetellAI.NodeTransitionUtterance?(UtteranceOrToolCall @this) => @this.Value4; + public static implicit operator global::RetellAI.NodeTransitionUtterance?(UtteranceOrToolCall @this) => @this.NodeTransition; /// /// /// public UtteranceOrToolCall(global::RetellAI.NodeTransitionUtterance? value) { - Value4 = value; + NodeTransition = value; } /// @@ -173,54 +173,54 @@ public UtteranceOrToolCall(global::RetellAI.NodeTransitionUtterance? value) /// /// /// - public static implicit operator global::RetellAI.DTMFUtterance?(UtteranceOrToolCall @this) => @this.Value5; + public static implicit operator global::RetellAI.DTMFUtterance?(UtteranceOrToolCall @this) => @this.Dtmf; /// /// /// public UtteranceOrToolCall(global::RetellAI.DTMFUtterance? value) { - Value5 = value; + Dtmf = value; } /// /// /// public UtteranceOrToolCall( - global::RetellAI.Utterance? value1, - global::RetellAI.ToolCallInvocationUtterance? value2, - global::RetellAI.ToolCallResultUtterance? value3, - global::RetellAI.NodeTransitionUtterance? value4, - global::RetellAI.DTMFUtterance? value5 + global::RetellAI.Utterance? utterance, + global::RetellAI.ToolCallInvocationUtterance? invocation, + global::RetellAI.ToolCallResultUtterance? result, + global::RetellAI.NodeTransitionUtterance? nodeTransition, + global::RetellAI.DTMFUtterance? dtmf ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - Value5 = value5; + Utterance = utterance; + Invocation = invocation; + Result = result; + NodeTransition = nodeTransition; + Dtmf = dtmf; } /// /// /// public object? Object => - Value5 as object ?? - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object + Dtmf as object ?? + NodeTransition as object ?? + Result as object ?? + Invocation as object ?? + Utterance as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() ?? - Value4?.ToString() ?? - Value5?.ToString() + Utterance?.ToString() ?? + Invocation?.ToString() ?? + Result?.ToString() ?? + NodeTransition?.ToString() ?? + Dtmf?.ToString() ; /// @@ -228,18 +228,18 @@ Value1 as object /// public bool Validate() { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4 && !IsValue5 || !IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 && IsValue5; + return IsUtterance && !IsInvocation && !IsResult && !IsNodeTransition && !IsDtmf || !IsUtterance && IsInvocation && !IsResult && !IsNodeTransition && !IsDtmf || !IsUtterance && !IsInvocation && IsResult && !IsNodeTransition && !IsDtmf || !IsUtterance && !IsInvocation && !IsResult && IsNodeTransition && !IsDtmf || !IsUtterance && !IsInvocation && !IsResult && !IsNodeTransition && IsDtmf; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - global::System.Func? value5 = null, + global::System.Func? utterance = null, + global::System.Func? invocation = null, + global::System.Func? result = null, + global::System.Func? nodeTransition = null, + global::System.Func? dtmf = null, bool validate = true) { if (validate) @@ -247,25 +247,25 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsUtterance && utterance != null) { - return value1(Value1!); + return utterance(Utterance!); } - else if (IsValue2 && value2 != null) + else if (IsInvocation && invocation != null) { - return value2(Value2!); + return invocation(Invocation!); } - else if (IsValue3 && value3 != null) + else if (IsResult && result != null) { - return value3(Value3!); + return result(Result!); } - else if (IsValue4 && value4 != null) + else if (IsNodeTransition && nodeTransition != null) { - return value4(Value4!); + return nodeTransition(NodeTransition!); } - else if (IsValue5 && value5 != null) + else if (IsDtmf && dtmf != null) { - return value5(Value5!); + return dtmf(Dtmf!); } return default(TResult); @@ -275,11 +275,11 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - global::System.Action? value5 = null, + global::System.Action? utterance = null, + global::System.Action? invocation = null, + global::System.Action? result = null, + global::System.Action? nodeTransition = null, + global::System.Action? dtmf = null, bool validate = true) { if (validate) @@ -287,25 +287,25 @@ public void Match( Validate(); } - if (IsValue1) + if (IsUtterance) { - value1?.Invoke(Value1!); + utterance?.Invoke(Utterance!); } - else if (IsValue2) + else if (IsInvocation) { - value2?.Invoke(Value2!); + invocation?.Invoke(Invocation!); } - else if (IsValue3) + else if (IsResult) { - value3?.Invoke(Value3!); + result?.Invoke(Result!); } - else if (IsValue4) + else if (IsNodeTransition) { - value4?.Invoke(Value4!); + nodeTransition?.Invoke(NodeTransition!); } - else if (IsValue5) + else if (IsDtmf) { - value5?.Invoke(Value5!); + dtmf?.Invoke(Dtmf!); } } @@ -316,15 +316,15 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + Utterance, typeof(global::RetellAI.Utterance), - Value2, + Invocation, typeof(global::RetellAI.ToolCallInvocationUtterance), - Value3, + Result, typeof(global::RetellAI.ToolCallResultUtterance), - Value4, + NodeTransition, typeof(global::RetellAI.NodeTransitionUtterance), - Value5, + Dtmf, typeof(global::RetellAI.DTMFUtterance), }; const int offset = unchecked((int)2166136261); @@ -342,11 +342,11 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(UtteranceOrToolCall other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value5, other.Value5) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Utterance, other.Utterance) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Invocation, other.Invocation) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Result, other.Result) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(NodeTransition, other.NodeTransition) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Dtmf, other.Dtmf) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V2PhoneCallResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V2PhoneCallResponse.g.cs index 5374741..adc6cf7 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.V2PhoneCallResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V2PhoneCallResponse.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.V2PhoneCallResponseVariant1? Value1 { get; init; } + public global::RetellAI.V2PhoneCallResponseVariant1? V2PhoneCallResponseVariant1 { get; init; } #else - public global::RetellAI.V2PhoneCallResponseVariant1? Value1 { get; } + public global::RetellAI.V2PhoneCallResponseVariant1? V2PhoneCallResponseVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(V2PhoneCallResponseVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsV2PhoneCallResponseVariant1 => V2PhoneCallResponseVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.V2CallBase? Value2 { get; init; } + public global::RetellAI.V2CallBase? Base { get; init; } #else - public global::RetellAI.V2CallBase? Value2 { get; } + public global::RetellAI.V2CallBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue2 => Value2 != null; + public bool IsBase => Base != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.V2PhoneCallResponseVariant1?(V2PhoneCallResponse @this) => @this.Value1; + public static implicit operator global::RetellAI.V2PhoneCallResponseVariant1?(V2PhoneCallResponse @this) => @this.V2PhoneCallResponseVariant1; /// /// /// public V2PhoneCallResponse(global::RetellAI.V2PhoneCallResponseVariant1? value) { - Value1 = value; + V2PhoneCallResponseVariant1 = value; } /// @@ -68,42 +68,42 @@ public V2PhoneCallResponse(global::RetellAI.V2PhoneCallResponseVariant1? value) /// /// /// - public static implicit operator global::RetellAI.V2CallBase?(V2PhoneCallResponse @this) => @this.Value2; + public static implicit operator global::RetellAI.V2CallBase?(V2PhoneCallResponse @this) => @this.Base; /// /// /// public V2PhoneCallResponse(global::RetellAI.V2CallBase? value) { - Value2 = value; + Base = value; } /// /// /// public V2PhoneCallResponse( - global::RetellAI.V2PhoneCallResponseVariant1? value1, - global::RetellAI.V2CallBase? value2 + global::RetellAI.V2PhoneCallResponseVariant1? v2PhoneCallResponseVariant1, + global::RetellAI.V2CallBase? @base ) { - Value1 = value1; - Value2 = value2; + V2PhoneCallResponseVariant1 = v2PhoneCallResponseVariant1; + Base = @base; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Base as object ?? + V2PhoneCallResponseVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + V2PhoneCallResponseVariant1?.ToString() ?? + Base?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsV2PhoneCallResponseVariant1 && IsBase; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? v2PhoneCallResponseVariant1 = null, + global::System.Func? @base = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsV2PhoneCallResponseVariant1 && v2PhoneCallResponseVariant1 != null) { - return value1(Value1!); + return v2PhoneCallResponseVariant1(V2PhoneCallResponseVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsBase && @base != null) { - return value2(Value2!); + return @base(Base!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? v2PhoneCallResponseVariant1 = null, + global::System.Action? @base = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsV2PhoneCallResponseVariant1) { - value1?.Invoke(Value1!); + v2PhoneCallResponseVariant1?.Invoke(V2PhoneCallResponseVariant1!); } - else if (IsValue2) + else if (IsBase) { - value2?.Invoke(Value2!); + @base?.Invoke(Base!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + V2PhoneCallResponseVariant1, typeof(global::RetellAI.V2PhoneCallResponseVariant1), - Value2, + Base, typeof(global::RetellAI.V2CallBase), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(V2PhoneCallResponse other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(V2PhoneCallResponseVariant1, other.V2PhoneCallResponseVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) ; } diff --git a/src/libs/RetellAI/Generated/RetellAI.Models.V2WebCallResponse.g.cs b/src/libs/RetellAI/Generated/RetellAI.Models.V2WebCallResponse.g.cs index 4662ab0..59209da 100644 --- a/src/libs/RetellAI/Generated/RetellAI.Models.V2WebCallResponse.g.cs +++ b/src/libs/RetellAI/Generated/RetellAI.Models.V2WebCallResponse.g.cs @@ -13,35 +13,35 @@ namespace RetellAI /// /// #if NET6_0_OR_GREATER - public global::RetellAI.V2WebCallResponseVariant1? Value1 { get; init; } + public global::RetellAI.V2WebCallResponseVariant1? V2WebCallResponseVariant1 { get; init; } #else - public global::RetellAI.V2WebCallResponseVariant1? Value1 { get; } + public global::RetellAI.V2WebCallResponseVariant1? V2WebCallResponseVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(V2WebCallResponseVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsV2WebCallResponseVariant1 => V2WebCallResponseVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::RetellAI.V2CallBase? Value2 { get; init; } + public global::RetellAI.V2CallBase? Base { get; init; } #else - public global::RetellAI.V2CallBase? Value2 { get; } + public global::RetellAI.V2CallBase? Base { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Base))] #endif - public bool IsValue2 => Value2 != null; + public bool IsBase => Base != null; /// /// /// @@ -50,14 +50,14 @@ namespace RetellAI /// /// /// - public static implicit operator global::RetellAI.V2WebCallResponseVariant1?(V2WebCallResponse @this) => @this.Value1; + public static implicit operator global::RetellAI.V2WebCallResponseVariant1?(V2WebCallResponse @this) => @this.V2WebCallResponseVariant1; /// /// /// public V2WebCallResponse(global::RetellAI.V2WebCallResponseVariant1? value) { - Value1 = value; + V2WebCallResponseVariant1 = value; } /// @@ -68,42 +68,42 @@ public V2WebCallResponse(global::RetellAI.V2WebCallResponseVariant1? value) /// /// /// - public static implicit operator global::RetellAI.V2CallBase?(V2WebCallResponse @this) => @this.Value2; + public static implicit operator global::RetellAI.V2CallBase?(V2WebCallResponse @this) => @this.Base; /// /// /// public V2WebCallResponse(global::RetellAI.V2CallBase? value) { - Value2 = value; + Base = value; } /// /// /// public V2WebCallResponse( - global::RetellAI.V2WebCallResponseVariant1? value1, - global::RetellAI.V2CallBase? value2 + global::RetellAI.V2WebCallResponseVariant1? v2WebCallResponseVariant1, + global::RetellAI.V2CallBase? @base ) { - Value1 = value1; - Value2 = value2; + V2WebCallResponseVariant1 = v2WebCallResponseVariant1; + Base = @base; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + Base as object ?? + V2WebCallResponseVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + V2WebCallResponseVariant1?.ToString() ?? + Base?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 && IsValue2; + return IsV2WebCallResponseVariant1 && IsBase; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? v2WebCallResponseVariant1 = null, + global::System.Func? @base = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsV2WebCallResponseVariant1 && v2WebCallResponseVariant1 != null) { - return value1(Value1!); + return v2WebCallResponseVariant1(V2WebCallResponseVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsBase && @base != null) { - return value2(Value2!); + return @base(Base!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? v2WebCallResponseVariant1 = null, + global::System.Action? @base = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsV2WebCallResponseVariant1) { - value1?.Invoke(Value1!); + v2WebCallResponseVariant1?.Invoke(V2WebCallResponseVariant1!); } - else if (IsValue2) + else if (IsBase) { - value2?.Invoke(Value2!); + @base?.Invoke(Base!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + V2WebCallResponseVariant1, typeof(global::RetellAI.V2WebCallResponseVariant1), - Value2, + Base, typeof(global::RetellAI.V2CallBase), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(V2WebCallResponse other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(V2WebCallResponseVariant1, other.V2WebCallResponseVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Base, other.Base) ; }