From 7dededbba2a37dfee686ce10555d91f3394c86eb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 1 Oct 2024 01:24:41 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/AssemblyAI/Generated/AnyOf.2.g.cs | 48 +++++++++++++++++++ ...emblyAI.Models.LemurActionItemsParams.g.cs | 48 +++++++++++++++++++ ...blyAI.Models.LemurActionItemsResponse.g.cs | 38 +++++++++++++++ ...lyAI.Models.LemurQuestionAnswerParams.g.cs | 48 +++++++++++++++++++ ...AI.Models.LemurQuestionAnswerResponse.g.cs | 48 +++++++++++++++++++ .../AssemblyAI.Models.LemurResponse.g.cs | 48 +++++++++++++++++++ ...AssemblyAI.Models.LemurStringResponse.g.cs | 48 +++++++++++++++++++ .../AssemblyAI.Models.LemurSummaryParams.g.cs | 48 +++++++++++++++++++ ...ssemblyAI.Models.LemurSummaryResponse.g.cs | 38 +++++++++++++++ .../AssemblyAI.Models.LemurTaskParams.g.cs | 48 +++++++++++++++++++ .../AssemblyAI.Models.LemurTaskResponse.g.cs | 38 +++++++++++++++ ...lyAI.Models.RedactedAudioNotification.g.cs | 38 +++++++++++++++ .../AssemblyAI.Models.TranscriptParams.g.cs | 48 +++++++++++++++++++ ....Models.TranscriptWebhookNotification.g.cs | 48 +++++++++++++++++++ src/libs/AssemblyAI/Generated/OneOf.2.g.cs | 48 +++++++++++++++++++ 15 files changed, 680 insertions(+) diff --git a/src/libs/AssemblyAI/Generated/AnyOf.2.g.cs b/src/libs/AssemblyAI/Generated/AnyOf.2.g.cs index 091598a..d32257d 100644 --- a/src/libs/AssemblyAI/Generated/AnyOf.2.g.cs +++ b/src/libs/AssemblyAI/Generated/AnyOf.2.g.cs @@ -107,6 +107,54 @@ public bool Validate() return IsValue1 || IsValue2; } + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsParams.g.cs index 691ad9a..ed53fd8 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsParams.g.cs @@ -108,6 +108,54 @@ public bool Validate() return IsValue1 && IsValue2; } + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsResponse.g.cs index b53a987..ef33ea9 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurActionItemsResponse.g.cs @@ -60,6 +60,44 @@ public bool Validate() return IsString; } + /// + /// + /// + public TResult? Match( + global::System.Func? @string = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsString && @string != null) + { + return @string(String!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @string = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsString) + { + @string?.Invoke(String!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerParams.g.cs index 7471b10..66ecfcd 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerParams.g.cs @@ -108,6 +108,54 @@ public bool Validate() return IsValue1 && IsValue2; } + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerResponse.g.cs index 583d10c..1eba750 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurQuestionAnswerResponse.g.cs @@ -108,6 +108,54 @@ public bool Validate() return IsValue1 && IsValue2; } + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurResponse.g.cs index ec60ef3..1b9ac3f 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurResponse.g.cs @@ -108,6 +108,54 @@ public bool Validate() return IsString && !IsQuestionAnswer || !IsString && IsQuestionAnswer; } + /// + /// + /// + public TResult? Match( + global::System.Func? @string = null, + global::System.Func? questionAnswer = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsString && @string != null) + { + return @string(String!); + } + else if (IsQuestionAnswer && questionAnswer != null) + { + return questionAnswer(QuestionAnswer!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @string = null, + global::System.Action? questionAnswer = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsString) + { + @string?.Invoke(String!); + } + else if (IsQuestionAnswer) + { + questionAnswer?.Invoke(QuestionAnswer!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurStringResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurStringResponse.g.cs index de0b138..49820c9 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurStringResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurStringResponse.g.cs @@ -108,6 +108,54 @@ public bool Validate() return IsValue1 && IsValue2; } + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryParams.g.cs index 2380345..ef4dee7 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryParams.g.cs @@ -108,6 +108,54 @@ public bool Validate() return IsValue1 && IsValue2; } + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryResponse.g.cs index 6d196bd..12fc3b8 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurSummaryResponse.g.cs @@ -60,6 +60,44 @@ public bool Validate() return IsString; } + /// + /// + /// + public TResult? Match( + global::System.Func? @string = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsString && @string != null) + { + return @string(String!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @string = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsString) + { + @string?.Invoke(String!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParams.g.cs index ad9ad74..8c53088 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskParams.g.cs @@ -108,6 +108,54 @@ public bool Validate() return IsValue1 && IsValue2; } + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskResponse.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskResponse.g.cs index b8ee99c..76e5f0b 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskResponse.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.LemurTaskResponse.g.cs @@ -60,6 +60,44 @@ public bool Validate() return IsString; } + /// + /// + /// + public TResult? Match( + global::System.Func? @string = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsString && @string != null) + { + return @string(String!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @string = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsString) + { + @string?.Invoke(String!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs index cf69d97..aae53e1 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.RedactedAudioNotification.g.cs @@ -60,6 +60,44 @@ public bool Validate() return IsResponse; } + /// + /// + /// + public TResult? Match( + global::System.Func? response = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsResponse && response != null) + { + return response(Response!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? response = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsResponse) + { + response?.Invoke(Response!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs index 04f5c2b..f4ae0a7 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptParams.g.cs @@ -108,6 +108,54 @@ public bool Validate() return IsValue1 && IsValue2; } + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWebhookNotification.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWebhookNotification.g.cs index c317d07..e0e66d7 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWebhookNotification.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptWebhookNotification.g.cs @@ -108,6 +108,54 @@ public bool Validate() return IsReady && !IsRedactedAudio || !IsReady && IsRedactedAudio; } + /// + /// + /// + public TResult? Match( + global::System.Func? ready = null, + global::System.Func? redactedAudio = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsReady && ready != null) + { + return ready(Ready!); + } + else if (IsRedactedAudio && redactedAudio != null) + { + return redactedAudio(RedactedAudio!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? ready = null, + global::System.Action? redactedAudio = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsReady) + { + ready?.Invoke(Ready!); + } + else if (IsRedactedAudio) + { + redactedAudio?.Invoke(RedactedAudio!); + } + } + /// /// /// diff --git a/src/libs/AssemblyAI/Generated/OneOf.2.g.cs b/src/libs/AssemblyAI/Generated/OneOf.2.g.cs index d78db4f..766b024 100644 --- a/src/libs/AssemblyAI/Generated/OneOf.2.g.cs +++ b/src/libs/AssemblyAI/Generated/OneOf.2.g.cs @@ -107,6 +107,54 @@ public bool Validate() return IsValue1 && !IsValue2 || !IsValue1 && IsValue2; } + /// + /// + /// + public TResult? Match( + global::System.Func? value1 = null, + global::System.Func? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1 && value1 != null) + { + return value1(Value1!); + } + else if (IsValue2 && value2 != null) + { + return value2(Value2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? value1 = null, + global::System.Action? value2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsValue1) + { + value1?.Invoke(Value1!); + } + else if (IsValue2) + { + value2?.Invoke(Value2!); + } + } + /// /// ///