diff --git a/src/libs/Botpress/Generated/Botpress.ChatClient.ChatCreateMessage.g.cs b/src/libs/Botpress/Generated/Botpress.ChatClient.ChatCreateMessage.g.cs index 11dd2b7..26b0950 100644 --- a/src/libs/Botpress/Generated/Botpress.ChatClient.ChatCreateMessage.g.cs +++ b/src/libs/Botpress/Generated/Botpress.ChatClient.ChatCreateMessage.g.cs @@ -450,7 +450,7 @@ partial void ProcessChatCreateMessageResponseContent( /// public async global::System.Threading.Tasks.Task ChatCreateMessageAsync( string xUserKey, - global::Botpress.OneOf payload, + global::Botpress.OneOf payload, string conversationId, global::Botpress.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/Botpress/Generated/Botpress.IChatClient.ChatCreateMessage.g.cs b/src/libs/Botpress/Generated/Botpress.IChatClient.ChatCreateMessage.g.cs index 388964f..52d8227 100644 --- a/src/libs/Botpress/Generated/Botpress.IChatClient.ChatCreateMessage.g.cs +++ b/src/libs/Botpress/Generated/Botpress.IChatClient.ChatCreateMessage.g.cs @@ -35,7 +35,7 @@ public partial interface IChatClient /// global::System.Threading.Tasks.Task ChatCreateMessageAsync( string xUserKey, - global::Botpress.OneOf payload, + global::Botpress.OneOf payload, string conversationId, global::Botpress.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadAudioType.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadAudioType.g.cs new file mode 100644 index 0000000..18c3cff --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadAudioType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadAudioTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadAudioType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadAudioTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadAudioType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadAudioType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadAudioType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadAudioTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadAudioTypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadAudioTypeNullable.g.cs new file mode 100644 index 0000000..7ce7b85 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadAudioTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadAudioTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadAudioType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadAudioTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadAudioType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadAudioType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadAudioType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadAudioTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant10Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardActionAction.g.cs similarity index 75% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant10Type.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardActionAction.g.cs index 19dc503..9e4d21e 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant10Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardActionAction.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant10TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadCardActionActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant10Type Read( + public override global::Botpress.ChatCreateMessageRequestPayloadCardActionAction Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant10TypeJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant10TypeExtensions.ToEnum(stringValue) ?? default; + return global::Botpress.ChatCreateMessageRequestPayloadCardActionActionExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant10TypeJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant10Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadCardActionAction)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant10Type); + return default(global::Botpress.ChatCreateMessageRequestPayloadCardActionAction); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatCreateMessageRequestPayloadVariant10TypeJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant10Type value, + global::Botpress.ChatCreateMessageRequestPayloadCardActionAction value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant10TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadCardActionActionExtensions.ToValueString(value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant10TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardActionActionNullable.g.cs similarity index 77% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant10TypeNullable.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardActionActionNullable.g.cs index 69c29c9..47bca30 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant10TypeNullable.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardActionActionNullable.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant10TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadCardActionActionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant10Type? Read( + public override global::Botpress.ChatCreateMessageRequestPayloadCardActionAction? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant10TypeNullableJsonConv var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant10TypeExtensions.ToEnum(stringValue); + return global::Botpress.ChatCreateMessageRequestPayloadCardActionActionExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant10TypeNullableJsonConv case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant10Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadCardActionAction)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant10Type?); + return default(global::Botpress.ChatCreateMessageRequestPayloadCardActionAction?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant10TypeNullableJsonConv /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant10Type? value, + global::Botpress.ChatCreateMessageRequestPayloadCardActionAction? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant10TypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadCardActionActionExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardType.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardType.g.cs new file mode 100644 index 0000000..b6925bd --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadCardTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadCardType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadCardTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadCardType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadCardType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadCardType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadCardTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardTypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardTypeNullable.g.cs new file mode 100644 index 0000000..c4cfd69 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadCardTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadCardType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadCardTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadCardType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadCardType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadCardType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadCardTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3ItemActionAction.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselItemActionAction.g.cs similarity index 80% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3ItemActionAction.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselItemActionAction.g.cs index d85ec28..43bc197 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3ItemActionAction.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselItemActionAction.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant3ItemActionActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadCarouselItemActionActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction Read( + public override global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant3ItemActionActionJsonC var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionActionExtensions.ToEnum(stringValue) ?? default; + return global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionActionExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant3ItemActionActionJsonC case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction); + return default(global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatCreateMessageRequestPayloadVariant3ItemActionActionJsonC /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction value, + global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionActionExtensions.ToValueString(value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionActionExtensions.ToValueString(value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3ItemActionActionNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselItemActionActionNullable.g.cs similarity index 81% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3ItemActionActionNullable.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselItemActionActionNullable.g.cs index aa72015..d5c35d9 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3ItemActionActionNullable.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselItemActionActionNullable.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant3ItemActionActionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadCarouselItemActionActionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction? Read( + public override global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant3ItemActionActionNulla var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionActionExtensions.ToEnum(stringValue); + return global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionActionExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant3ItemActionActionNulla case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction?); + return default(global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant3ItemActionActionNulla /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction? value, + global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionActionExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionActionExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselType.g.cs similarity index 80% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3Type.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselType.g.cs index 1a45ec6..c707459 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselType.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant3TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadCarouselTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant3Type Read( + public override global::Botpress.ChatCreateMessageRequestPayloadCarouselType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant3TypeJsonConverter : g var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant3TypeExtensions.ToEnum(stringValue) ?? default; + return global::Botpress.ChatCreateMessageRequestPayloadCarouselTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant3TypeJsonConverter : g case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant3Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadCarouselType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant3Type); + return default(global::Botpress.ChatCreateMessageRequestPayloadCarouselType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatCreateMessageRequestPayloadVariant3TypeJsonConverter : g /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant3Type value, + global::Botpress.ChatCreateMessageRequestPayloadCarouselType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant3TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadCarouselTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant1TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselTypeNullable.g.cs similarity index 83% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant1TypeNullable.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselTypeNullable.g.cs index 599b1c9..baf2784 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant1TypeNullable.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadCarouselTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant1Type? Read( + public override global::Botpress.ChatCreateMessageRequestPayloadCarouselType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant1TypeNullableJsonConve var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant1TypeExtensions.ToEnum(stringValue); + return global::Botpress.ChatCreateMessageRequestPayloadCarouselTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant1TypeNullableJsonConve case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant1Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadCarouselType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant1Type?); + return default(global::Botpress.ChatCreateMessageRequestPayloadCarouselType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant1TypeNullableJsonConve /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant1Type? value, + global::Botpress.ChatCreateMessageRequestPayloadCarouselType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant1TypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadCarouselTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadChoiceType.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadChoiceType.g.cs new file mode 100644 index 0000000..0a6b613 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadChoiceType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadChoiceTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadChoiceType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadChoiceTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadChoiceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadChoiceType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadChoiceType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadChoiceTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadChoiceTypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadChoiceTypeNullable.g.cs new file mode 100644 index 0000000..3aaccad --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadChoiceTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadChoiceTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadChoiceType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadChoiceTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadChoiceType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadChoiceType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadChoiceType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadChoiceTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant1Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadDropdownType.g.cs similarity index 80% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant1Type.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadDropdownType.g.cs index 73a523f..bec76f1 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant1Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadDropdownType.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadDropdownTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant1Type Read( + public override global::Botpress.ChatCreateMessageRequestPayloadDropdownType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant1TypeJsonConverter : g var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant1TypeExtensions.ToEnum(stringValue) ?? default; + return global::Botpress.ChatCreateMessageRequestPayloadDropdownTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant1TypeJsonConverter : g case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant1Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadDropdownType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant1Type); + return default(global::Botpress.ChatCreateMessageRequestPayloadDropdownType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatCreateMessageRequestPayloadVariant1TypeJsonConverter : g /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant1Type value, + global::Botpress.ChatCreateMessageRequestPayloadDropdownType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant1TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadDropdownTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadDropdownTypeNullable.g.cs similarity index 83% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3TypeNullable.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadDropdownTypeNullable.g.cs index f866789..2d9dd52 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3TypeNullable.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadDropdownTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant3TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadDropdownTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant3Type? Read( + public override global::Botpress.ChatCreateMessageRequestPayloadDropdownType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant3TypeNullableJsonConve var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant3TypeExtensions.ToEnum(stringValue); + return global::Botpress.ChatCreateMessageRequestPayloadDropdownTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant3TypeNullableJsonConve case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant3Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadDropdownType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant3Type?); + return default(global::Botpress.ChatCreateMessageRequestPayloadDropdownType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant3TypeNullableJsonConve /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant3Type? value, + global::Botpress.ChatCreateMessageRequestPayloadDropdownType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant3TypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadDropdownTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadFileType.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadFileType.g.cs new file mode 100644 index 0000000..81b9009 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadFileType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadFileTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadFileType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadFileTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadFileType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadFileType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadFileType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadFileTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadFileTypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadFileTypeNullable.g.cs new file mode 100644 index 0000000..b5cdde9 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadFileTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadFileTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadFileType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadFileTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadFileType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadFileType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadFileType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadFileTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadImageType.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadImageType.g.cs new file mode 100644 index 0000000..fe2d87a --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadImageType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadImageTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadImageType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadImageTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadImageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadImageType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadImageType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadImageTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadImageTypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadImageTypeNullable.g.cs new file mode 100644 index 0000000..4cffcc3 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadImageTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadImageTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadImageType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadImageTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadImageType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadImageType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadImageType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadImageTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant4Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadLocationType.g.cs similarity index 80% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant4Type.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadLocationType.g.cs index d87af0e..dddb275 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant4Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadLocationType.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant4TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadLocationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant4Type Read( + public override global::Botpress.ChatCreateMessageRequestPayloadLocationType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant4TypeJsonConverter : g var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant4TypeExtensions.ToEnum(stringValue) ?? default; + return global::Botpress.ChatCreateMessageRequestPayloadLocationTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant4TypeJsonConverter : g case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant4Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadLocationType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant4Type); + return default(global::Botpress.ChatCreateMessageRequestPayloadLocationType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatCreateMessageRequestPayloadVariant4TypeJsonConverter : g /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant4Type value, + global::Botpress.ChatCreateMessageRequestPayloadLocationType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant4TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadLocationTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadLocationTypeNullable.g.cs similarity index 83% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2TypeNullable.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadLocationTypeNullable.g.cs index 67e5ce5..3cadebb 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2TypeNullable.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadLocationTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadLocationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant2Type? Read( + public override global::Botpress.ChatCreateMessageRequestPayloadLocationType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant2TypeNullableJsonConve var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant2TypeExtensions.ToEnum(stringValue); + return global::Botpress.ChatCreateMessageRequestPayloadLocationTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant2TypeNullableJsonConve case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant2Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadLocationType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant2Type?); + return default(global::Botpress.ChatCreateMessageRequestPayloadLocationType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant2TypeNullableJsonConve /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant2Type? value, + global::Botpress.ChatCreateMessageRequestPayloadLocationType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant2TypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadLocationTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadMarkdownType.g.cs similarity index 80% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2Type.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadMarkdownType.g.cs index 1ab3374..981842a 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadMarkdownType.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadMarkdownTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant2Type Read( + public override global::Botpress.ChatCreateMessageRequestPayloadMarkdownType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant2TypeJsonConverter : g var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant2TypeExtensions.ToEnum(stringValue) ?? default; + return global::Botpress.ChatCreateMessageRequestPayloadMarkdownTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant2TypeJsonConverter : g case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant2Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadMarkdownType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant2Type); + return default(global::Botpress.ChatCreateMessageRequestPayloadMarkdownType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ChatCreateMessageRequestPayloadVariant2TypeJsonConverter : g /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant2Type value, + global::Botpress.ChatCreateMessageRequestPayloadMarkdownType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant2TypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadMarkdownTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant4TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadMarkdownTypeNullable.g.cs similarity index 83% rename from src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant4TypeNullable.g.cs rename to src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadMarkdownTypeNullable.g.cs index 4cf6925..c7e429e 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant4TypeNullable.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadMarkdownTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace Botpress.JsonConverters { /// - public sealed class ChatCreateMessageRequestPayloadVariant4TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ChatCreateMessageRequestPayloadMarkdownTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant4Type? Read( + public override global::Botpress.ChatCreateMessageRequestPayloadMarkdownType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant4TypeNullableJsonConve var stringValue = reader.GetString(); if (stringValue != null) { - return global::Botpress.ChatCreateMessageRequestPayloadVariant4TypeExtensions.ToEnum(stringValue); + return global::Botpress.ChatCreateMessageRequestPayloadMarkdownTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ChatCreateMessageRequestPayloadVariant4TypeNullableJsonConve case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant4Type)numValue; + return (global::Botpress.ChatCreateMessageRequestPayloadMarkdownType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant4Type?); + return default(global::Botpress.ChatCreateMessageRequestPayloadMarkdownType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ChatCreateMessageRequestPayloadVariant4TypeNullableJsonConve /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant4Type? value, + global::Botpress.ChatCreateMessageRequestPayloadMarkdownType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant4TypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadMarkdownTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadTextType.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadTextType.g.cs new file mode 100644 index 0000000..4948cba --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadTextType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadTextTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadTextType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadTextTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadTextType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadTextType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadTextType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadTextTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadTextTypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadTextTypeNullable.g.cs new file mode 100644 index 0000000..c5f6ae8 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadTextTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadTextTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadTextType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadTextTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadTextType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadTextType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadTextType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadTextTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant11Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant11Type.g.cs deleted file mode 100644 index 43ba23f..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant11Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant11TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant11Type Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant11TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant11Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant11Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant11Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant11TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant11TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant11TypeNullable.g.cs deleted file mode 100644 index 1b143e2..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant11TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant11TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant11Type? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant11TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant11Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant11Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant11Type? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant11TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2ActionAction.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2ActionAction.g.cs deleted file mode 100644 index e383917..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2ActionAction.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant2ActionActionJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionActionExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionActionExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2ActionActionNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2ActionActionNullable.g.cs deleted file mode 100644 index 0e70ea2..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2ActionActionNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant2ActionActionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionActionExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionActionExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant5Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant5Type.g.cs deleted file mode 100644 index 1b08c2b..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant5Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant5TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant5Type Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant5TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant5Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant5Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant5Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant5TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant5TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant5TypeNullable.g.cs deleted file mode 100644 index b5372c3..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant5TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant5TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant5Type? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant5TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant5Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant5Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant5Type? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant5TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant6Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant6Type.g.cs deleted file mode 100644 index 75fb7e6..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant6Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant6TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant6Type Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant6TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant6Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant6Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant6Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant6TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant6TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant6TypeNullable.g.cs deleted file mode 100644 index 5a8a15e..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant6TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant6TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant6Type? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant6TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant6Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant6Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant6Type? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant6TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant7Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant7Type.g.cs deleted file mode 100644 index 7908dca..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant7Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant7TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant7Type Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant7TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant7Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant7Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant7Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant7TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant7TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant7TypeNullable.g.cs deleted file mode 100644 index b1ec845..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant7TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant7TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant7Type? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant7TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant7Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant7Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant7Type? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant7TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant8Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant8Type.g.cs deleted file mode 100644 index ae44a2c..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant8Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant8TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant8Type Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant8TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant8Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant8Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant8Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant8TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant8TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant8TypeNullable.g.cs deleted file mode 100644 index ec5be61..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant8TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant8TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant8Type? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant8TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant8Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant8Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant8Type? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant8TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant9Type.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant9Type.g.cs deleted file mode 100644 index 246afef..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant9Type.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant9TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant9Type Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant9TypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant9Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant9Type); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant9Type value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant9TypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant9TypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant9TypeNullable.g.cs deleted file mode 100644 index b756f56..0000000 --- a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant9TypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Botpress.JsonConverters -{ - /// - public sealed class ChatCreateMessageRequestPayloadVariant9TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Botpress.ChatCreateMessageRequestPayloadVariant9Type? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Botpress.ChatCreateMessageRequestPayloadVariant9TypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Botpress.ChatCreateMessageRequestPayloadVariant9Type)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Botpress.ChatCreateMessageRequestPayloadVariant9Type?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Botpress.ChatCreateMessageRequestPayloadVariant9Type? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVariant9TypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVideoType.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVideoType.g.cs new file mode 100644 index 0000000..db96df3 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVideoType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadVideoTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadVideoType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadVideoTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadVideoType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadVideoType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadVideoType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVideoTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVideoTypeNullable.g.cs b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVideoTypeNullable.g.cs new file mode 100644 index 0000000..4c017cd --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.JsonConverters.ChatCreateMessageRequestPayloadVideoTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Botpress.JsonConverters +{ + /// + public sealed class ChatCreateMessageRequestPayloadVideoTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Botpress.ChatCreateMessageRequestPayloadVideoType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Botpress.ChatCreateMessageRequestPayloadVideoTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Botpress.ChatCreateMessageRequestPayloadVideoType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Botpress.ChatCreateMessageRequestPayloadVideoType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Botpress.ChatCreateMessageRequestPayloadVideoType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Botpress.ChatCreateMessageRequestPayloadVideoTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.JsonSerializerContext.g.cs b/src/libs/Botpress/Generated/Botpress.JsonSerializerContext.g.cs index bf0ac4d..2b0de92 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonSerializerContext.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonSerializerContext.g.cs @@ -217,57 +217,57 @@ namespace Botpress typeof(global::Botpress.JsonConverters.TablesColumnComputedActionNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant1TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadAudioTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant1TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadAudioTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2ActionActionJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardActionActionJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2ActionActionNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardActionActionNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3ItemActionActionJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselItemActionActionJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3ItemActionActionNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselItemActionActionNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant4TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadChoiceTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant4TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadChoiceTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant5TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadDropdownTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant5TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadDropdownTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant6TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadFileTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant6TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadFileTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant7TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadImageTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant7TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadImageTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant8TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadLocationTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant8TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadLocationTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant9TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadMarkdownTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant9TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadMarkdownTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant10TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadTextTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant10TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadTextTypeNullableJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant11TypeJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVideoTypeJsonConverter), - typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant11TypeNullableJsonConverter), + typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVideoTypeNullableJsonConverter), typeof(global::Botpress.JsonConverters.AdminListPublicIntegrationsVerificationStatusJsonConverter), @@ -675,7 +675,7 @@ namespace Botpress typeof(global::Botpress.JsonConverters.OneOfJsonConverter), - typeof(global::Botpress.JsonConverters.OneOfJsonConverter), + typeof(global::Botpress.JsonConverters.OneOfJsonConverter), typeof(global::Botpress.JsonConverters.OneOfJsonConverter), @@ -934,41 +934,41 @@ namespace Botpress [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatGetOrCreateConversationRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatAddParticipantRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.OneOf), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant11_dc3855e1ead94daf")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant1Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant2Action))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant2ActionAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant2Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3Item))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemAction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant3ItemActionAction2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant3Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant4Option))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant4Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant4Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant5Option))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant5Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant5Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant6Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant6Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant7Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant7Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant8Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant8Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant9))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant9Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant9Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant10))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant10Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant10Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant11))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant11Type), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVariant11Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.OneOf), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVideo_0e04a788e38dc6c9")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadAudio))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadAudioType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadAudioType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadCard))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadCardAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadCardActionAction), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadCardActionAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadCardType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadCardType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadCarousel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadCarouselItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadCarouselItemAction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadCarouselItemActionAction2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadCarouselType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadCarouselType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadChoiceOption))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadChoiceType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadChoiceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadDropdown))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadDropdownOption))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadDropdownType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadDropdownType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadFileType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadFileType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadImageType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadLocation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadLocationType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadLocationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadMarkdown))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadMarkdownType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadMarkdownType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadText))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadTextType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadTextType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVideo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateMessageRequestPayloadVideoType), TypeInfoPropertyName = "ChatCreateMessageRequestPayloadVideoType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatUpdateUserRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatCreateUserRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Botpress.ChatGetOrCreateUserRequest))] @@ -1300,11 +1300,11 @@ namespace Botpress [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Botpress/Generated/Botpress.JsonSerializerContextTypes.g.cs b/src/libs/Botpress/Generated/Botpress.JsonSerializerContextTypes.g.cs index bbe5d3d..e05f9ad 100644 --- a/src/libs/Botpress/Generated/Botpress.JsonSerializerContextTypes.g.cs +++ b/src/libs/Botpress/Generated/Botpress.JsonSerializerContextTypes.g.cs @@ -992,139 +992,139 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant1? Type241 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadAudio? Type241 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant1Type? Type242 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadAudioType? Type242 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant2? Type243 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadCard? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::System.Collections.Generic.IList? Type244 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant2Action? Type245 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadCardAction? Type245 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction? Type246 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadCardActionAction? Type246 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant2Type? Type247 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadCardType? Type247 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant3? Type248 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadCarousel? Type248 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type249 { get; set; } + public global::System.Collections.Generic.IList? Type249 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant3Item? Type250 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadCarouselItem? Type250 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type251 { get; set; } + public global::System.Collections.Generic.IList? Type251 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemAction? Type252 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadCarouselItemAction? Type252 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction? Type253 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction? Type253 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant3Type? Type254 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadCarouselType? Type254 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant4? Type255 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadChoice? Type255 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type256 { get; set; } + public global::System.Collections.Generic.IList? Type256 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant4Option? Type257 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadChoiceOption? Type257 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant4Type? Type258 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadChoiceType? Type258 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant5? Type259 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadDropdown? Type259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type260 { get; set; } + public global::System.Collections.Generic.IList? Type260 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant5Option? Type261 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadDropdownOption? Type261 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant5Type? Type262 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadDropdownType? Type262 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant6? Type263 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadFile? Type263 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant6Type? Type264 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadFileType? Type264 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant7? Type265 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadImage? Type265 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant7Type? Type266 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadImageType? Type266 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant8? Type267 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadLocation? Type267 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant8Type? Type268 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadLocationType? Type268 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant9? Type269 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadMarkdown? Type269 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant9Type? Type270 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadMarkdownType? Type270 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant10? Type271 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadText? Type271 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant10Type? Type272 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadTextType? Type272 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant11? Type273 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadVideo? Type273 { get; set; } /// /// /// - public global::Botpress.ChatCreateMessageRequestPayloadVariant11Type? Type274 { get; set; } + public global::Botpress.ChatCreateMessageRequestPayloadVideoType? Type274 { get; set; } /// /// /// @@ -2429,23 +2429,23 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequest.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequest.g.cs index 6dae501..f24c333 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequest.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequest.g.cs @@ -12,9 +12,9 @@ public sealed partial class ChatCreateMessageRequest /// Payload is the content type of the message. /// [global::System.Text.Json.Serialization.JsonPropertyName("payload")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Botpress.OneOf Payload { get; set; } + public required global::Botpress.OneOf Payload { get; set; } /// /// ID of the [Conversation](#schema_conversation) @@ -42,7 +42,7 @@ public sealed partial class ChatCreateMessageRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCreateMessageRequest( - global::Botpress.OneOf payload, + global::Botpress.OneOf payload, string conversationId) { this.Payload = payload; diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadAudio.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadAudio.Json.g.cs new file mode 100644 index 0000000..3a01d47 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadAudio.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Botpress +{ + public sealed partial class ChatCreateMessageRequestPayloadAudio + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Botpress.ChatCreateMessageRequestPayloadAudio? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Botpress.ChatCreateMessageRequestPayloadAudio), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadAudio; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Botpress.ChatCreateMessageRequestPayloadAudio? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Botpress.ChatCreateMessageRequestPayloadAudio), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadAudio; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant1.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadAudio.g.cs similarity index 76% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant1.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadAudio.g.cs index 51c3da9..76a2600 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant1.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadAudio.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant1 + public sealed partial class ChatCreateMessageRequestPayloadAudio { /// /// @@ -19,8 +19,8 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant1 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant1TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant1Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadAudioTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadAudioType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant1 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant1( + public ChatCreateMessageRequestPayloadAudio( string audioUrl, - global::Botpress.ChatCreateMessageRequestPayloadVariant1Type type) + global::Botpress.ChatCreateMessageRequestPayloadAudioType type) { this.AudioUrl = audioUrl ?? throw new global::System.ArgumentNullException(nameof(audioUrl)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant1() + public ChatCreateMessageRequestPayloadAudio() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant1Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadAudioType.g.cs similarity index 66% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant1Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadAudioType.g.cs index 335a20c..e390932 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant1Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadAudioType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant1Type + public enum ChatCreateMessageRequestPayloadAudioType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant1Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant1TypeExtensions + public static class ChatCreateMessageRequestPayloadAudioTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant1Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadAudioType value) { return value switch { - ChatCreateMessageRequestPayloadVariant1Type.Audio => "audio", + ChatCreateMessageRequestPayloadAudioType.Audio => "audio", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant1Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadAudioType? ToEnum(string value) { return value switch { - "audio" => ChatCreateMessageRequestPayloadVariant1Type.Audio, + "audio" => ChatCreateMessageRequestPayloadAudioType.Audio, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCard.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCard.Json.g.cs new file mode 100644 index 0000000..e5b0eda --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCard.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Botpress +{ + public sealed partial class ChatCreateMessageRequestPayloadCard + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Botpress.ChatCreateMessageRequestPayloadCard? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Botpress.ChatCreateMessageRequestPayloadCard), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadCard; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Botpress.ChatCreateMessageRequestPayloadCard? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Botpress.ChatCreateMessageRequestPayloadCard), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadCard; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCard.g.cs similarity index 80% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCard.g.cs index 48bdc17..f804a03 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCard.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant2 + public sealed partial class ChatCreateMessageRequestPayloadCard { /// /// @@ -32,14 +32,14 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("actions")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Actions { get; set; } + public required global::System.Collections.Generic.IList Actions { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant2Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadCardType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,7 +48,7 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -58,12 +58,12 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant2( + public ChatCreateMessageRequestPayloadCard( string title, - global::System.Collections.Generic.IList actions, + global::System.Collections.Generic.IList actions, string? subtitle, string? imageUrl, - global::Botpress.ChatCreateMessageRequestPayloadVariant2Type type) + global::Botpress.ChatCreateMessageRequestPayloadCardType type) { this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); this.Subtitle = subtitle; @@ -73,9 +73,9 @@ public ChatCreateMessageRequestPayloadVariant2( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant2() + public ChatCreateMessageRequestPayloadCard() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant10.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardAction.Json.g.cs similarity index 89% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant10.Json.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardAction.Json.g.cs index 2d0776d..314cbe5 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant10.Json.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardAction.Json.g.cs @@ -2,7 +2,7 @@ namespace Botpress { - public sealed partial class ChatCreateMessageRequestPayloadVariant10 + public sealed partial class ChatCreateMessageRequestPayloadCardAction { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant10? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadCardAction? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant10), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant10; + typeof(global::Botpress.ChatCreateMessageRequestPayloadCardAction), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadCardAction; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant10? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadCardAction? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant10), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant10; + typeof(global::Botpress.ChatCreateMessageRequestPayloadCardAction), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadCardAction; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2Action.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardAction.g.cs similarity index 81% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2Action.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardAction.g.cs index 5a026e4..a1900c2 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2Action.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardAction.g.cs @@ -6,15 +6,15 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant2Action + public sealed partial class ChatCreateMessageRequestPayloadCardAction { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant2ActionActionJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCardActionActionJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction Action { get; set; } + public required global::Botpress.ChatCreateMessageRequestPayloadCardActionAction Action { get; set; } /// /// @@ -37,7 +37,7 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant2Action public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -45,8 +45,8 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant2Action #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant2Action( - global::Botpress.ChatCreateMessageRequestPayloadVariant2ActionAction action, + public ChatCreateMessageRequestPayloadCardAction( + global::Botpress.ChatCreateMessageRequestPayloadCardActionAction action, string label, string value) { @@ -56,9 +56,9 @@ public ChatCreateMessageRequestPayloadVariant2Action( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant2Action() + public ChatCreateMessageRequestPayloadCardAction() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2ActionAction.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardActionAction.g.cs similarity index 54% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2ActionAction.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardActionAction.g.cs index 23adde7..0586352 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2ActionAction.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardActionAction.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant2ActionAction + public enum ChatCreateMessageRequestPayloadCardActionAction { /// /// @@ -25,31 +25,31 @@ public enum ChatCreateMessageRequestPayloadVariant2ActionAction /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant2ActionActionExtensions + public static class ChatCreateMessageRequestPayloadCardActionActionExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant2ActionAction value) + public static string ToValueString(this ChatCreateMessageRequestPayloadCardActionAction value) { return value switch { - ChatCreateMessageRequestPayloadVariant2ActionAction.Postback => "postback", - ChatCreateMessageRequestPayloadVariant2ActionAction.Say => "say", - ChatCreateMessageRequestPayloadVariant2ActionAction.Url => "url", + ChatCreateMessageRequestPayloadCardActionAction.Postback => "postback", + ChatCreateMessageRequestPayloadCardActionAction.Say => "say", + ChatCreateMessageRequestPayloadCardActionAction.Url => "url", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant2ActionAction? ToEnum(string value) + public static ChatCreateMessageRequestPayloadCardActionAction? ToEnum(string value) { return value switch { - "postback" => ChatCreateMessageRequestPayloadVariant2ActionAction.Postback, - "say" => ChatCreateMessageRequestPayloadVariant2ActionAction.Say, - "url" => ChatCreateMessageRequestPayloadVariant2ActionAction.Url, + "postback" => ChatCreateMessageRequestPayloadCardActionAction.Postback, + "say" => ChatCreateMessageRequestPayloadCardActionAction.Say, + "url" => ChatCreateMessageRequestPayloadCardActionAction.Url, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardType.g.cs similarity index 66% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardType.g.cs index 23cd40c..f34ce6f 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCardType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant2Type + public enum ChatCreateMessageRequestPayloadCardType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant2Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant2TypeExtensions + public static class ChatCreateMessageRequestPayloadCardTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant2Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadCardType value) { return value switch { - ChatCreateMessageRequestPayloadVariant2Type.Card => "card", + ChatCreateMessageRequestPayloadCardType.Card => "card", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant2Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadCardType? ToEnum(string value) { return value switch { - "card" => ChatCreateMessageRequestPayloadVariant2Type.Card, + "card" => ChatCreateMessageRequestPayloadCardType.Card, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarousel.Json.g.cs similarity index 90% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3.Json.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarousel.Json.g.cs index 22ca524..e285aa0 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3.Json.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarousel.Json.g.cs @@ -2,7 +2,7 @@ namespace Botpress { - public sealed partial class ChatCreateMessageRequestPayloadVariant3 + public sealed partial class ChatCreateMessageRequestPayloadCarousel { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant3? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadCarousel? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant3; + typeof(global::Botpress.ChatCreateMessageRequestPayloadCarousel), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadCarousel; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant3? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadCarousel? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant3; + typeof(global::Botpress.ChatCreateMessageRequestPayloadCarousel), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadCarousel; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarousel.g.cs similarity index 73% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarousel.g.cs index 61685c7..4228b26 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarousel.g.cs @@ -6,21 +6,21 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant3 + public sealed partial class ChatCreateMessageRequestPayloadCarousel { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("items")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Items { get; set; } + public required global::System.Collections.Generic.IList Items { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant3Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadCarouselType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant3 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant3( - global::System.Collections.Generic.IList items, - global::Botpress.ChatCreateMessageRequestPayloadVariant3Type type) + public ChatCreateMessageRequestPayloadCarousel( + global::System.Collections.Generic.IList items, + global::Botpress.ChatCreateMessageRequestPayloadCarouselType type) { this.Items = items ?? throw new global::System.ArgumentNullException(nameof(items)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant3() + public ChatCreateMessageRequestPayloadCarousel() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3Item.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItem.Json.g.cs similarity index 89% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3Item.Json.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItem.Json.g.cs index 0fb9fbb..f4e8ebf 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3Item.Json.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItem.Json.g.cs @@ -2,7 +2,7 @@ namespace Botpress { - public sealed partial class ChatCreateMessageRequestPayloadVariant3Item + public sealed partial class ChatCreateMessageRequestPayloadCarouselItem { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant3Item? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadCarouselItem? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3Item), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant3Item; + typeof(global::Botpress.ChatCreateMessageRequestPayloadCarouselItem), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadCarouselItem; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant3Item? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadCarouselItem? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3Item), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant3Item; + typeof(global::Botpress.ChatCreateMessageRequestPayloadCarouselItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadCarouselItem; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3Item.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItem.g.cs similarity index 84% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3Item.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItem.g.cs index 5844770..4547d97 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3Item.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItem.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant3Item + public sealed partial class ChatCreateMessageRequestPayloadCarouselItem { /// /// @@ -32,7 +32,7 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant3Item /// [global::System.Text.Json.Serialization.JsonPropertyName("actions")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Actions { get; set; } + public required global::System.Collections.Generic.IList Actions { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,7 +41,7 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant3Item public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -50,9 +50,9 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant3Item #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant3Item( + public ChatCreateMessageRequestPayloadCarouselItem( string title, - global::System.Collections.Generic.IList actions, + global::System.Collections.Generic.IList actions, string? subtitle, string? imageUrl) { @@ -63,9 +63,9 @@ public ChatCreateMessageRequestPayloadVariant3Item( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant3Item() + public ChatCreateMessageRequestPayloadCarouselItem() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3ItemAction.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItemAction.Json.g.cs similarity index 89% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3ItemAction.Json.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItemAction.Json.g.cs index 5bda7c8..4c10e20 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3ItemAction.Json.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItemAction.Json.g.cs @@ -2,7 +2,7 @@ namespace Botpress { - public sealed partial class ChatCreateMessageRequestPayloadVariant3ItemAction + public sealed partial class ChatCreateMessageRequestPayloadCarouselItemAction { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemAction? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadCarouselItemAction? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemAction), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemAction; + typeof(global::Botpress.ChatCreateMessageRequestPayloadCarouselItemAction), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadCarouselItemAction; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemAction? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadCarouselItemAction? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemAction), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemAction; + typeof(global::Botpress.ChatCreateMessageRequestPayloadCarouselItemAction), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadCarouselItemAction; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3ItemAction.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItemAction.g.cs similarity index 80% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3ItemAction.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItemAction.g.cs index d6b7f1c..6b8130f 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3ItemAction.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItemAction.g.cs @@ -6,15 +6,15 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant3ItemAction + public sealed partial class ChatCreateMessageRequestPayloadCarouselItemAction { /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("action")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant3ItemActionActionJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadCarouselItemActionActionJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction Action { get; set; } + public required global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction Action { get; set; } /// /// @@ -37,7 +37,7 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant3ItemAction public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -45,8 +45,8 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant3ItemAction #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant3ItemAction( - global::Botpress.ChatCreateMessageRequestPayloadVariant3ItemActionAction action, + public ChatCreateMessageRequestPayloadCarouselItemAction( + global::Botpress.ChatCreateMessageRequestPayloadCarouselItemActionAction action, string label, string value) { @@ -56,9 +56,9 @@ public ChatCreateMessageRequestPayloadVariant3ItemAction( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant3ItemAction() + public ChatCreateMessageRequestPayloadCarouselItemAction() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3ItemActionAction.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItemActionAction.g.cs similarity index 63% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3ItemActionAction.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItemActionAction.g.cs index 285fe3a..4efc8d7 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3ItemActionAction.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselItemActionAction.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant3ItemActionAction + public enum ChatCreateMessageRequestPayloadCarouselItemActionAction { /// /// @@ -25,31 +25,31 @@ public enum ChatCreateMessageRequestPayloadVariant3ItemActionAction /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant3ItemActionActionExtensions + public static class ChatCreateMessageRequestPayloadCarouselItemActionActionExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant3ItemActionAction value) + public static string ToValueString(this ChatCreateMessageRequestPayloadCarouselItemActionAction value) { return value switch { - ChatCreateMessageRequestPayloadVariant3ItemActionAction.Postback => "postback", - ChatCreateMessageRequestPayloadVariant3ItemActionAction.Say => "say", - ChatCreateMessageRequestPayloadVariant3ItemActionAction.Url => "url", + ChatCreateMessageRequestPayloadCarouselItemActionAction.Postback => "postback", + ChatCreateMessageRequestPayloadCarouselItemActionAction.Say => "say", + ChatCreateMessageRequestPayloadCarouselItemActionAction.Url => "url", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant3ItemActionAction? ToEnum(string value) + public static ChatCreateMessageRequestPayloadCarouselItemActionAction? ToEnum(string value) { return value switch { - "postback" => ChatCreateMessageRequestPayloadVariant3ItemActionAction.Postback, - "say" => ChatCreateMessageRequestPayloadVariant3ItemActionAction.Say, - "url" => ChatCreateMessageRequestPayloadVariant3ItemActionAction.Url, + "postback" => ChatCreateMessageRequestPayloadCarouselItemActionAction.Postback, + "say" => ChatCreateMessageRequestPayloadCarouselItemActionAction.Say, + "url" => ChatCreateMessageRequestPayloadCarouselItemActionAction.Url, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselType.g.cs similarity index 70% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselType.g.cs index eee7ae4..eeeda49 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant3Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadCarouselType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant3Type + public enum ChatCreateMessageRequestPayloadCarouselType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant3Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant3TypeExtensions + public static class ChatCreateMessageRequestPayloadCarouselTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant3Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadCarouselType value) { return value switch { - ChatCreateMessageRequestPayloadVariant3Type.Carousel => "carousel", + ChatCreateMessageRequestPayloadCarouselType.Carousel => "carousel", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant3Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadCarouselType? ToEnum(string value) { return value switch { - "carousel" => ChatCreateMessageRequestPayloadVariant3Type.Carousel, + "carousel" => ChatCreateMessageRequestPayloadCarouselType.Carousel, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoice.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoice.Json.g.cs new file mode 100644 index 0000000..8155cae --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoice.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Botpress +{ + public sealed partial class ChatCreateMessageRequestPayloadChoice + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Botpress.ChatCreateMessageRequestPayloadChoice? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Botpress.ChatCreateMessageRequestPayloadChoice), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadChoice; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Botpress.ChatCreateMessageRequestPayloadChoice? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Botpress.ChatCreateMessageRequestPayloadChoice), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadChoice; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoice.g.cs similarity index 76% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoice.g.cs index e325e19..2177b5c 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoice.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant5 + public sealed partial class ChatCreateMessageRequestPayloadChoice { /// /// @@ -20,14 +20,14 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant5 /// [global::System.Text.Json.Serialization.JsonPropertyName("options")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Options { get; set; } + public required global::System.Collections.Generic.IList Options { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant5TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant5Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadChoiceTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadChoiceType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -36,7 +36,7 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant5 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -44,10 +44,10 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant5 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant5( + public ChatCreateMessageRequestPayloadChoice( string text, - global::System.Collections.Generic.IList options, - global::Botpress.ChatCreateMessageRequestPayloadVariant5Type type) + global::System.Collections.Generic.IList options, + global::Botpress.ChatCreateMessageRequestPayloadChoiceType type) { this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Options = options ?? throw new global::System.ArgumentNullException(nameof(options)); @@ -55,9 +55,9 @@ public ChatCreateMessageRequestPayloadVariant5( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant5() + public ChatCreateMessageRequestPayloadChoice() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant11.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoiceOption.Json.g.cs similarity index 88% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant11.Json.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoiceOption.Json.g.cs index 29288c4..5c66f61 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant11.Json.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoiceOption.Json.g.cs @@ -2,7 +2,7 @@ namespace Botpress { - public sealed partial class ChatCreateMessageRequestPayloadVariant11 + public sealed partial class ChatCreateMessageRequestPayloadChoiceOption { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant11? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadChoiceOption? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant11), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant11; + typeof(global::Botpress.ChatCreateMessageRequestPayloadChoiceOption), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadChoiceOption; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant11? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadChoiceOption? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant11), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant11; + typeof(global::Botpress.ChatCreateMessageRequestPayloadChoiceOption), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadChoiceOption; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4Option.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoiceOption.g.cs similarity index 84% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4Option.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoiceOption.g.cs index 09e3f4e..d52edb9 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4Option.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoiceOption.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant4Option + public sealed partial class ChatCreateMessageRequestPayloadChoiceOption { /// /// @@ -29,14 +29,14 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant4Option public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant4Option( + public ChatCreateMessageRequestPayloadChoiceOption( string label, string value) { @@ -45,9 +45,9 @@ public ChatCreateMessageRequestPayloadVariant4Option( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant4Option() + public ChatCreateMessageRequestPayloadChoiceOption() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoiceType.g.cs similarity index 66% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoiceType.g.cs index 01cbb57..ab5c4d7 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadChoiceType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant4Type + public enum ChatCreateMessageRequestPayloadChoiceType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant4Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant4TypeExtensions + public static class ChatCreateMessageRequestPayloadChoiceTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant4Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadChoiceType value) { return value switch { - ChatCreateMessageRequestPayloadVariant4Type.Choice => "choice", + ChatCreateMessageRequestPayloadChoiceType.Choice => "choice", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant4Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadChoiceType? ToEnum(string value) { return value switch { - "choice" => ChatCreateMessageRequestPayloadVariant4Type.Choice, + "choice" => ChatCreateMessageRequestPayloadChoiceType.Choice, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdown.Json.g.cs similarity index 90% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4.Json.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdown.Json.g.cs index 69cf0a1..df67300 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4.Json.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdown.Json.g.cs @@ -2,7 +2,7 @@ namespace Botpress { - public sealed partial class ChatCreateMessageRequestPayloadVariant4 + public sealed partial class ChatCreateMessageRequestPayloadDropdown { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant4? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadDropdown? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant4), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant4; + typeof(global::Botpress.ChatCreateMessageRequestPayloadDropdown), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadDropdown; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant4? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadDropdown? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant4), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant4; + typeof(global::Botpress.ChatCreateMessageRequestPayloadDropdown), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadDropdown; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdown.g.cs similarity index 77% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdown.g.cs index f196dbd..793a0dc 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdown.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant4 + public sealed partial class ChatCreateMessageRequestPayloadDropdown { /// /// @@ -20,14 +20,14 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant4 /// [global::System.Text.Json.Serialization.JsonPropertyName("options")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Options { get; set; } + public required global::System.Collections.Generic.IList Options { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant4TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant4Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadDropdownTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadDropdownType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -36,7 +36,7 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant4 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -44,10 +44,10 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant4 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant4( + public ChatCreateMessageRequestPayloadDropdown( string text, - global::System.Collections.Generic.IList options, - global::Botpress.ChatCreateMessageRequestPayloadVariant4Type type) + global::System.Collections.Generic.IList options, + global::Botpress.ChatCreateMessageRequestPayloadDropdownType type) { this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Options = options ?? throw new global::System.ArgumentNullException(nameof(options)); @@ -55,9 +55,9 @@ public ChatCreateMessageRequestPayloadVariant4( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant4() + public ChatCreateMessageRequestPayloadDropdown() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4Option.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdownOption.Json.g.cs similarity index 89% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4Option.Json.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdownOption.Json.g.cs index 85a6f28..e2720ec 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant4Option.Json.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdownOption.Json.g.cs @@ -2,7 +2,7 @@ namespace Botpress { - public sealed partial class ChatCreateMessageRequestPayloadVariant4Option + public sealed partial class ChatCreateMessageRequestPayloadDropdownOption { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant4Option? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadDropdownOption? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant4Option), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant4Option; + typeof(global::Botpress.ChatCreateMessageRequestPayloadDropdownOption), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadDropdownOption; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant4Option? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadDropdownOption? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant4Option), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant4Option; + typeof(global::Botpress.ChatCreateMessageRequestPayloadDropdownOption), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadDropdownOption; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5Option.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdownOption.g.cs similarity index 84% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5Option.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdownOption.g.cs index f1c8f28..eb623ff 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5Option.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdownOption.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant5Option + public sealed partial class ChatCreateMessageRequestPayloadDropdownOption { /// /// @@ -29,14 +29,14 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant5Option public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant5Option( + public ChatCreateMessageRequestPayloadDropdownOption( string label, string value) { @@ -45,9 +45,9 @@ public ChatCreateMessageRequestPayloadVariant5Option( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant5Option() + public ChatCreateMessageRequestPayloadDropdownOption() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdownType.g.cs similarity index 70% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdownType.g.cs index f3f3edf..6133106 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadDropdownType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant5Type + public enum ChatCreateMessageRequestPayloadDropdownType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant5Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant5TypeExtensions + public static class ChatCreateMessageRequestPayloadDropdownTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant5Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadDropdownType value) { return value switch { - ChatCreateMessageRequestPayloadVariant5Type.Dropdown => "dropdown", + ChatCreateMessageRequestPayloadDropdownType.Dropdown => "dropdown", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant5Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadDropdownType? ToEnum(string value) { return value switch { - "dropdown" => ChatCreateMessageRequestPayloadVariant5Type.Dropdown, + "dropdown" => ChatCreateMessageRequestPayloadDropdownType.Dropdown, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadFile.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadFile.Json.g.cs new file mode 100644 index 0000000..86f1719 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadFile.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Botpress +{ + public sealed partial class ChatCreateMessageRequestPayloadFile + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Botpress.ChatCreateMessageRequestPayloadFile? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Botpress.ChatCreateMessageRequestPayloadFile), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadFile; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Botpress.ChatCreateMessageRequestPayloadFile? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Botpress.ChatCreateMessageRequestPayloadFile), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadFile; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant6.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadFile.g.cs similarity index 79% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant6.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadFile.g.cs index 3c80294..20cc54b 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant6.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadFile.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant6 + public sealed partial class ChatCreateMessageRequestPayloadFile { /// /// @@ -25,8 +25,8 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant6 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant6TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant6Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadFileTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadFileType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,7 +35,7 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant6 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -43,10 +43,10 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant6 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant6( + public ChatCreateMessageRequestPayloadFile( string fileUrl, string? title, - global::Botpress.ChatCreateMessageRequestPayloadVariant6Type type) + global::Botpress.ChatCreateMessageRequestPayloadFileType type) { this.FileUrl = fileUrl ?? throw new global::System.ArgumentNullException(nameof(fileUrl)); this.Title = title; @@ -54,9 +54,9 @@ public ChatCreateMessageRequestPayloadVariant6( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant6() + public ChatCreateMessageRequestPayloadFile() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant6Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadFileType.g.cs similarity index 66% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant6Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadFileType.g.cs index dbf19d0..c108ef4 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant6Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadFileType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant6Type + public enum ChatCreateMessageRequestPayloadFileType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant6Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant6TypeExtensions + public static class ChatCreateMessageRequestPayloadFileTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant6Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadFileType value) { return value switch { - ChatCreateMessageRequestPayloadVariant6Type.File => "file", + ChatCreateMessageRequestPayloadFileType.File => "file", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant6Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadFileType? ToEnum(string value) { return value switch { - "file" => ChatCreateMessageRequestPayloadVariant6Type.File, + "file" => ChatCreateMessageRequestPayloadFileType.File, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadImage.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadImage.Json.g.cs new file mode 100644 index 0000000..73261b5 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadImage.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Botpress +{ + public sealed partial class ChatCreateMessageRequestPayloadImage + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Botpress.ChatCreateMessageRequestPayloadImage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Botpress.ChatCreateMessageRequestPayloadImage), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadImage; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Botpress.ChatCreateMessageRequestPayloadImage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Botpress.ChatCreateMessageRequestPayloadImage), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadImage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant7.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadImage.g.cs similarity index 76% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant7.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadImage.g.cs index 76c0386..c4cc78f 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant7.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadImage.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant7 + public sealed partial class ChatCreateMessageRequestPayloadImage { /// /// @@ -19,8 +19,8 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant7 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant7TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant7Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadImageTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadImageType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant7 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant7( + public ChatCreateMessageRequestPayloadImage( string imageUrl, - global::Botpress.ChatCreateMessageRequestPayloadVariant7Type type) + global::Botpress.ChatCreateMessageRequestPayloadImageType type) { this.ImageUrl = imageUrl ?? throw new global::System.ArgumentNullException(nameof(imageUrl)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant7() + public ChatCreateMessageRequestPayloadImage() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant7Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadImageType.g.cs similarity index 66% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant7Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadImageType.g.cs index 75485cd..c5ec542 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant7Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadImageType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant7Type + public enum ChatCreateMessageRequestPayloadImageType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant7Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant7TypeExtensions + public static class ChatCreateMessageRequestPayloadImageTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant7Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadImageType value) { return value switch { - ChatCreateMessageRequestPayloadVariant7Type.Image => "image", + ChatCreateMessageRequestPayloadImageType.Image => "image", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant7Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadImageType? ToEnum(string value) { return value switch { - "image" => ChatCreateMessageRequestPayloadVariant7Type.Image, + "image" => ChatCreateMessageRequestPayloadImageType.Image, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadLocation.Json.g.cs similarity index 90% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2.Json.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadLocation.Json.g.cs index e66080b..4f7f099 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2.Json.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadLocation.Json.g.cs @@ -2,7 +2,7 @@ namespace Botpress { - public sealed partial class ChatCreateMessageRequestPayloadVariant2 + public sealed partial class ChatCreateMessageRequestPayloadLocation { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant2? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadLocation? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant2), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant2; + typeof(global::Botpress.ChatCreateMessageRequestPayloadLocation), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadLocation; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant2? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadLocation? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant2), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant2; + typeof(global::Botpress.ChatCreateMessageRequestPayloadLocation), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadLocation; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant8.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadLocation.g.cs similarity index 83% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant8.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadLocation.g.cs index 9a72a94..3b61926 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant8.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadLocation.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant8 + public sealed partial class ChatCreateMessageRequestPayloadLocation { /// /// @@ -38,8 +38,8 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant8 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant8TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant8Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadLocationTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadLocationType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,7 +48,7 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant8 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -58,12 +58,12 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant8 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant8( + public ChatCreateMessageRequestPayloadLocation( double latitude, double longitude, string? address, string? title, - global::Botpress.ChatCreateMessageRequestPayloadVariant8Type type) + global::Botpress.ChatCreateMessageRequestPayloadLocationType type) { this.Latitude = latitude; this.Longitude = longitude; @@ -73,9 +73,9 @@ public ChatCreateMessageRequestPayloadVariant8( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant8() + public ChatCreateMessageRequestPayloadLocation() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant8Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadLocationType.g.cs similarity index 70% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant8Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadLocationType.g.cs index debe4ff..fb58599 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant8Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadLocationType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant8Type + public enum ChatCreateMessageRequestPayloadLocationType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant8Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant8TypeExtensions + public static class ChatCreateMessageRequestPayloadLocationTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant8Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadLocationType value) { return value switch { - ChatCreateMessageRequestPayloadVariant8Type.Location => "location", + ChatCreateMessageRequestPayloadLocationType.Location => "location", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant8Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadLocationType? ToEnum(string value) { return value switch { - "location" => ChatCreateMessageRequestPayloadVariant8Type.Location, + "location" => ChatCreateMessageRequestPayloadLocationType.Location, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadMarkdown.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadMarkdown.Json.g.cs new file mode 100644 index 0000000..a0e508e --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadMarkdown.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Botpress +{ + public sealed partial class ChatCreateMessageRequestPayloadMarkdown + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Botpress.ChatCreateMessageRequestPayloadMarkdown? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Botpress.ChatCreateMessageRequestPayloadMarkdown), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadMarkdown; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Botpress.ChatCreateMessageRequestPayloadMarkdown? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Botpress.ChatCreateMessageRequestPayloadMarkdown), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadMarkdown; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant9.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadMarkdown.g.cs similarity index 76% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant9.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadMarkdown.g.cs index 662ba09..dd750db 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant9.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadMarkdown.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant9 + public sealed partial class ChatCreateMessageRequestPayloadMarkdown { /// /// @@ -19,8 +19,8 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant9 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant9TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant9Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadMarkdownTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadMarkdownType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant9 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant9( + public ChatCreateMessageRequestPayloadMarkdown( string markdown, - global::Botpress.ChatCreateMessageRequestPayloadVariant9Type type) + global::Botpress.ChatCreateMessageRequestPayloadMarkdownType type) { this.Markdown = markdown ?? throw new global::System.ArgumentNullException(nameof(markdown)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant9() + public ChatCreateMessageRequestPayloadMarkdown() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant9Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadMarkdownType.g.cs similarity index 70% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant9Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadMarkdownType.g.cs index 7817698..7bf8e4c 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant9Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadMarkdownType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant9Type + public enum ChatCreateMessageRequestPayloadMarkdownType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant9Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant9TypeExtensions + public static class ChatCreateMessageRequestPayloadMarkdownTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant9Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadMarkdownType value) { return value switch { - ChatCreateMessageRequestPayloadVariant9Type.Markdown => "markdown", + ChatCreateMessageRequestPayloadMarkdownType.Markdown => "markdown", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant9Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadMarkdownType? ToEnum(string value) { return value switch { - "markdown" => ChatCreateMessageRequestPayloadVariant9Type.Markdown, + "markdown" => ChatCreateMessageRequestPayloadMarkdownType.Markdown, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadText.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadText.Json.g.cs new file mode 100644 index 0000000..9005a19 --- /dev/null +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadText.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace Botpress +{ + public sealed partial class ChatCreateMessageRequestPayloadText + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Botpress.ChatCreateMessageRequestPayloadText? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Botpress.ChatCreateMessageRequestPayloadText), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadText; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Botpress.ChatCreateMessageRequestPayloadText? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Botpress.ChatCreateMessageRequestPayloadText), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadText; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant10.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadText.g.cs similarity index 76% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant10.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadText.g.cs index 9b3c341..759f5d2 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant10.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadText.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant10 + public sealed partial class ChatCreateMessageRequestPayloadText { /// /// @@ -19,8 +19,8 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant10 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant10TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant10Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadTextTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadTextType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant10 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant10( + public ChatCreateMessageRequestPayloadText( string text, - global::Botpress.ChatCreateMessageRequestPayloadVariant10Type type) + global::Botpress.ChatCreateMessageRequestPayloadTextType type) { this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant10() + public ChatCreateMessageRequestPayloadText() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant10Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadTextType.g.cs similarity index 66% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant10Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadTextType.g.cs index 8088ca3..5018302 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant10Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadTextType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant10Type + public enum ChatCreateMessageRequestPayloadTextType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant10Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant10TypeExtensions + public static class ChatCreateMessageRequestPayloadTextTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant10Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadTextType value) { return value switch { - ChatCreateMessageRequestPayloadVariant10Type.Text => "text", + ChatCreateMessageRequestPayloadTextType.Text => "text", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant10Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadTextType? ToEnum(string value) { return value switch { - "text" => ChatCreateMessageRequestPayloadVariant10Type.Text, + "text" => ChatCreateMessageRequestPayloadTextType.Text, _ => null, }; } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2Action.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2Action.Json.g.cs deleted file mode 100644 index ada7c1c..0000000 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant2Action.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Botpress -{ - public sealed partial class ChatCreateMessageRequestPayloadVariant2Action - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant2Action? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant2Action), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant2Action; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant2Action? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant2Action), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant2Action; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5.Json.g.cs deleted file mode 100644 index ddb949a..0000000 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Botpress -{ - public sealed partial class ChatCreateMessageRequestPayloadVariant5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant5), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant5; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant5), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant5; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5Option.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5Option.Json.g.cs deleted file mode 100644 index a39e8c8..0000000 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant5Option.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Botpress -{ - public sealed partial class ChatCreateMessageRequestPayloadVariant5Option - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant5Option? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant5Option), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant5Option; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant5Option? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant5Option), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant5Option; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant6.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant6.Json.g.cs deleted file mode 100644 index 61e5c71..0000000 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant6.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Botpress -{ - public sealed partial class ChatCreateMessageRequestPayloadVariant6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant6), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant6; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant6), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant6; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant7.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant7.Json.g.cs deleted file mode 100644 index 58114cd..0000000 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant7.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Botpress -{ - public sealed partial class ChatCreateMessageRequestPayloadVariant7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant7), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant7; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant7), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant7; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant8.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant8.Json.g.cs deleted file mode 100644 index 4bcb619..0000000 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant8.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Botpress -{ - public sealed partial class ChatCreateMessageRequestPayloadVariant8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant8), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant8; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant8), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant8; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant9.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant9.Json.g.cs deleted file mode 100644 index 3d623be..0000000 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant9.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Botpress -{ - public sealed partial class ChatCreateMessageRequestPayloadVariant9 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant9? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant9), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant9; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant9? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant9), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant9; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant1.Json.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVideo.Json.g.cs similarity index 90% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant1.Json.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVideo.Json.g.cs index 7653ccf..66483a8 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant1.Json.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVideo.Json.g.cs @@ -2,7 +2,7 @@ namespace Botpress { - public sealed partial class ChatCreateMessageRequestPayloadVariant1 + public sealed partial class ChatCreateMessageRequestPayloadVideo { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Botpress.ChatCreateMessageRequestPayloadVariant1? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadVideo? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant1), - jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVariant1; + typeof(global::Botpress.ChatCreateMessageRequestPayloadVideo), + jsonSerializerContext) as global::Botpress.ChatCreateMessageRequestPayloadVideo; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Botpress.ChatCreateMessageRequestPayloadVariant1? FromJson( + public static global::Botpress.ChatCreateMessageRequestPayloadVideo? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Botpress.ChatCreateMessageRequestPayloadVariant1), - jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVariant1; + typeof(global::Botpress.ChatCreateMessageRequestPayloadVideo), + jsonSerializerContext).ConfigureAwait(false)) as global::Botpress.ChatCreateMessageRequestPayloadVideo; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant11.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVideo.g.cs similarity index 82% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant11.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVideo.g.cs index 359a26c..d70ac96 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant11.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVideo.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public sealed partial class ChatCreateMessageRequestPayloadVariant11 + public sealed partial class ChatCreateMessageRequestPayloadVideo { /// /// @@ -19,8 +19,8 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant11 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVariant11TypeJsonConverter))] - public global::Botpress.ChatCreateMessageRequestPayloadVariant11Type Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Botpress.JsonConverters.ChatCreateMessageRequestPayloadVideoTypeJsonConverter))] + public global::Botpress.ChatCreateMessageRequestPayloadVideoType Type { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -29,25 +29,25 @@ public sealed partial class ChatCreateMessageRequestPayloadVariant11 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ChatCreateMessageRequestPayloadVariant11( + public ChatCreateMessageRequestPayloadVideo( string videoUrl, - global::Botpress.ChatCreateMessageRequestPayloadVariant11Type type) + global::Botpress.ChatCreateMessageRequestPayloadVideoType type) { this.VideoUrl = videoUrl ?? throw new global::System.ArgumentNullException(nameof(videoUrl)); this.Type = type; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ChatCreateMessageRequestPayloadVariant11() + public ChatCreateMessageRequestPayloadVideo() { } } diff --git a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant11Type.g.cs b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVideoType.g.cs similarity index 66% rename from src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant11Type.g.cs rename to src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVideoType.g.cs index d27bcb5..e85236e 100644 --- a/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVariant11Type.g.cs +++ b/src/libs/Botpress/Generated/Botpress.Models.ChatCreateMessageRequestPayloadVideoType.g.cs @@ -6,7 +6,7 @@ namespace Botpress /// /// /// - public enum ChatCreateMessageRequestPayloadVariant11Type + public enum ChatCreateMessageRequestPayloadVideoType { /// /// @@ -17,27 +17,27 @@ public enum ChatCreateMessageRequestPayloadVariant11Type /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ChatCreateMessageRequestPayloadVariant11TypeExtensions + public static class ChatCreateMessageRequestPayloadVideoTypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ChatCreateMessageRequestPayloadVariant11Type value) + public static string ToValueString(this ChatCreateMessageRequestPayloadVideoType value) { return value switch { - ChatCreateMessageRequestPayloadVariant11Type.Video => "video", + ChatCreateMessageRequestPayloadVideoType.Video => "video", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ChatCreateMessageRequestPayloadVariant11Type? ToEnum(string value) + public static ChatCreateMessageRequestPayloadVideoType? ToEnum(string value) { return value switch { - "video" => ChatCreateMessageRequestPayloadVariant11Type.Video, + "video" => ChatCreateMessageRequestPayloadVideoType.Video, _ => null, }; } diff --git a/src/libs/Botpress/openapi.json b/src/libs/Botpress/openapi.json index c210997..cec1673 100644 --- a/src/libs/Botpress/openapi.json +++ b/src/libs/Botpress/openapi.json @@ -10326,6 +10326,7 @@ "payload": { "oneOf": [ { + "title": "Audio", "type": "object", "properties": { "audioUrl": { @@ -10345,6 +10346,7 @@ ] }, { + "title": "Card", "type": "object", "properties": { "title": { @@ -10402,6 +10404,7 @@ ] }, { + "title": "Carousel", "type": "object", "properties": { "items": { @@ -10470,6 +10473,7 @@ ] }, { + "title": "Choice", "type": "object", "properties": { "text": { @@ -10510,6 +10514,7 @@ ] }, { + "title": "Dropdown", "type": "object", "properties": { "text": { @@ -10550,6 +10555,7 @@ ] }, { + "title": "File", "type": "object", "properties": { "fileUrl": { @@ -10573,6 +10579,7 @@ ] }, { + "title": "Image", "type": "object", "properties": { "imageUrl": { @@ -10592,6 +10599,7 @@ ] }, { + "title": "Location", "type": "object", "properties": { "latitude": { @@ -10620,6 +10628,7 @@ ] }, { + "title": "Markdown", "type": "object", "properties": { "markdown": { @@ -10639,6 +10648,7 @@ ] }, { + "title": "Text", "type": "object", "properties": { "text": { @@ -10658,6 +10668,7 @@ ] }, { + "title": "Video", "type": "object", "properties": { "videoUrl": {