diff --git a/src/libs/Vapi/Generated/Vapi.AllOf.2.g.cs b/src/libs/Vapi/Generated/Vapi.AllOf.2.g.cs
index 99171e0c..a60c5d12 100644
--- a/src/libs/Vapi/Generated/Vapi.AllOf.2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AllOf.2.g.cs
@@ -41,8 +41,8 @@ public bool TryPickValue1(
///
///
///
- public T1 PickValue1() => IsValue1
- ? Value1!
+ public T1 PickValue1() => Value1 is { } value
+ ? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");
///
@@ -78,8 +78,8 @@ public bool TryPickValue2(
///
///
///
- public T2 PickValue2() => IsValue2
- ? Value2!
+ public T2 PickValue2() => Value2 is { } value
+ ? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
///
///
@@ -190,13 +190,13 @@ public bool Validate()
Validate();
}
- if (IsValue1 && value1 != null)
+ if (Value1 is { } __value0 && value1 != null)
{
- return value1(Value1!);
+ return value1(__value0);
}
- else if (IsValue2 && value2 != null)
+ else if (Value2 is { } __value1 && value2 != null)
{
- return value2(Value2!);
+ return value2(__value1);
}
return default(TResult);
@@ -216,13 +216,13 @@ public void Match(
Validate();
}
- if (IsValue1)
+ if (Value1 is { } __value0)
{
- value1?.Invoke(Value1!);
+ value1?.Invoke(__value0);
}
- else if (IsValue2)
+ else if (Value2 is { } __value1)
{
- value2?.Invoke(Value2!);
+ value2?.Invoke(__value1);
}
}
@@ -239,13 +239,13 @@ public void Switch(
Validate();
}
- if (IsValue1)
+ if (Value1 is { } __value0)
{
- value1?.Invoke(Value1!);
+ value1?.Invoke(__value0);
}
- else if (IsValue2)
+ else if (Value2 is { } __value1)
{
- value2?.Invoke(Value2!);
+ value2?.Invoke(__value1);
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs b/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs
index 567e2292..2c9a2b69 100644
--- a/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AnalyticsClient.AnalyticsControllerQuery.g.cs
@@ -178,7 +178,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent(
pathTemplate: "\"/analytics\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent(
pathTemplate: "\"/analytics\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent(
pathTemplate: "\"/analytics\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent(
pathTemplate: "\"/analytics\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessAnalyticsControllerQueryResponseContent(
pathTemplate: "\"/analytics\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.AnyOf.2.g.cs b/src/libs/Vapi/Generated/Vapi.AnyOf.2.g.cs
index 8276ab40..9390dbd1 100644
--- a/src/libs/Vapi/Generated/Vapi.AnyOf.2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AnyOf.2.g.cs
@@ -41,8 +41,8 @@ public bool TryPickValue1(
///
///
///
- public T1 PickValue1() => IsValue1
- ? Value1!
+ public T1 PickValue1() => Value1 is { } value
+ ? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");
///
@@ -78,8 +78,8 @@ public bool TryPickValue2(
///
///
///
- public T2 PickValue2() => IsValue2
- ? Value2!
+ public T2 PickValue2() => Value2 is { } value
+ ? value
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
///
///
@@ -176,13 +176,13 @@ public bool Validate()
Validate();
}
- if (IsValue1 && value1 != null)
+ if (Value1 is { } __value0 && value1 != null)
{
- return value1(Value1!);
+ return value1(__value0);
}
- else if (IsValue2 && value2 != null)
+ else if (Value2 is { } __value1 && value2 != null)
{
- return value2(Value2!);
+ return value2(__value1);
}
return default(TResult);
@@ -202,13 +202,13 @@ public void Match(
Validate();
}
- if (IsValue1)
+ if (Value1 is { } __value0)
{
- value1?.Invoke(Value1!);
+ value1?.Invoke(__value0);
}
- else if (IsValue2)
+ else if (Value2 is { } __value1)
{
- value2?.Invoke(Value2!);
+ value2?.Invoke(__value1);
}
}
@@ -225,13 +225,13 @@ public void Switch(
Validate();
}
- if (IsValue1)
+ if (Value1 is { } __value0)
{
- value1?.Invoke(Value1!);
+ value1?.Invoke(__value0);
}
- else if (IsValue2)
+ else if (Value2 is { } __value1)
{
- value2?.Invoke(Value2!);
+ value2?.Invoke(__value1);
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs
index b301bfef..5fab7b66 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerCreate.g.cs
@@ -178,7 +178,7 @@ partial void ProcessAssistantControllerCreateResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessAssistantControllerCreateResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessAssistantControllerCreateResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessAssistantControllerCreateResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessAssistantControllerCreateResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs
index 6665f229..aa548b35 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindAll.g.cs
@@ -250,7 +250,7 @@ partial void ProcessAssistantControllerFindAllResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -284,7 +284,7 @@ partial void ProcessAssistantControllerFindAllResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -325,7 +325,7 @@ partial void ProcessAssistantControllerFindAllResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -373,7 +373,7 @@ partial void ProcessAssistantControllerFindAllResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -395,7 +395,7 @@ partial void ProcessAssistantControllerFindAllResponseContent(
pathTemplate: "\"/assistant\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs
index 320c856f..cee0aecd 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerFindOne.g.cs
@@ -145,7 +145,7 @@ partial void ProcessAssistantControllerFindOneResponseContent(
PrepareAssistantControllerFindOneRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessAssistantControllerFindOneResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessAssistantControllerFindOneResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessAssistantControllerFindOneResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessAssistantControllerFindOneResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessAssistantControllerFindOneResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs
index c4f5304f..1cddacbc 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerRemove.g.cs
@@ -145,7 +145,7 @@ partial void ProcessAssistantControllerRemoveResponseContent(
PrepareAssistantControllerRemoveRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessAssistantControllerRemoveResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessAssistantControllerRemoveResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessAssistantControllerRemoveResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessAssistantControllerRemoveResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessAssistantControllerRemoveResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs
index caab1298..b7fc64af 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerUpdate.g.cs
@@ -164,7 +164,7 @@ partial void ProcessAssistantControllerUpdateResponseContent(
PrepareAssistantControllerUpdateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessAssistantControllerUpdateResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessAssistantControllerUpdateResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessAssistantControllerUpdateResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessAssistantControllerUpdateResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessAssistantControllerUpdateResponseContent(
pathTemplate: "$\"/assistant/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerValidateBackgroundSoundUrl.g.cs b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerValidateBackgroundSoundUrl.g.cs
index 26ab4fd3..5d02b0a0 100644
--- a/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerValidateBackgroundSoundUrl.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AssistantsClient.AssistantControllerValidateBackgroundSoundUrl.g.cs
@@ -178,7 +178,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent
pathTemplate: "\"/assistant/background-sound/validate\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent
pathTemplate: "\"/assistant/background-sound/validate\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent
pathTemplate: "\"/assistant/background-sound/validate\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent
pathTemplate: "\"/assistant/background-sound/validate\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessAssistantControllerValidateBackgroundSoundUrlResponseContent
pathTemplate: "\"/assistant/background-sound/validate\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.AutoSDKHttpResponse.g.cs b/src/libs/Vapi/Generated/Vapi.AutoSDKHttpResponse.g.cs
index 421bd243..186d4690 100644
--- a/src/libs/Vapi/Generated/Vapi.AutoSDKHttpResponse.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.AutoSDKHttpResponse.g.cs
@@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests
{
send = send ?? throw new global::System.ArgumentNullException(nameof(send));
requestOptions = CloneRequestOptions(requestOptions);
- if (!string.IsNullOrWhiteSpace(entityTag))
+ if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag))
{
- requestOptions.Headers["If-None-Match"] = entityTag!;
+ requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag;
}
try
diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerCreate.g.cs
index 6e7fc7ed..9e27666d 100644
--- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerCreate.g.cs
@@ -178,7 +178,7 @@ partial void ProcessBoardControllerCreateResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessBoardControllerCreateResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessBoardControllerCreateResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessBoardControllerCreateResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessBoardControllerCreateResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindAll.g.cs
index 27470db0..fa3de449 100644
--- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindAll.g.cs
@@ -280,7 +280,7 @@ partial void ProcessBoardControllerFindAllResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessBoardControllerFindAllResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -355,7 +355,7 @@ partial void ProcessBoardControllerFindAllResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -403,7 +403,7 @@ partial void ProcessBoardControllerFindAllResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -425,7 +425,7 @@ partial void ProcessBoardControllerFindAllResponseContent(
pathTemplate: "\"/reporting/board\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindOne.g.cs
index 8d6ef3d4..a99be746 100644
--- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerFindOne.g.cs
@@ -145,7 +145,7 @@ partial void ProcessBoardControllerFindOneResponseContent(
PrepareBoardControllerFindOneRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessBoardControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessBoardControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessBoardControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessBoardControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessBoardControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerMetricsOverviewEnsure.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerMetricsOverviewEnsure.g.cs
index 70aa3cd5..1780d28f 100644
--- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerMetricsOverviewEnsure.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerMetricsOverviewEnsure.g.cs
@@ -158,7 +158,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent(
pathTemplate: "\"/reporting/board/default/metrics-overview\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent(
pathTemplate: "\"/reporting/board/default/metrics-overview\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent(
pathTemplate: "\"/reporting/board/default/metrics-overview\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent(
pathTemplate: "\"/reporting/board/default/metrics-overview\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessBoardControllerMetricsOverviewEnsureResponseContent(
pathTemplate: "\"/reporting/board/default/metrics-overview\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerRemove.g.cs
index 727a4e00..6c3cb7a0 100644
--- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerRemove.g.cs
@@ -145,7 +145,7 @@ partial void ProcessBoardControllerRemoveResponseContent(
PrepareBoardControllerRemoveRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessBoardControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessBoardControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessBoardControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessBoardControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessBoardControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerUpdate.g.cs
index 40fc8aeb..c008e342 100644
--- a/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.BoardClient.BoardControllerUpdate.g.cs
@@ -164,7 +164,7 @@ partial void ProcessBoardControllerUpdateResponseContent(
PrepareBoardControllerUpdateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessBoardControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessBoardControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessBoardControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessBoardControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessBoardControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/board/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs
index c281086a..972bea4f 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerAssistantRecordingDownload.g.cs
@@ -138,7 +138,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
PrepareCallArtifactControllerAssistantRecordingDownloadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -160,7 +160,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/assistant-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -194,7 +194,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/assistant-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -235,7 +235,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/assistant-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -283,7 +283,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/assistant-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ await CallArtifactControllerAssistantRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/assistant-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs
index 5d45e784..2593bc52 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCallLogsDownload.g.cs
@@ -138,7 +138,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
PrepareCallArtifactControllerCallLogsDownloadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -160,7 +160,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/call-logs\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -194,7 +194,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/call-logs\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -235,7 +235,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/call-logs\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -283,7 +283,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/call-logs\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ await CallArtifactControllerCallLogsDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/call-logs\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs
index 908dfc2a..5e4e81b1 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerCustomerRecordingDownload.g.cs
@@ -138,7 +138,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
PrepareCallArtifactControllerCustomerRecordingDownloadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -160,7 +160,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/customer-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -194,7 +194,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/customer-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -235,7 +235,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/customer-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -283,7 +283,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/customer-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ await CallArtifactControllerCustomerRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/customer-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs
index 3a3d8f93..1ebec217 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerMonoRecordingDownload.g.cs
@@ -138,7 +138,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
PrepareCallArtifactControllerMonoRecordingDownloadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -160,7 +160,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/mono-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -194,7 +194,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/mono-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -235,7 +235,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/mono-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -283,7 +283,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/mono-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ await CallArtifactControllerMonoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/mono-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs
index 7c0ccd40..2ec1e223 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerPcapDownload.g.cs
@@ -138,7 +138,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
PrepareCallArtifactControllerPcapDownloadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -160,7 +160,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/pcap\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -194,7 +194,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/pcap\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -235,7 +235,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/pcap\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -283,7 +283,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/pcap\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ await CallArtifactControllerPcapDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/pcap\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs
index 5f4557c5..c8c26b9c 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerStereoRecordingDownload.g.cs
@@ -138,7 +138,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
PrepareCallArtifactControllerStereoRecordingDownloadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -160,7 +160,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/stereo-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -194,7 +194,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/stereo-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -235,7 +235,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/stereo-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -283,7 +283,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/stereo-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ await CallArtifactControllerStereoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/stereo-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs
index 85787e24..d18fb5f4 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallArtifactControllerVideoRecordingDownload.g.cs
@@ -138,7 +138,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
PrepareCallArtifactControllerVideoRecordingDownloadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -160,7 +160,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/video-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -194,7 +194,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/video-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -235,7 +235,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/video-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -283,7 +283,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/video-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ await CallArtifactControllerVideoRecordingDownloadAsResponseAsync(
pathTemplate: "$\"/call/{id}/video-recording\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs
index 792e5198..0aa015ed 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerCreate.g.cs
@@ -178,7 +178,7 @@ partial void ProcessCallControllerCreateResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessCallControllerCreateResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessCallControllerCreateResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessCallControllerCreateResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessCallControllerCreateResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs
index d470d895..3cb9f57e 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerDeleteCallData.g.cs
@@ -164,7 +164,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent(
PrepareCallControllerDeleteCallDataRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessCallControllerDeleteCallDataResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs
index 20f7e79c..6906de74 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindAll.g.cs
@@ -280,7 +280,7 @@ partial void ProcessCallControllerFindAllResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessCallControllerFindAllResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -355,7 +355,7 @@ partial void ProcessCallControllerFindAllResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -403,7 +403,7 @@ partial void ProcessCallControllerFindAllResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -425,7 +425,7 @@ partial void ProcessCallControllerFindAllResponseContent(
pathTemplate: "\"/call\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs
index 5e0271fa..95333afe 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerFindOne.g.cs
@@ -145,7 +145,7 @@ partial void ProcessCallControllerFindOneResponseContent(
PrepareCallControllerFindOneRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessCallControllerFindOneResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessCallControllerFindOneResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessCallControllerFindOneResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessCallControllerFindOneResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessCallControllerFindOneResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs
index 6a9d9440..d32cf6ee 100644
--- a/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CallsClient.CallControllerUpdate.g.cs
@@ -164,7 +164,7 @@ partial void ProcessCallControllerUpdateResponseContent(
PrepareCallControllerUpdateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessCallControllerUpdateResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessCallControllerUpdateResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessCallControllerUpdateResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessCallControllerUpdateResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessCallControllerUpdateResponseContent(
pathTemplate: "$\"/call/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs
index 2b087d65..62ffa3e3 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreate.g.cs
@@ -178,7 +178,7 @@ partial void ProcessCampaignControllerCreateResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessCampaignControllerCreateResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessCampaignControllerCreateResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessCampaignControllerCreateResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessCampaignControllerCreateResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreateV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreateV2.g.cs
index 77ad440b..b580f5a2 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreateV2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerCreateV2.g.cs
@@ -178,7 +178,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessCampaignControllerCreateV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs
index 670e2671..e39d0ef0 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAll.g.cs
@@ -300,7 +300,7 @@ partial void ProcessCampaignControllerFindAllResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -334,7 +334,7 @@ partial void ProcessCampaignControllerFindAllResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -375,7 +375,7 @@ partial void ProcessCampaignControllerFindAllResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -423,7 +423,7 @@ partial void ProcessCampaignControllerFindAllResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -445,7 +445,7 @@ partial void ProcessCampaignControllerFindAllResponseContent(
pathTemplate: "\"/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAllV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAllV2.g.cs
index 7eb58fa2..6417ea95 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAllV2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindAllV2.g.cs
@@ -310,7 +310,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -344,7 +344,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -385,7 +385,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -433,7 +433,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -455,7 +455,7 @@ partial void ProcessCampaignControllerFindAllV2ResponseContent(
pathTemplate: "\"/v2/campaign\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs
index a9e3f692..73a68894 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOne.g.cs
@@ -145,7 +145,7 @@ partial void ProcessCampaignControllerFindOneResponseContent(
PrepareCampaignControllerFindOneRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessCampaignControllerFindOneResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessCampaignControllerFindOneResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessCampaignControllerFindOneResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessCampaignControllerFindOneResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessCampaignControllerFindOneResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOneV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOneV2.g.cs
index 6922bacb..2fcb7efd 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOneV2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerFindOneV2.g.cs
@@ -156,7 +156,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent(
PrepareCampaignControllerFindOneV2Request(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
includeCounters: includeCounters);
return __httpRequest;
@@ -179,7 +179,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -213,7 +213,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -254,7 +254,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -302,7 +302,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -324,7 +324,7 @@ partial void ProcessCampaignControllerFindOneV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerGetCampaignV2Contacts.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerGetCampaignV2Contacts.g.cs
index 5d248b06..7d513828 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerGetCampaignV2Contacts.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerGetCampaignV2Contacts.g.cs
@@ -183,7 +183,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent(
PrepareCampaignControllerGetCampaignV2ContactsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
status: status,
limit: limit,
sortBy: sortBy,
@@ -209,7 +209,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent(
pathTemplate: "$\"/v2/campaign/{id}/contacts\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -243,7 +243,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent(
pathTemplate: "$\"/v2/campaign/{id}/contacts\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -284,7 +284,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent(
pathTemplate: "$\"/v2/campaign/{id}/contacts\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent(
pathTemplate: "$\"/v2/campaign/{id}/contacts\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -354,7 +354,7 @@ partial void ProcessCampaignControllerGetCampaignV2ContactsResponseContent(
pathTemplate: "$\"/v2/campaign/{id}/contacts\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs
index 7fbb61a4..5dfc99de 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemove.g.cs
@@ -145,7 +145,7 @@ partial void ProcessCampaignControllerRemoveResponseContent(
PrepareCampaignControllerRemoveRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessCampaignControllerRemoveResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessCampaignControllerRemoveResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessCampaignControllerRemoveResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessCampaignControllerRemoveResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessCampaignControllerRemoveResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemoveV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemoveV2.g.cs
index 143111f8..0406616b 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemoveV2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerRemoveV2.g.cs
@@ -145,7 +145,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent(
PrepareCampaignControllerRemoveV2Request(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessCampaignControllerRemoveV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs
index 873c3373..c6d992ee 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdate.g.cs
@@ -164,7 +164,7 @@ partial void ProcessCampaignControllerUpdateResponseContent(
PrepareCampaignControllerUpdateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessCampaignControllerUpdateResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessCampaignControllerUpdateResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessCampaignControllerUpdateResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessCampaignControllerUpdateResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessCampaignControllerUpdateResponseContent(
pathTemplate: "$\"/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdateV2.g.cs b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdateV2.g.cs
index e107aea4..d496b245 100644
--- a/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdateV2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.CampaignsClient.CampaignControllerUpdateV2.g.cs
@@ -164,7 +164,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent(
PrepareCampaignControllerUpdateV2Request(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessCampaignControllerUpdateV2ResponseContent(
pathTemplate: "$\"/v2/campaign/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs
index c2f4effc..b48fc707 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateChat.g.cs
@@ -180,7 +180,7 @@ partial void ProcessChatControllerCreateChatResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -214,7 +214,7 @@ partial void ProcessChatControllerCreateChatResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -255,7 +255,7 @@ partial void ProcessChatControllerCreateChatResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessChatControllerCreateChatResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -325,7 +325,7 @@ partial void ProcessChatControllerCreateChatResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs
index c2e2a7df..558f8f6e 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerCreateOpenAIChat.g.cs
@@ -178,7 +178,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent(
pathTemplate: "\"/chat/responses\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent(
pathTemplate: "\"/chat/responses\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent(
pathTemplate: "\"/chat/responses\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent(
pathTemplate: "\"/chat/responses\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessChatControllerCreateOpenAIChatResponseContent(
pathTemplate: "\"/chat/responses\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs
index f530bac3..2b190df1 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerDeleteChat.g.cs
@@ -145,7 +145,7 @@ partial void ProcessChatControllerDeleteChatResponseContent(
PrepareChatControllerDeleteChatRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessChatControllerDeleteChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessChatControllerDeleteChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessChatControllerDeleteChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessChatControllerDeleteChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessChatControllerDeleteChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs
index 2615e728..0ac533de 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerGetChat.g.cs
@@ -145,7 +145,7 @@ partial void ProcessChatControllerGetChatResponseContent(
PrepareChatControllerGetChatRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessChatControllerGetChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessChatControllerGetChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessChatControllerGetChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessChatControllerGetChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessChatControllerGetChatResponseContent(
pathTemplate: "$\"/chat/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs
index eee2b920..c60aa38c 100644
--- a/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.ChatsClient.ChatControllerListChats.g.cs
@@ -354,7 +354,7 @@ partial void ProcessChatControllerListChatsResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -388,7 +388,7 @@ partial void ProcessChatControllerListChatsResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -429,7 +429,7 @@ partial void ProcessChatControllerListChatsResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -477,7 +477,7 @@ partial void ProcessChatControllerListChatsResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -499,7 +499,7 @@ partial void ProcessChatControllerListChatsResponseContent(
pathTemplate: "\"/chat\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs
index 37bb4086..d41ec386 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerCreate.g.cs
@@ -178,7 +178,7 @@ partial void ProcessEvalControllerCreateResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessEvalControllerCreateResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessEvalControllerCreateResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessEvalControllerCreateResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessEvalControllerCreateResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs
index a721e298..e24e0f30 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGet.g.cs
@@ -145,7 +145,7 @@ partial void ProcessEvalControllerGetResponseContent(
PrepareEvalControllerGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessEvalControllerGetResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessEvalControllerGetResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessEvalControllerGetResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessEvalControllerGetResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessEvalControllerGetResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs
index 2db54351..c17f0468 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetPaginated.g.cs
@@ -290,7 +290,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -324,7 +324,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -365,7 +365,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -413,7 +413,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -435,7 +435,7 @@ partial void ProcessEvalControllerGetPaginatedResponseContent(
pathTemplate: "\"/eval\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs
index 9c3b8ef1..7361ee28 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRun.g.cs
@@ -145,7 +145,7 @@ partial void ProcessEvalControllerGetRunResponseContent(
PrepareEvalControllerGetRunRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessEvalControllerGetRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessEvalControllerGetRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessEvalControllerGetRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessEvalControllerGetRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessEvalControllerGetRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs
index 3c06ca4a..1f4fb4ac 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerGetRunsPaginated.g.cs
@@ -300,7 +300,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -334,7 +334,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -375,7 +375,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -423,7 +423,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -445,7 +445,7 @@ partial void ProcessEvalControllerGetRunsPaginatedResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs
index d7891717..f4197cc6 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemove.g.cs
@@ -145,7 +145,7 @@ partial void ProcessEvalControllerRemoveResponseContent(
PrepareEvalControllerRemoveRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessEvalControllerRemoveResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessEvalControllerRemoveResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessEvalControllerRemoveResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessEvalControllerRemoveResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessEvalControllerRemoveResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs
index 674ffdcf..60a2c42a 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRemoveRun.g.cs
@@ -145,7 +145,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent(
PrepareEvalControllerRemoveRunRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessEvalControllerRemoveRunResponseContent(
pathTemplate: "$\"/eval/run/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs
index 1a0a002f..eddb534f 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerRun.g.cs
@@ -178,7 +178,7 @@ partial void ProcessEvalControllerRunResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessEvalControllerRunResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessEvalControllerRunResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessEvalControllerRunResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessEvalControllerRunResponseContent(
pathTemplate: "\"/eval/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs
index 0b56f261..b05c3265 100644
--- a/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.EvalClient.EvalControllerUpdate.g.cs
@@ -164,7 +164,7 @@ partial void ProcessEvalControllerUpdateResponseContent(
PrepareEvalControllerUpdateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessEvalControllerUpdateResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessEvalControllerUpdateResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessEvalControllerUpdateResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessEvalControllerUpdateResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessEvalControllerUpdateResponseContent(
pathTemplate: "$\"/eval/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs
index 2819170f..cf068d57 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerCreate.g.cs
@@ -231,7 +231,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -265,7 +265,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -306,7 +306,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -354,7 +354,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -376,7 +376,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -744,7 +744,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -778,7 +778,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -819,7 +819,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -867,7 +867,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -889,7 +889,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -1209,7 +1209,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -1243,7 +1243,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -1284,7 +1284,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -1332,7 +1332,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -1354,7 +1354,7 @@ request.Filename is null
pathTemplate: "\"/file\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs
index a874ceb6..c13982cb 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindAll.g.cs
@@ -170,7 +170,7 @@ partial void ProcessFileControllerFindAllResponseContent(
pathTemplate: "\"/file\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -204,7 +204,7 @@ partial void ProcessFileControllerFindAllResponseContent(
pathTemplate: "\"/file\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -245,7 +245,7 @@ partial void ProcessFileControllerFindAllResponseContent(
pathTemplate: "\"/file\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -293,7 +293,7 @@ partial void ProcessFileControllerFindAllResponseContent(
pathTemplate: "\"/file\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -315,7 +315,7 @@ partial void ProcessFileControllerFindAllResponseContent(
pathTemplate: "\"/file\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs
index b5be8695..daba0155 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerFindOne.g.cs
@@ -145,7 +145,7 @@ partial void ProcessFileControllerFindOneResponseContent(
PrepareFileControllerFindOneRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessFileControllerFindOneResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessFileControllerFindOneResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessFileControllerFindOneResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessFileControllerFindOneResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessFileControllerFindOneResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs
index 2351c21c..82e23475 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerRemove.g.cs
@@ -145,7 +145,7 @@ partial void ProcessFileControllerRemoveResponseContent(
PrepareFileControllerRemoveRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessFileControllerRemoveResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessFileControllerRemoveResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessFileControllerRemoveResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessFileControllerRemoveResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessFileControllerRemoveResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs
index 1f19e409..f6850fc5 100644
--- a/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.FilesClient.FileControllerUpdate.g.cs
@@ -164,7 +164,7 @@ partial void ProcessFileControllerUpdateResponseContent(
PrepareFileControllerUpdateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessFileControllerUpdateResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessFileControllerUpdateResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessFileControllerUpdateResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessFileControllerUpdateResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessFileControllerUpdateResponseContent(
pathTemplate: "$\"/file/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs
index 731d91c8..842ca018 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerCreate.g.cs
@@ -176,7 +176,7 @@ partial void ProcessInsightControllerCreateResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -210,7 +210,7 @@ partial void ProcessInsightControllerCreateResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -251,7 +251,7 @@ partial void ProcessInsightControllerCreateResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -299,7 +299,7 @@ partial void ProcessInsightControllerCreateResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -321,7 +321,7 @@ partial void ProcessInsightControllerCreateResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs
index 50eef93e..56bb227d 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindAll.g.cs
@@ -290,7 +290,7 @@ partial void ProcessInsightControllerFindAllResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -324,7 +324,7 @@ partial void ProcessInsightControllerFindAllResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -365,7 +365,7 @@ partial void ProcessInsightControllerFindAllResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -413,7 +413,7 @@ partial void ProcessInsightControllerFindAllResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -435,7 +435,7 @@ partial void ProcessInsightControllerFindAllResponseContent(
pathTemplate: "\"/reporting/insight\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs
index 53bbbc45..aa7d78c7 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerFindOne.g.cs
@@ -145,7 +145,7 @@ partial void ProcessInsightControllerFindOneResponseContent(
PrepareInsightControllerFindOneRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessInsightControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessInsightControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessInsightControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessInsightControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessInsightControllerFindOneResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs
index 36277560..8ca46fa0 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerPreview.g.cs
@@ -176,7 +176,7 @@ partial void ProcessInsightControllerPreviewResponseContent(
pathTemplate: "\"/reporting/insight/preview\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -210,7 +210,7 @@ partial void ProcessInsightControllerPreviewResponseContent(
pathTemplate: "\"/reporting/insight/preview\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -251,7 +251,7 @@ partial void ProcessInsightControllerPreviewResponseContent(
pathTemplate: "\"/reporting/insight/preview\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -299,7 +299,7 @@ partial void ProcessInsightControllerPreviewResponseContent(
pathTemplate: "\"/reporting/insight/preview\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -321,7 +321,7 @@ partial void ProcessInsightControllerPreviewResponseContent(
pathTemplate: "\"/reporting/insight/preview\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs
index 4af0a636..e8e9a0ab 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRemove.g.cs
@@ -145,7 +145,7 @@ partial void ProcessInsightControllerRemoveResponseContent(
PrepareInsightControllerRemoveRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessInsightControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessInsightControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessInsightControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessInsightControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessInsightControllerRemoveResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs
index bc09e4d9..dbf17691 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerRun.g.cs
@@ -164,7 +164,7 @@ partial void ProcessInsightControllerRunResponseContent(
PrepareInsightControllerRunRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessInsightControllerRunResponseContent(
pathTemplate: "$\"/reporting/insight/{id}/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessInsightControllerRunResponseContent(
pathTemplate: "$\"/reporting/insight/{id}/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessInsightControllerRunResponseContent(
pathTemplate: "$\"/reporting/insight/{id}/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessInsightControllerRunResponseContent(
pathTemplate: "$\"/reporting/insight/{id}/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessInsightControllerRunResponseContent(
pathTemplate: "$\"/reporting/insight/{id}/run\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs
index 469f5920..873d92b7 100644
--- a/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.InsightClient.InsightControllerUpdate.g.cs
@@ -162,7 +162,7 @@ partial void ProcessInsightControllerUpdateResponseContent(
PrepareInsightControllerUpdateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!,
+ id: id,
request: request);
return __httpRequest;
@@ -185,7 +185,7 @@ partial void ProcessInsightControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -219,7 +219,7 @@ partial void ProcessInsightControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -260,7 +260,7 @@ partial void ProcessInsightControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -308,7 +308,7 @@ partial void ProcessInsightControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -330,7 +330,7 @@ partial void ProcessInsightControllerUpdateResponseContent(
pathTemplate: "$\"/reporting/insight/{id}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AllOf2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AllOf2.g.cs
index 196abc7c..51af45c0 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AllOf2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AllOf2.g.cs
@@ -69,7 +69,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Value1!, typeInfo);
+ var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickValue1(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
@@ -87,7 +87,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Value2!, typeInfo);
+ var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickValue2(), typeInfo);
if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AnyOf2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AnyOf2.g.cs
index a160fd4f..32d516fa 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AnyOf2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AnyOf2.g.cs
@@ -148,13 +148,13 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo);
}
else if (value.IsValue2)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan2.g.cs
index 00efd1d9..87e7b9fd 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan2.g.cs
@@ -68,19 +68,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo);
}
else if (value.IsHmac)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo);
}
else if (value.IsBearer)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan4.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan4.g.cs
index 019b1fc6..2ee758df 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan4.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan4.g.cs
@@ -68,19 +68,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo);
}
else if (value.IsHmac)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo);
}
else if (value.IsBearer)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan5.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan5.g.cs
index 3ff71b80..f8dbd5b8 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan5.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan5.g.cs
@@ -68,19 +68,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo);
}
else if (value.IsHmac)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo);
}
else if (value.IsBearer)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan6.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan6.g.cs
index c177831c..7a5f7735 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan6.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan6.g.cs
@@ -68,19 +68,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo);
}
else if (value.IsHmac)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo);
}
else if (value.IsBearer)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan8.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan8.g.cs
index 34fb5410..1ab9e04f 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan8.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan8.g.cs
@@ -68,19 +68,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo);
}
else if (value.IsHmac)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo);
}
else if (value.IsBearer)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan9.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan9.g.cs
index f3a932a3..a96d33a5 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan9.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.AuthenticationPlan9.g.cs
@@ -68,19 +68,19 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.OAuth2AuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.OAuth2AuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOauth2(), typeInfo);
}
else if (value.IsHmac)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.HMACAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.HMACAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hmac!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHmac(), typeInfo);
}
else if (value.IsBearer)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.BearerAuthenticationPlan), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.BearerAuthenticationPlan).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Bearer!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickBearer(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem.g.cs
index e666bc34..759c8ceb 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem.g.cs
@@ -554,343 +554,343 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo);
}
else if (value.IsAnthropicBedrock)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo);
}
else if (value.IsAnyscale)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo);
}
else if (value.IsAssemblyAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo);
}
else if (value.IsAzure)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo);
}
else if (value.IsAzureOpenai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo);
}
else if (value.IsByoSipTrunk)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo);
}
else if (value.IsCartesia)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo);
}
else if (value.IsCerebras)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo);
}
else if (value.IsCloudflare)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo);
}
else if (value.IsCustomLlm)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo);
}
else if (value.IsDeepgram)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo);
}
else if (value.IsDeepinfra)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo);
}
else if (value.IsDeepSeek)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo);
}
else if (value.IsElevenlabs)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo);
}
else if (value.IsGcp)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo);
}
else if (value.IsGladia)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo);
}
else if (value.IsGohighlevel)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo);
}
else if (value.IsGoogle)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo);
}
else if (value.IsGroq)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo);
}
else if (value.IsHume)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo);
}
else if (value.IsInflectionAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo);
}
else if (value.IsLangfuse)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo);
}
else if (value.IsLmnt)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo);
}
else if (value.IsMake)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo);
}
else if (value.IsMistral)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo);
}
else if (value.IsNeuphonic)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo);
}
else if (value.IsOpenai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo);
}
else if (value.IsOpenrouter)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo);
}
else if (value.IsPerplexityAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo);
}
else if (value.IsPlayht)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo);
}
else if (value.IsRimeAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo);
}
else if (value.IsRunpod)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo);
}
else if (value.IsS3)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo);
}
else if (value.IsS3Compatible)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo);
}
else if (value.IsSmallestAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo);
}
else if (value.IsSpeechmatics)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo);
}
else if (value.IsSoniox)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo);
}
else if (value.IsSupabase)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo);
}
else if (value.IsTavus)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo);
}
else if (value.IsTogetherAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo);
}
else if (value.IsTwilio)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo);
}
else if (value.IsVonage)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo);
}
else if (value.IsWebhook)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo);
}
else if (value.IsCustomCredential)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo);
}
else if (value.IsXai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo);
}
else if (value.IsMicrosoft)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo);
}
else if (value.IsGoogleCalendarOauth2Client)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo);
}
else if (value.IsGoogleCalendarOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo);
}
else if (value.IsGoogleSheetsOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo);
}
else if (value.IsSlackOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo);
}
else if (value.IsGhlOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo);
}
else if (value.IsInworld)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo);
}
else if (value.IsMinimax)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo);
}
else if (value.IsWellsaid)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo);
}
else if (value.IsEmail)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo);
}
else if (value.IsSlackWebhook)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem10.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem10.g.cs
index 1477ec8e..40b25a7d 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem10.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem10.g.cs
@@ -554,343 +554,343 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo);
}
else if (value.IsAnthropicBedrock)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo);
}
else if (value.IsAnyscale)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo);
}
else if (value.IsAssemblyAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo);
}
else if (value.IsAzure)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo);
}
else if (value.IsAzureOpenai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo);
}
else if (value.IsByoSipTrunk)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo);
}
else if (value.IsCartesia)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo);
}
else if (value.IsCerebras)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo);
}
else if (value.IsCloudflare)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo);
}
else if (value.IsCustomLlm)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo);
}
else if (value.IsDeepgram)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo);
}
else if (value.IsDeepinfra)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo);
}
else if (value.IsDeepSeek)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo);
}
else if (value.IsElevenlabs)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo);
}
else if (value.IsGcp)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo);
}
else if (value.IsGladia)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo);
}
else if (value.IsGohighlevel)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo);
}
else if (value.IsGoogle)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo);
}
else if (value.IsGroq)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo);
}
else if (value.IsHume)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo);
}
else if (value.IsInflectionAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo);
}
else if (value.IsLangfuse)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo);
}
else if (value.IsLmnt)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo);
}
else if (value.IsMake)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo);
}
else if (value.IsMistral)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo);
}
else if (value.IsNeuphonic)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo);
}
else if (value.IsOpenai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo);
}
else if (value.IsOpenrouter)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo);
}
else if (value.IsPerplexityAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo);
}
else if (value.IsPlayht)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo);
}
else if (value.IsRimeAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo);
}
else if (value.IsRunpod)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo);
}
else if (value.IsS3)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo);
}
else if (value.IsS3Compatible)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo);
}
else if (value.IsSmallestAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo);
}
else if (value.IsSpeechmatics)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo);
}
else if (value.IsSoniox)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo);
}
else if (value.IsSupabase)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo);
}
else if (value.IsTavus)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo);
}
else if (value.IsTogetherAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo);
}
else if (value.IsTwilio)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo);
}
else if (value.IsVonage)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo);
}
else if (value.IsWebhook)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo);
}
else if (value.IsCustomCredential)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo);
}
else if (value.IsXai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo);
}
else if (value.IsMicrosoft)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo);
}
else if (value.IsGoogleCalendarOauth2Client)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo);
}
else if (value.IsGoogleCalendarOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo);
}
else if (value.IsGoogleSheetsOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo);
}
else if (value.IsSlackOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo);
}
else if (value.IsGhlOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo);
}
else if (value.IsInworld)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo);
}
else if (value.IsMinimax)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo);
}
else if (value.IsWellsaid)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo);
}
else if (value.IsEmail)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo);
}
else if (value.IsSlackWebhook)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem11.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem11.g.cs
index ecdfb9d8..d1d5a136 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem11.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem11.g.cs
@@ -554,343 +554,343 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo);
}
else if (value.IsAnthropicBedrock)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo);
}
else if (value.IsAnyscale)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo);
}
else if (value.IsAssemblyAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo);
}
else if (value.IsAzure)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo);
}
else if (value.IsAzureOpenai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo);
}
else if (value.IsByoSipTrunk)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo);
}
else if (value.IsCartesia)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo);
}
else if (value.IsCerebras)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo);
}
else if (value.IsCloudflare)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo);
}
else if (value.IsCustomLlm)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo);
}
else if (value.IsDeepgram)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo);
}
else if (value.IsDeepinfra)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo);
}
else if (value.IsDeepSeek)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo);
}
else if (value.IsElevenlabs)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo);
}
else if (value.IsGcp)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo);
}
else if (value.IsGladia)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo);
}
else if (value.IsGohighlevel)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo);
}
else if (value.IsGoogle)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo);
}
else if (value.IsGroq)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo);
}
else if (value.IsHume)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo);
}
else if (value.IsInflectionAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo);
}
else if (value.IsLangfuse)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo);
}
else if (value.IsLmnt)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo);
}
else if (value.IsMake)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo);
}
else if (value.IsMistral)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo);
}
else if (value.IsNeuphonic)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo);
}
else if (value.IsOpenai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo);
}
else if (value.IsOpenrouter)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo);
}
else if (value.IsPerplexityAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo);
}
else if (value.IsPlayht)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo);
}
else if (value.IsRimeAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo);
}
else if (value.IsRunpod)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo);
}
else if (value.IsS3)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo);
}
else if (value.IsS3Compatible)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo);
}
else if (value.IsSmallestAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo);
}
else if (value.IsSpeechmatics)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo);
}
else if (value.IsSoniox)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo);
}
else if (value.IsSupabase)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo);
}
else if (value.IsTavus)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo);
}
else if (value.IsTogetherAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo);
}
else if (value.IsTwilio)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo);
}
else if (value.IsVonage)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo);
}
else if (value.IsWebhook)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo);
}
else if (value.IsCustomCredential)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo);
}
else if (value.IsXai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo);
}
else if (value.IsMicrosoft)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo);
}
else if (value.IsGoogleCalendarOauth2Client)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo);
}
else if (value.IsGoogleCalendarOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo);
}
else if (value.IsGoogleSheetsOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo);
}
else if (value.IsSlackOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo);
}
else if (value.IsGhlOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo);
}
else if (value.IsInworld)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo);
}
else if (value.IsMinimax)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo);
}
else if (value.IsWellsaid)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo);
}
else if (value.IsEmail)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo);
}
else if (value.IsSlackWebhook)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem12.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem12.g.cs
index 85111db2..fa2a2cec 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem12.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem12.g.cs
@@ -554,343 +554,343 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anthropic!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropic(), typeInfo);
}
else if (value.IsAnthropicBedrock)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnthropicBedrockCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AnthropicBedrock!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnthropicBedrock(), typeInfo);
}
else if (value.IsAnyscale)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnyscaleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAnyscaleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Anyscale!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAnyscale(), typeInfo);
}
else if (value.IsAssemblyAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAssemblyAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAssemblyAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssemblyAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAssemblyAi(), typeInfo);
}
else if (value.IsAzure)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Azure!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzure(), typeInfo);
}
else if (value.IsAzureOpenai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAzureOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateAzureOpenAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AzureOpenai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAzureOpenai(), typeInfo);
}
else if (value.IsByoSipTrunk)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateByoSipTrunkCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateByoSipTrunkCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ByoSipTrunk!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickByoSipTrunk(), typeInfo);
}
else if (value.IsCartesia)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCartesiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCartesiaCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cartesia!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCartesia(), typeInfo);
}
else if (value.IsCerebras)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCerebrasCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCerebrasCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cerebras!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCerebras(), typeInfo);
}
else if (value.IsCloudflare)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCloudflareCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCloudflareCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Cloudflare!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCloudflare(), typeInfo);
}
else if (value.IsCustomLlm)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomLLMCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomLLMCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomLlm!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomLlm(), typeInfo);
}
else if (value.IsDeepgram)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepgramCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepgramCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepgram!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepgram(), typeInfo);
}
else if (value.IsDeepinfra)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepInfraCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepInfraCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Deepinfra!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepinfra(), typeInfo);
}
else if (value.IsDeepSeek)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateDeepSeekCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateDeepSeekCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepSeek!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDeepSeek(), typeInfo);
}
else if (value.IsElevenlabs)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateElevenLabsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateElevenLabsCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Elevenlabs!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickElevenlabs(), typeInfo);
}
else if (value.IsGcp)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGcpCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGcpCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gcp!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGcp(), typeInfo);
}
else if (value.IsGladia)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGladiaCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGladiaCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gladia!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGladia(), typeInfo);
}
else if (value.IsGohighlevel)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Gohighlevel!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGohighlevel(), typeInfo);
}
else if (value.IsGoogle)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Google!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogle(), typeInfo);
}
else if (value.IsGroq)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGroqCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGroqCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Groq!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGroq(), typeInfo);
}
else if (value.IsHume)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateHumeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateHumeCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Hume!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHume(), typeInfo);
}
else if (value.IsInflectionAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInflectionAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInflectionAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.InflectionAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInflectionAi(), typeInfo);
}
else if (value.IsLangfuse)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLangfuseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLangfuseCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLangfuse(), typeInfo);
}
else if (value.IsLmnt)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateLmntCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateLmntCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Lmnt!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickLmnt(), typeInfo);
}
else if (value.IsMake)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMakeCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMakeCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Make!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMake(), typeInfo);
}
else if (value.IsMistral)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMistralCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMistralCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Mistral!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMistral(), typeInfo);
}
else if (value.IsNeuphonic)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateNeuphonicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateNeuphonicCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Neuphonic!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickNeuphonic(), typeInfo);
}
else if (value.IsOpenai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenai(), typeInfo);
}
else if (value.IsOpenrouter)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateOpenRouterCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateOpenRouterCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Openrouter!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOpenrouter(), typeInfo);
}
else if (value.IsPerplexityAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePerplexityAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePerplexityAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.PerplexityAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPerplexityAi(), typeInfo);
}
else if (value.IsPlayht)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreatePlayHTCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreatePlayHTCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Playht!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlayht(), typeInfo);
}
else if (value.IsRimeAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRimeAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRimeAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.RimeAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRimeAi(), typeInfo);
}
else if (value.IsRunpod)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateRunpodCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateRunpodCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Runpod!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRunpod(), typeInfo);
}
else if (value.IsS3)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3(), typeInfo);
}
else if (value.IsS3Compatible)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateS3CompatibleCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateS3CompatibleCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3Compatible!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickS3Compatible(), typeInfo);
}
else if (value.IsSmallestAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSmallestAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSmallestAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SmallestAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmallestAi(), typeInfo);
}
else if (value.IsSpeechmatics)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSpeechmaticsCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSpeechmaticsCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speechmatics!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeechmatics(), typeInfo);
}
else if (value.IsSoniox)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSonioxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSonioxCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Soniox!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSoniox(), typeInfo);
}
else if (value.IsSupabase)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSupabaseCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSupabaseCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Supabase!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSupabase(), typeInfo);
}
else if (value.IsTavus)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTavusCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTavusCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tavus!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTavus(), typeInfo);
}
else if (value.IsTogetherAi)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTogetherAICredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTogetherAICredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.TogetherAi!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTogetherAi(), typeInfo);
}
else if (value.IsTwilio)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateTwilioCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateTwilioCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Twilio!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTwilio(), typeInfo);
}
else if (value.IsVonage)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateVonageCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateVonageCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Vonage!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVonage(), typeInfo);
}
else if (value.IsWebhook)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWebhookCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWebhook(), typeInfo);
}
else if (value.IsCustomCredential)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateCustomCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateCustomCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.CustomCredential!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCustomCredential(), typeInfo);
}
else if (value.IsXai)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateXAiCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateXAiCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Xai!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickXai(), typeInfo);
}
else if (value.IsMicrosoft)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMicrosoftCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMicrosoftCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Microsoft!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMicrosoft(), typeInfo);
}
else if (value.IsGoogleCalendarOauth2Client)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2ClientCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Client!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Client(), typeInfo);
}
else if (value.IsGoogleCalendarOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleCalendarOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleCalendarOauth2Authorization(), typeInfo);
}
else if (value.IsGoogleSheetsOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSheetsOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSheetsOauth2Authorization(), typeInfo);
}
else if (value.IsSlackOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackOAuth2AuthorizationCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackOauth2Authorization(), typeInfo);
}
else if (value.IsGhlOauth2Authorization)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateGoHighLevelMCPCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.GhlOauth2Authorization!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGhlOauth2Authorization(), typeInfo);
}
else if (value.IsInworld)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateInworldCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateInworldCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Inworld!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInworld(), typeInfo);
}
else if (value.IsMinimax)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateMinimaxCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateMinimaxCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Minimax!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMinimax(), typeInfo);
}
else if (value.IsWellsaid)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateWellSaidCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateWellSaidCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Wellsaid!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWellsaid(), typeInfo);
}
else if (value.IsEmail)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateEmailCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateEmailCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Email!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEmail(), typeInfo);
}
else if (value.IsSlackWebhook)
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateSlackWebhookCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vapi.CreateSlackWebhookCredentialDTO).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.SlackWebhook!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSlackWebhook(), typeInfo);
}
}
}
diff --git a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem2.g.cs b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem2.g.cs
index 5a8afcb2..99c40e17 100644
--- a/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem2.g.cs
+++ b/src/libs/Vapi/Generated/Vapi.JsonConverters.CredentialsItem2.g.cs
@@ -554,343 +554,343 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vapi.CreateAnthropicCredentialDTO), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo